Skip to content

Fix concat of measurementsets with irregular channels

Andre Offringa requested to merge fix-irregular-band-concat into master

The concat script produced an error on my data:

Traceback (most recent call last):
  File "/home/offringa/.local/bin/concat_ms.py", line 258, in <module>
    sys.exit(main())
  File "/home/offringa/.local/bin/concat_ms.py", line 254, in main
    return concat_ms(args.msin, args.msout, concat_property=args.concat_property, overwrite=args.overwrite)
  File "/home/offringa/.local/bin/concat_ms.py", line 93, in concat_ms
    cmd = concat_freq_command(msfiles, output_file)
  File "/home/offringa/.local/bin/concat_ms.py", line 180, in concat_freq_command
    dummy_multiplier = dummy_multiplier[idx_idx_u]
IndexError: index 0 is out of bounds for axis 0 with size 0

the way I interpret this is that the script checks if there are irregular channels, and if so then assumes that at least one dummy measurement set has to be inserted. However, if the data was just irregularly averaged (side channels removed, then averaged), no dummy insertion is necesary.

Merge request reports

Loading