Skip to content

Commit 92cb5b9

Browse files
authored
Merge pull request #758 from ibevers/fix-1d-split-bug
[BUG] Remove pdb breakpoint and make single-op-splits robust to 1d shape
2 parents ccdb58c + 50c35a8 commit 92cb5b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pydra/engine/state.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,10 +1193,9 @@ def _single_op_splits(self, op_single):
11931193
)
11941194
val_ind = range(reduce(lambda x, y: x * y, shape))
11951195
if op_single in self.inner_inputs:
1196-
if len(shape) == 1:
1197-
breakpoint()
11981196
# TODO: have to be changed if differ length
1199-
inner_len = [shape[-1]] * reduce(lambda x, y: x * y, shape[:-1])
1197+
inner_len = [shape[-1]] * reduce(lambda x, y: x * y, shape[:-1], 1)
1198+
12001199
# this come from the previous node
12011200
outer_ind = self.inner_inputs[op_single].ind_l
12021201
op_out = itertools.chain.from_iterable(

0 commit comments

Comments
 (0)