Skip to content

Commit

Permalink
Add infinite removal to the light curve only post injection transform
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Aug 27, 2024
1 parent 5c6b902 commit 7512fdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qusi/internal/light_curve_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from qusi.internal.light_curve import (
LightCurve,
randomly_roll_light_curve,
remove_nan_flux_data_points_from_light_curve,
remove_nan_flux_data_points_from_light_curve, remove_infinite_flux_data_points_from_light_curve,
)
from qusi.internal.light_curve_observation import (
LightCurveObservation,
Expand Down Expand Up @@ -369,6 +369,7 @@ def default_light_curve_post_injection_transform(
:param randomize: Whether to have randomization in the transforms.
:return: The transformed light curve.
"""
x = remove_infinite_flux_data_points_from_light_curve(x)
x = remove_nan_flux_data_points_from_light_curve(x)
if randomize:
x = randomly_roll_light_curve(x)
Expand Down

0 comments on commit 7512fdb

Please sign in to comment.