diff --git a/esbo_etc/classes/RadiantFactory.py b/esbo_etc/classes/RadiantFactory.py index 726ec8d..18518ea 100644 --- a/esbo_etc/classes/RadiantFactory.py +++ b/esbo_etc/classes/RadiantFactory.py @@ -52,7 +52,7 @@ class RadiantFactory: attribs["wl_bins"] = self.__wl_bins if options.type == "BlackBodyTarget": # Black Body Target - if "mag" in attribs: + if "mag" in attribs and type(attribs["mag"]) == str: attribs["mag"] = float(attribs["mag"]) * u.mag return tg.BlackBodyTarget(**attribs) elif options.type == "FileTarget":