darsia.SimpleMultiphaseTimeSeriesData#
- class SimpleMultiphaseTimeSeriesData(time: List[float] = <factory>, name: List[str] = <factory>, mass_g: list[float] = <factory>, mass_aq: list[float] = <factory>, mass_tot: list[float] = <factory>, exact_mass_tot: list[float | None] = <factory>)[source]#
Bases:
TimeSeriesDataMethods
append(time, name, mass_g, mass_aq, ...)Append a new data point to the multiphase data.
clean([tol])Remove data points outside a absolute/relative mass difference threshold.
load(path)Load the multiphase data from a csv file.
reset()Reset the multiphase data to empty lists.
save(path)Save the multiphase data to a csv file.
Attributes
Mass of the gaseous phase at each time point
Mass of the aqueous phase at each time point
Total mass (gaseous + aqueous) at each time point
Exact/expected total mass at each time point, if available
timeTime at each data point
nameName for each data point, e.g. name of raw image.
- append(time, name, mass_g, mass_aq, exact_mass_tot)[source]#
Append a new data point to the multiphase data.
- clean(tol=inf)[source]#
Remove data points outside a absolute/relative mass difference threshold.
The comparison is drawn based on the total and exact mass (reference).
- Parameters:
- tol
float Absolute or relative threshold for the mass difference. Default is np.inf, which means no cleaning.
- tol
- exact_mass_tot#
Exact/expected total mass at each time point, if available
- mass_aq#
Mass of the aqueous phase at each time point
- mass_g#
Mass of the gaseous phase at each time point
- mass_tot#
Total mass (gaseous + aqueous) at each time point