diff --git a/src/etc/etc.py b/src/etc/etc.py index 69ef3ef..c15283e 100644 --- a/src/etc/etc.py +++ b/src/etc/etc.py @@ -34,7 +34,7 @@ class ETC(object): _V_band = SpectralElement.from_filter("johnson_v") def __init__(self, config_file=None, components=None): - PRESET_MODELS = toml.loads(pkg_resources.read_text(data, "FTN_FLOYDS.toml")) + PRESET_MODELS = toml.load(pkg_resources.open_text(data, "FTN_FLOYDS.toml")) self.components = components if components is not None else [] if config_file is None and len(self.components) == 0: component_config = PRESET_MODELS