Skip to content

Commit

Permalink
remove setters that implicitly call getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Apr 7, 2023
1 parent df298af commit 5d8332c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sedpy/observate.py
Expand Up @@ -129,22 +129,10 @@ def load_filter(self, filename):
def transmission(self):
return self._transmission

@transmission.setter
def transmission(self, trans):
self._transmission = trans
self.get_properties()
raise AttributeError("Don't alter transmission after instantiation")

@property
def wavelength(self):
return self._wavelength

@wavelength.setter
def transmission(self, wave):
self._wavelength = wave
self.get_properties()
raise AttributeError("Don't alter wavelength after instantiation")

def _process_filter_data(self, wave, trans):
"""Clean up transmission data and assign to attributes.
Expand Down

0 comments on commit 5d8332c

Please sign in to comment.