diff --git a/CEP/Pipeline/recipes/sip/helpers/metadata.py b/CEP/Pipeline/recipes/sip/helpers/metadata.py index fdf83778f1ecbca87d9ab6073ebcef66cfe93387..128ec3cae75620be8ea3cf5e6f2144ad0f245593 100644 --- a/CEP/Pipeline/recipes/sip/helpers/metadata.py +++ b/CEP/Pipeline/recipes/sip/helpers/metadata.py @@ -236,10 +236,10 @@ class Correlated(DataProduct): 'duration' : endTime - startTime, 'integrationInterval' : exposure, 'centralFrequency' : spw.getcell('REF_FREQUENCY', 0), - 'channelWidth' : spw.getcell('RESOLUTION', [0])[0], + 'channelWidth' : spw.getcell('RESOLUTION', 0)[0], 'channelsPerSubband' : spw.getcell('NUM_CHAN', 0), # Assume subband name has format 'SB-nn' - 'subband' : int(spw.getcell('NAME', 'SB000')[3:]), + 'subband' : int(spw.getcell('NAME', 0)[3:]), 'stationSubband' : 0 ### NOT CORRECT! ### }) except Exception, error: