Skip to content
Snippets Groups Projects
Commit 2506690e authored by alex's avatar alex
Browse files

fix #36

parent b1b9894c
No related branches found
No related tags found
1 merge request!160fix #36
Pipeline #52864 passed
......@@ -5,6 +5,7 @@ Append a LOFAR skymodel to an existing one
import os, logging
import lsmtool
import numpy
########################################################################
......@@ -15,8 +16,13 @@ def main(inmodel1, inmodel2, outmodel = 'output.skymodel'):
logging.info('Reading ' + inmodel2)
s2 = lsmtool.load(inmodel2)
if s1.getPatchNames() is None:
s1.group('single')
if s2.getPatchNames() is None:
s2.group('single')
logging.info('Adding skymodel ' + inmodel2 + ' to ' + inmodel1)
s1.concatenate(s2)
s1.concatenate(s2, inheritPatches=True)
s1.write(outmodel)
return(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment