diff --git a/src/nuspacesim/config.py b/src/nuspacesim/config.py index e49eb05..c93f12f 100644 --- a/src/nuspacesim/config.py +++ b/src/nuspacesim/config.py @@ -317,8 +317,16 @@ def serialize_rad(self, x: float) -> str: angle_from_limb: float = np.radians(7) """ Angle From Limb. Default (Radians). """ cherenkov_light_engine: Literal[ - "Default", "Greisen", "Gaisser-Hillas" - ] = "Default" # "CHASM", "EASCherSim" + "Greisen", "Gaisser-Hillas", "Default" + ] = "Greisen" # "CHASM", "EASCherSim" + """Cherenkov Light Engine model: Default = 'Greisen'""" + + @field_validator("cherenkov_light_engine", mode="before") + @classmethod + def validate_cherenkov_light_engine(cls, value: str) -> str: + if value == "Default": + return "Greisen" + return value ionosphere: Optional[Ionosphere] = Ionosphere() tau_shower: NuPyPropShower = NuPyPropShower()