diff --git a/esbo_etc/classes/RadiantFactory.py b/esbo_etc/classes/RadiantFactory.py index 66b8ae3..67f138a 100644 --- a/esbo_etc/classes/RadiantFactory.py +++ b/esbo_etc/classes/RadiantFactory.py @@ -65,7 +65,7 @@ class RadiantFactory: if "obstruction" in attribs: attribs["obstruction"] = float(attribs["obstruction"]) class_ = getattr(oc, options.type) - if options.type in ["Atmosphere", "StrayLight", "Mirror", "Lens", "BeamSplitter"]: + if options.type in ["Atmosphere", "StrayLight", "CosmicBackground", "Mirror", "Lens", "BeamSplitter"]: return class_(**attribs) elif options.type == "Filter": if hasattr(options, "band"):