Skip to content
Snippets Groups Projects
Commit 89883879 authored by Matthijs van der Wild's avatar Matthijs van der Wild
Browse files

Merge branch 'patch-sort-concatenate' into 'master'

Patch issues with sort_concatmap.cwl.

See merge request !2
parents 531c97d3 3e31f15b
No related branches found
No related tags found
1 merge request!2Patch issues with sort_concatmap.cwl.
......@@ -160,7 +160,11 @@ def main(MSfile, numSB=10, NDPPPfill=True, stepname=None, mergeLastGroup=False,
freqliste = np.array(list(freqset))
freqliste.sort()
freq_width = np.min(freqliste[1:]-freqliste[:-1])
try:
freq_width = np.min(freqliste[1:]-freqliste[:-1])
except:
# This exception takes of the case that only 1 MS is supplied
freq_width = file_bandwidth
if file_bandwidth > freq_width:
raise ValueError("Bandwidth of files is larger than minimum frequency step between two files!")
if file_bandwidth < (freq_width*0.51):
......
......@@ -54,7 +54,7 @@ requirements:
numbands = inputs['numbands']
stepname = inputs['stepname']
NDPPPfill = inputs['NDPPPfill']
NDPPPfill = inputs['DP3fill']
mergeLastGroup = inputs['mergeLastGroup']
truncateLastSBs = inputs['truncateLastSBs']
firstSB = inputs['firstSB']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment