Skip to content

Commit

Permalink
Hide Settings object
Browse files Browse the repository at this point in the history
  • Loading branch information
burggraaff committed Jul 14, 2021
1 parent f389c3a commit 66ecdc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectacle/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Camera(object):
"""
# Properties a Camera can have
property_list = ["name", "manufacturer", "name_internal", "image_shape", "raw_extension", "bias", "bayer_pattern", "bit_depth", "colour_description"]
Settings = namedtuple("Settings", ["ISO_min", "ISO_max", "exposure_min", "exposure_max"])
_Settings = namedtuple("Settings", ["ISO_min", "ISO_max", "exposure_min", "exposure_max"])

calibration_data_all = ["settings", "bias_map", "readnoise", "dark_current", "iso_lookup_table", "gain_map", "flatfield_map", "spectral_response", "spectral_bands", "XYZ_matrix"]

Expand Down Expand Up @@ -213,7 +213,7 @@ def load_settings(self):
settings["exposure_max"] = _convert_exposure_time(settings["exposure_max"])

# Add settings to the camera
self.settings = self.Settings(**settings)
self.settings = self._Settings(**settings)

def generate_bias_map(self):
"""
Expand Down

0 comments on commit 66ecdc2

Please sign in to comment.