Commits

Takahiro Tsutsumi authored 267dac49f8e
One more bug fix to fix the test failures

casatasks/src/private/task_fixplanets.py

Modified
33 33 from casatools import table, ms
34 34 _tb = table()
35 35 _ms = ms()
36 36 print(f'vis={vis}, field={field}')
37 37 fids = _ms.msseltoindex(vis=vis,field=field)['field']
38 38 _tb.open(vis+'/FIELD')
39 39 ephemnames = []
40 40 if 'EPHEMERIS_ID' in _tb.colnames():
41 41 for i in fids:
42 42 ephemid = _tb.getcell('EPHEMERIS_ID',i)
43 - ephemnames.append(glob.glob(f'{vis}/FIELD/EPHEM{ephemid}*/')[0])
43 + if ephemid != -1:
44 + ephemnames.append(glob.glob(f'{vis}/FIELD/EPHEM{ephemid}*/')[0])
44 45 _tb.close()
45 46 return list(set(ephemnames))
46 47
47 48 def fixplanets(vis, field, fixuvw=False, direction='', refant=0, reftime='first'):
48 49 """
49 50 Fix FIELD, SOURCE, and UVW for given fields based on given direction or pointing
50 51 table information
51 52
52 53 This task's main purpose is to correct observations which were performed
53 54 with correct pointing and correlation but for which incorrect direction

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

Add shortcut