Skip to content

Commit

Permalink
Fix passband_map to not be public attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cabanela committed Jul 18, 2023
1 parent 6ed2bdc commit 2961a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stellarphot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def __init__(self, observatory, camera, data, passband_map=None, retain_user_co
# Set attributes describing the observatory and camera as well as corrections to passband names.
self.observatory = observatory.copy()
self.camera = camera.copy()
self.passband_map = passband_map.copy()
self._passband_map = passband_map.copy()

# Check the time column is correct format and scale
try:
Expand Down Expand Up @@ -348,7 +348,7 @@ def __init__(self, observatory, camera, data, passband_map=None, retain_user_co

def update_passbands(self):
# Converts filter names in filter column to AAVSO standard names
for orig_pb, aavso_pb in self.passband_map.items():
for orig_pb, aavso_pb in self._passband_map.items():
mask = self['passband'] == orig_pb
self['passband'][mask] = aavso_pb

Expand Down

0 comments on commit 2961a48

Please sign in to comment.