Closed o-smirnov closed 4 years ago
pinging @molnard89
@o-smirnov how do your config file's "get_data" and "observation_config" bits look like? It shouldn't look for field 'A3556,A3562', it should look for field 'A3556' and 'A3562' I presume?
@o-smirnov you'll be happy to hear that this is not an Oleg-only bug. I am able to reproduce it.
@molnard89 and I will look into it and let you know.
this is not an Oleg-only bug.
Phew! Virtually unprecedented! :rofl:
@o-smirnov how do your config file's "get_data" and "observation_config" bits look like? It shouldn't look for field 'A3556,A3562', it should look for field 'A3556' and 'A3562' I presume?
It's not really looking for field 'A3556,A3562', that's just the way the error is reported. I think it can't find either 'A3556' or 'A3562' , hence the error. @o-smirnov how do the obsinfo files look?
@KshitijT the problem is that it's looking for both those targets in the obsinfo of an .MS that only has one target (post-split). I think that the trouble maker is
This line returns 'A3556,A3562' while what we need there is one target only.
This is what the relevant bit looks like.
Fields: 5
ID Code Name RA Decl Epoch SrcId nRows
0 T PKS0408-65 04:08:20.380000 -65.45.09.10000 J2000 0 132750
1 T J1311-222 13:11:39.330000 -22.16.41.00000 J2000 1 637200
2 T A3556 13:24:06.000000 -31.40.12.00000 J2000 2 2573580
3 T A3562 13:33:35.000000 -31.40.30.00000 J2000 3 2378880
4 T PKS1934-63 19:39:25.030000 -63.42.45.70000 J2000 4 263730
Observation_config is all auto.
@KshitijT the problem is that it's looking for both those targets in the obsinfo of an .MS that only has one target (post-split). I think that the trouble maker is
This line returns 'A3556,A3562' while it should have returned only one target.
In which case it is looking at the wrong msinfo file. Line 54 of the worker says:
for j, msname in enumerate(mslist):
if label:
fieldName = utils.filter_name(target_ls[j])
msinfo = '{0:s}/{1:s}-{2:s}-obsinfo.json'.format(
pipeline.output, pipeline.prefix, msname[:-3])
whereas it should be looking at the split msinfo file (i.e. the one with the label and the fieldname) - also since field-ids change post-split.
The msinfo file is actually the correct one. The solution is to replace field_names with fieldName in
However, this gets me to another problem ('-' replaced with '_') -- working on that.
OK, it can be solved by replacing field_names with target_ls[j] in L305 above. I will implement the change in https://github.com/ska-sa/meerkathi/pull/611 and then maybe @KshitijT or @o-smirnov can review
See below: