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

bugfix - allow use of external skymodel

parent dd2add88
No related branches found
No related tags found
1 merge request!84bugfix - allow use of external skymodel
Pipeline #24641 passed
...@@ -45,19 +45,18 @@ requirements: ...@@ -45,19 +45,18 @@ requirements:
SkymodelPath = inputs['SkymodelPath'] SkymodelPath = inputs['SkymodelPath']
if SkymodelPath is None: if SkymodelPath is None:
SkymodelPath = os.getcwd() + "/target.skymodel" pass
else: else:
SkymodelPath = SkymodelPath["path"] SkymodelPath = SkymodelPath["path"]
shutil.copyfile(SkymodelPath, "target.skymodel")
SkymodelPath = os.getcwd() + "/target.skymodel"
Radius = inputs['Radius'] Radius = inputs['Radius']
Source = inputs['Source'] Source = inputs['Source']
DoDownload = str(inputs['DoDownload']) DoDownload = str(inputs['DoDownload'])
output = download_skymodel_target(mss, SkymodelPath, Radius, DoDownload, Source) output = download_skymodel_target(mss, SkymodelPath, Radius, DoDownload, Source)
if "target.skymodel" not in SkymodelPath:
shutil.copyfile(SkymodelPath, "target.skymodel")
outputs: outputs:
- id: skymodel - id: skymodel
type: File? type: File?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment