Skip to content

Commit 73739cd

Browse files
committed
Change output image handling when no-dirty is specified.
1 parent c4a3f6b commit 73739cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cultcargo/genesis/wsclean/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ 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" or params.get('niter', 0) > 0:
51+
if imagetype == "dirty" and not params.get("no-dirty", False):
52+
must_exist = True
53+
elif params.get('niter', 0) > 0:
5254
must_exist = True
5355
else:
5456
must_exist = False

0 commit comments

Comments
 (0)