Skip to content

Commit

Permalink
couple more small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akoumjian committed Dec 19, 2024
1 parent c829119 commit 22f4ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/sorcha/ephemeris/simulation_geometry.py
Original file line number Diff line number Diff line change
@@ -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):
"""
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/sorcha/utilities/sorchaConfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22f4ea5

Please sign in to comment.