Many functions on normalized FoldedLightCurve failed with UnitConversionError
: copy()
, select_flux()
, normalize()
, etc.
#1429
Labels
🐛 bug
Something isn't working
Problem description
Many operations on a normalized FoldedLighCurve object, created from
lc.fold(..., normalize_phase=True)
, would fail withUnitConversionError: only quantities with time units can be used to instantiate Time instances.
The affected functions all use all use
lc.copy()
internally, which triggered the error. They include (not exhaustive):lc.copy()
,lc.select_flux()
,lc.remove_outliers()
,lc.normalize()
, lightcurve math (e.g.,lc * 1.1
), etc.Some operations are not affected, including
lc.remove_nans()
,lc.truncate()
(operations that create a new lighcurve object using numpy boolean indexing)Example
The stacktrace:
Expected behavior
The operations should work on normalized FoldedLightCurve.
Environment
The text was updated successfully, but these errors were encountered: