From 44d380a533a285b6ddf48f632152cd4a593dddd8 Mon Sep 17 00:00:00 2001 From: Spencer Griswold Date: Fri, 3 Nov 2023 13:22:37 -0400 Subject: [PATCH] Added Fornax_2022 --- python/asteria/source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/asteria/source.py b/python/asteria/source.py index 87de141..d85e934 100644 --- a/python/asteria/source.py +++ b/python/asteria/source.py @@ -56,7 +56,8 @@ def __init__(self, model, model_params=None): logging.warning(f"Model '{self.model.__class__.__name__}' lacks one or more of the following attributes: " "'luminosity', 'meanE', 'pinch'. Some ASTERIA methods may not function fully") - if self.model.__class__.__name__ in ('Fornax_2019', 'Fornax_2021'): + # TODO: change condition to see if class inherits from Fornax baseclasses + if self.model.__class__.__name__ in ('Fornax_2019', 'Fornax_2021', 'Fornax_2022'): logging.warning(f"Model '{self.model.__class__.__name__}' detected. Special compatibility mode enabled.\n" "Expect a reduction in performance and increase in simulation run times.", ) self._special_compat_mode = True