From a069c524e9cb347fc5c2b8e4c95b576639a94767 Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Fri, 7 Sep 2018 11:35:44 +0000 Subject: [PATCH] SW-459: Fixed a test by return usefull / correct default values --- CEP/Pipeline/recipes/sip/helpers/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CEP/Pipeline/recipes/sip/helpers/metadata.py b/CEP/Pipeline/recipes/sip/helpers/metadata.py index 128ec3cae75..c0d31166c10 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', [3052])[0], 'channelsPerSubband' : spw.getcell('NUM_CHAN', 0), # Assume subband name has format 'SB-nn' - 'subband' : int(spw.getcell('NAME', 0)[3:]), + 'subband' : int(spw.getcell('NAME', 'SB-064')[3:]), 'stationSubband' : 0 ### NOT CORRECT! ### }) except Exception, error: -- GitLab