Skip to content

Commit 7d5247b

Browse files
authored
Merge pull request #41 from caracal-pipeline/no-dirty-output
modified no-dirty case, redux
2 parents 5c550b9 + 1902878 commit 7d5247b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cultcargo/genesis/wsclean/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ def make_stimela_schema(params: Dict[str, Any], inputs: Dict[str, Parameter], ou
4848
multitime = params.get('multi.intervals', not isinstance(ntime, int) or ntime > 1)
4949

5050
for imagetype in "dirty", "restored", "residual", "model":
51-
if imagetype == "dirty" and not params.get("no-dirty", False):
51+
if imagetype == "dirty":
52+
if params.get("no-dirty", False):
53+
continue
5254
must_exist = True
53-
elif imagetype != "dirty" and params.get('niter', 0) > 0:
55+
elif imagetype == 'restored' or params.get('niter', 0) > 0:
5456
must_exist = True
5557
else:
5658
must_exist = False

0 commit comments

Comments
 (0)