Skip to content

Commit

Permalink
Ensure Plane.mask ∈ {0, 1}
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Feb 22, 2024
1 parent 0c4d70a commit da16374
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lentil/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def mask(self):
def mask(self, value):
if value is not None:
self._mask = np.asarray(value)
self._mask[self.mask != 0] = 1
else:
self._mask = None

Expand Down

0 comments on commit da16374

Please sign in to comment.