Skip to content

Commit

Permalink
fix self.inputs ordering in Taskbase
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolocin committed Aug 7, 2020
1 parent 7daa7af commit 6129032
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ class TaskBase:
Attributes
----------
name : :obj:`str`
name : str
Unique name of this node.
inputs : : TODO
XXXX
input_names : :obj:`List` of :obj:`str`
Expand Down Expand Up @@ -193,12 +192,12 @@ def __init__(
inputs = {k: v for k, v in inputs.items() if k in self.input_names}
elif Path(inputs).is_file():
inputs = json.loads(Path(inputs).read_text())
self.inputs = attr.evolve(self.inputs, **inputs)
self.inputs.check_metadata()
elif isinstance(inputs, str):
if self._input_sets is None or inputs not in self._input_sets:
raise ValueError(f"Unknown input set {inputs!r}")
inputs = self._input_sets[inputs]
self.inputs = attr.evolve(self.inputs, **inputs)
self.inputs.check_metadata()

self.cache_dir = cache_dir
self.cache_locations = cache_locations
Expand Down

0 comments on commit 6129032

Please sign in to comment.