litmus.lightcurve
Bases: object
A wrapper class for lightcurves. Construct /w array-like inputs for time, signal and error (optional) like: lightcurve(T, Y, E) or: lightcurve(T, Y) Which yields E=0 for all {T,Y}
Supports array-like addition and float-like addition / multiplication
Source code in litmus/lightcurve.py
T = np.array(T, dtype=np.float64)
instance-attribute
Y = np.array(Y, dtype=np.float64)
instance-attribute
E = np.zeros_like(T)
instance-attribute
normalized = False
instance-attribute
keys() -> [str, str, str]
values() -> (_types.ArrayN, _types.ArrayN, _types.ArrayN)
normalize() -> _types.Self
Esimates the mean and amplitude of the lighturve assuming uncorrelated measurements Returns a lightcurve object with this normalization
Source code in litmus/lightcurve.py
unnormalize() -> _types.Self
Reverses the effects of lightcurve.normalize(). Returns a lightcurve object with mean and amplitude prior to normalize()
Source code in litmus/lightcurve.py
delayed_copy(lag=0.0, Tmin=None, Tmax=None) -> _types.Self
Returns a copy subsampled to only datapoints in the domain T in [Tmin,Tmax] and offset by lag
Source code in litmus/lightcurve.py
trimmed_copy(Tmin=None, Tmax=None) -> _types.Self
Returns a copy subsampled to only datapoints in the domain T in [Tmin,Tmax]
concatenate(other)
plot(axis=None, show=True, **kwargs) -> None
Plots an errorbar series to a matplotlib axis. If show=True, will plt.show() after plotting. If axis is None, will create a new figure. Pass in any plotting kwargs for plt.errorbar at **kwargs