Skip to content

Commit

Permalink
Remove pixelscale property
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Oct 17, 2023
1 parent 547dc8d commit 9b7761c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lentil/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, amplitude=1, phase=0, mask=None, pixelscale=None, diameter=No
self.amplitude = np.asarray(amplitude)
self.phase = np.asarray(phase)
self.mask = mask
self.pixelscale = pixelscale
self.pixelscale = None if pixelscale is None else np.broadcast_to(pixelscale, (2,))
self.diameter = diameter

self._mask = np.asarray(mask) if mask is not None else None
Expand Down Expand Up @@ -92,14 +92,6 @@ def global_mask(self):
else:
return np.sum(self.mask, axis=0)

@property
def pixelscale(self):
return self._pixelscale

@pixelscale.setter
def pixelscale(self, value):
self._pixelscale = None if value is None else np.broadcast_to(value, (2,))

@property
def diameter(self):
if self._diameter is None:
Expand Down

0 comments on commit 9b7761c

Please sign in to comment.