sorcha.lightcurves.base_lightcurve
Attributes
Classes
Abstract base class for lightcurve models |
Module Contents
- class AbstractLightCurve(required_column_names: List[str] = [])[source]
Bases:
abc.ABCAbstract base class for lightcurve models
- abstractmethod compute(df: pandas.DataFrame) numpy.array[source]
User implemented calculation based on the input provided by the pandas dataframe
df.- Parameters:
df (Pandas dataframe) -- The
observationsdataframe provided bySorcha.
- _validate_column_names(df: pandas.DataFrame) None[source]
- Private method that checks that the provided pandas dataframe contains
the required columns defined in
self.required_column_names.
- Parameters:
df (Pandas dataframe) -- The
observationsdataframe provided bySorcha.
- _log_exception(exception: Exception) None[source]
Log an error message from an exception to the error log file
- Parameters:
exception (Exception) -- The exception with a string to appended to the error log