Skip to content

Commit

Permalink
Merge branch 'enh/assume_ready' of github.com:bpinsard/datalad-contai…
Browse files Browse the repository at this point in the history
…ner into enh/assume_ready
  • Loading branch information
bpinsard committed Mar 21, 2023
2 parents cb661d6 + 901b604 commit a429479
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datalad_container/containers_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,14 @@ def __call__(cmd, container_name=None, dataset=None,

lgr.debug("extra_inputs = %r", extra_inputs)

if len(assume_ready) == 0:
if not assume_ready:
assume_ready = None
elif len(assume_ready) == 1:
assume_ready = assume_ready[0]
elif "inputs" in assume_ready and "outputs" in assume_ready:
assume_ready = "both"
else:
raise ValueError(f"Ended up with assume_ready={assume_ready!r} which must have not happened")

with patch.dict('os.environ',
{CONTAINER_NAME_ENVVAR: container['name']}):
Expand Down

0 comments on commit a429479

Please sign in to comment.