Skip to content

Commit 9db0213

Browse files
tcloseeffigies
andauthored
Update pydra/engine/state.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent d9113a3 commit 9db0213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ def _processing_terms(self, term, previous_states_ind):
11551155
# checking if the term is in inner_inputs
11561156
if term in self.inner_inputs:
11571157
# TODO: have to be changed if differ length
1158-
inner_len = [shape[-1]] * reduce(lambda x, y: x * y, shape[:-1], 1)
1158+
inner_len = [shape[-1]] * prod(shape[:-1])
11591159
# this come from the previous node
11601160
outer_ind = self.inner_inputs[term].ind_l
11611161
var_ind_out = itertools.chain.from_iterable(

0 commit comments

Comments
 (0)