From 50c35a830ed989bdadb704aefaa973536a368c91 Mon Sep 17 00:00:00 2001 From: ibevers Date: Thu, 6 Jun 2024 14:58:40 -0400 Subject: [PATCH] Remove pdb breakpoint and make single-op-splits robust to 1d shape --- pydra/engine/state.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pydra/engine/state.py b/pydra/engine/state.py index 7aa5701d7..52e9e6691 100644 --- a/pydra/engine/state.py +++ b/pydra/engine/state.py @@ -1193,10 +1193,9 @@ def _single_op_splits(self, op_single): ) val_ind = range(reduce(lambda x, y: x * y, shape)) if op_single in self.inner_inputs: - if len(shape) == 1: - breakpoint() # TODO: have to be changed if differ length - inner_len = [shape[-1]] * reduce(lambda x, y: x * y, shape[:-1]) + inner_len = [shape[-1]] * reduce(lambda x, y: x * y, shape[:-1], 1) + # this come from the previous node outer_ind = self.inner_inputs[op_single].ind_l op_out = itertools.chain.from_iterable(