Commits

Renaud Miel authored 1820517563e
CAS-12712 Functional bug fix: use TAQL's python style

Taql's default style is Glish. STATE_ID is 0-based, so rowid() must also be 0-based.

casa5/code/synthesis/MeasurementComponents/SingleDishSkyCal.cc

Modified
1199 1199 // Destructor
1200 1200 SingleDishPositionSwitchCal::~SingleDishPositionSwitchCal()
1201 1201 {
1202 1202 debuglog << "SingleDishPositionSwitchCal::~SingleDishPositionSwitchCal()" << debugpost;
1203 1203 }
1204 1204
1205 1205 MeasurementSet SingleDishPositionSwitchCal::selectReferenceData(MeasurementSet const &user_selection)
1206 1206 {
1207 1207 std::ostringstream qry;
1208 1208 constexpr auto eol = '\n';
1209 + qry << "using style python" << eol;
1209 1210 qry << "with [" << eol
1210 1211 << "select" << eol
1211 1212 << " [select TELESCOPE_NAME from ::OBSERVATION][OBSERVATION_ID] as TELESCOPE_NAME," << eol;
1212 1213 // Purposively not using TAQL's default mscal UDF library alias for derivedmscal
1213 1214 // to workaround a bug in casacore UDFBase::createUDF
1214 1215 qry << " derivedmscal.spwcol('NUM_CHAN') as NUM_CHAN" << eol
1215 1216 << "from" << eol
1216 1217 << " $1" << eol
1217 1218 << "] as metadata" << eol
1218 1219 << "select * from $1 , metadata" << eol

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut