Skip to content

Commit

Permalink
Access private attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Feb 26, 2024
1 parent 9ea56da commit 7300ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lentil/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, amplitude=1, opd=0, mask=None, pixelscale=None, diameter=None
# read-only attributes
if mask is not None:
self._mask = np.asarray(mask)
self._mask[self.mask != 0] = 1
self._mask[self._mask != 0] = 1
else:
self._mask = None

Expand Down

0 comments on commit 7300ec3

Please sign in to comment.