Changeset 1459


Ignore:
Timestamp:
12/18/08 15:50:01 (15 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1084

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: Execute sdcal or sdaverage with scanaverage=True.

Put in Release Notes: No

Description: Fixed a bug in the task sdcal and sdaverage

that a calibration is failed when scanaverage
is set to True.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STMath.cpp

    r1446 r1459  
    113113  }
    114114  if ( avmode == "SCAN"  && in.size() == 1) {
    115     cols.resize(4);
    116     cols[3] = String("SCANNO");
     115    //cols.resize(4);
     116    //cols[3] = String("SCANNO");
     117    cols.resize(5);
     118    cols[3] = String("SRCNAME");
     119    cols[4] = String("SCANNO");
    117120  }
    118121  uInt outrowCount = 0;
     
    154157        subt = basesubt( basesubt.col("SRCNAME") == rec.asString("SRCNAME") );
    155158      } else if (avmode == "SCAN") {
    156         subt = basesubt( basesubt.col("SCANNO") == Int(rec.asuInt("SCANNO")) );
     159        //subt = basesubt( basesubt.col("SCANNO") == Int(rec.asuInt("SCANNO")) );
     160        subt = basesubt( basesubt.col("SCANNO") == Int(rec.asuInt("SCANNO"))
     161                         && basesubt.col("SRCNAME") == rec.asString("SRCNAME") );
    157162      } else {
    158163        subt = basesubt;
Note: See TracChangeset for help on using the changeset viewer.