Skip to content

Commit 0a622b6

Browse files
committed
reverting some syntax for node result
1 parent 02fef5d commit 0a622b6

File tree

2 files changed

+92
-101
lines changed

2 files changed

+92
-101
lines changed

pydra/engine/node.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,8 @@ def get_output(self):
322322
state_dict = self.state.state_ind(ind)
323323
dir_nm_el = "_".join(["{}:{}".format(i, j) for i, j in list(state_dict.items())])
324324
if self.mapper:
325-
#TODO (res): should be ... = (state_dict, self._reading_ci_output(dir...) ??
326325
self._output[key_out][dir_nm_el] = \
327-
(state_dict, (state_dict, self._reading_ci_output(dir_nm_el=dir_nm_el, out_nm=key_out)))
326+
(state_dict, self._reading_ci_output(dir_nm_el=dir_nm_el, out_nm=key_out))
328327
else:
329328
self._output[key_out] = \
330329
(state_dict, self._reading_ci_output(dir_nm_el="", out_nm=key_out))
@@ -521,12 +520,6 @@ def _reading_results(self):
521520
else:
522521
val_l = self._dict_tuple2list(self.output[key_out])
523522
for val in val_l:
524-
# TODO: do i still neeed it?
525-
#TODO: I think that val shouldn't be dict here...
526-
# TMP solution
527-
if type(val) is dict:
528-
pdb.set_trace()
529-
val = [v for k, v in val.items()][0]
530523
self._result[key_out].append(val)
531524

532525

0 commit comments

Comments
 (0)