Skip to content

Commit d9113a3

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

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
@@ -1150,7 +1150,7 @@ def _processing_terms(self, term, previous_states_ind):
11501150
else:
11511151
container_ndim = self.container_ndim_all.get(term, 1)
11521152
shape = input_shape(self.inputs[term], container_ndim=container_ndim)
1153-
var_ind = range(reduce(lambda x, y: x * y, shape, 1))
1153+
var_ind = range(prod(shape))
11541154
new_keys = [term]
11551155
# checking if the term is in inner_inputs
11561156
if term in self.inner_inputs:

0 commit comments

Comments
 (0)