Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Remove pdb breakpoint and make single-op-splits robust to 1d shape #758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pydra/engine/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,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(
Expand Down
Loading