Skip to content

Commit

Permalink
Merge pull request #641 from OP2/rebase-ext-mesh-fix
Browse files Browse the repository at this point in the history
Bug fix empty extruded set with variable layers
  • Loading branch information
wence- authored Oct 7, 2021
2 parents 6286fc0 + bc7cd81 commit 86d1d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/types/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def __init__(self, parent, layers):
try:
layers = utils.verify_reshape(layers, dtypes.IntType, (parent.total_size, 2))
self.constant_layers = False
if layers.min() < 0:
if layers.min(initial=0) < 0:
raise ex.SizeTypeError("Bottom of layers must be >= 0")
if any(layers[:, 1] - layers[:, 0] < 1):
raise ex.SizeTypeError("Number of layers must be >= 0")
Expand Down

0 comments on commit 86d1d57

Please sign in to comment.