diff --git a/src/sorcha/ephemeris/simulation_geometry.py b/src/sorcha/ephemeris/simulation_geometry.py index 0d0f57ec..e33b8c41 100644 --- a/src/sorcha/ephemeris/simulation_geometry.py +++ b/src/sorcha/ephemeris/simulation_geometry.py @@ -1,12 +1,11 @@ import healpy as hp import numpy as np -from sorcha.ephemeris.simulation_constants import ( - RADIUS_EARTH_KM, - SPEED_OF_LIGHT, - ECL_TO_EQ_ROTATION_MATRIX, -) import spiceypy as spice +from sorcha.ephemeris.simulation_constants import (ECL_TO_EQ_ROTATION_MATRIX, + RADIUS_EARTH_KM, + SPEED_OF_LIGHT) + def ecliptic_to_equatorial(v, rot_mat=ECL_TO_EQ_ROTATION_MATRIX): """ @@ -66,6 +65,8 @@ def integrate_light_time(sim, ex, t, r_obs, lt0=0, iter=3, speed_of_light=SPEED_ except NameError: USE_INTEGRATE = False + print("USE_INTEGRATE: ", USE_INTEGRATE) + for i in range(iter): if USE_INTEGRATE: sim.integrate(t - lt) diff --git a/src/sorcha/utilities/sorchaConfigs.py b/src/sorcha/utilities/sorchaConfigs.py index a53d4b2e..97214529 100644 --- a/src/sorcha/utilities/sorchaConfigs.py +++ b/src/sorcha/utilities/sorchaConfigs.py @@ -783,6 +783,7 @@ def _validate_expert_configs(self): self.default_SNR_cut = cast_as_bool_or_set_default(self.default_SNR_cut, "default_SNR_cut", True) self.randomization_on = cast_as_bool_or_set_default(self.randomization_on, "randomization_on", True) self.vignetting_on = cast_as_bool_or_set_default(self.vignetting_on, "vignetting_on", True) + self.ar_use_integrate = cast_as_bool_or_set_default(self.ar_use_integrate, "ar_use_integrate", False) @dataclass