Skip to content

Commit

Permalink
Merge branch 'feature/throw_error_unsliceable_axis_many_vals' of gith…
Browse files Browse the repository at this point in the history
…ub.com:ecmwf/polytope into feature/try_non_existing_transformation_options
  • Loading branch information
mathleur committed Nov 7, 2024
2 parents c137cf2 + a2d9a99 commit 5889aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polytope_feature/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConvexPolytope(Shape):
def __init__(self, axes, points, method=None, is_orthogonal=False):
self._axes = list(axes)
self.is_flat = False
if len(self._axes) == 1:
if len(self._axes) == 1 and len(points) == 1:
self.is_flat = True
self.points = points
self.method = method
Expand Down

0 comments on commit 5889aa4

Please sign in to comment.