darsia.SimpleRunAnalysis#
- class SimpleRunAnalysis(geometry, colors={})[source]#
Bases:
MultiphaseTimeSeriesAnalysisCustomized class for analyzing a single run of the FFUM experiment.
Initialize the SimpleRunAnalysis class.
- Parameters:
- geometry
darsia.Geometry Geometry for integration of mass.
- colors
dict,optional Dictionary specifying colors for plotting. Keys are ‘aqueous’, ‘gaseous’, and ‘mass’. Values are RGB tuples. Defaults to None, which uses preset colors.
- geometry
Methods
clean(threshold)Remove faulty data from tracked time series data.
load(path)Load the multiphase time series data from a csv file.
plot_contour_concentration(img, ...[, thickness])plot_contour_mass(img, mass_analysis_result, ...)Customized contour plot of the mass analysis.
plot_contour_saturation(img, ...[, thickness])plot_contour_saturation_concentration(img, ...)plot_contour_signal(img, ...)Customized contour plot of the signal analysis.
plot_dissolved_CO2(background, img, ...[, ...])plot_gas(background, img, ...[, thickness])plot_mass_over_time(path, **kwargs)Plot the time series mass data of gaseous and aqueous phases.
plot_pure_contour_signal(img, ...[, thickness])plot_result(mass_analysis_result, component, ...)Plot the result of the mass analysis for a specific component.
plot_simple_contour_signal(img, ...[, thickness])plot_volume_over_time(path, **kwargs)Plot the time series volume of gaseous and aqueous phases.
reset()Reset the tracking time series data to empty lists.
save(path)Save the multiphase time series data to a csv file.
track(mass_analysis_result[, exact_mass])Track the mass analysis result and add to time series data.
Attributes
Geometry for integration of mass.
Color for aqueous phase in plots.
Color for gaseous phase in plots.
Color for mass in plots.
Time series data for multiphase mass and volume tracking.
- plot_contour_mass(img, mass_analysis_result, path)[source]#
Customized contour plot of the mass analysis.
- Parameters:
- img
darsia.Image The image on which to plot the contours.
- mass_analysis_result
darsia.MassAnalysisResults The mass analysis results containing the component data.
- path
Path Path to save the contour plot image.
- img
- Returns:
darsia.ImageThe contour plot image with mass contours.
- plot_contour_signal(img, mass_analysis_result, path)[source]#
Customized contour plot of the signal analysis.
- Parameters:
- img
darsia.Image The image on which to plot the contours.
- mass_analysis_result
darsia.MassAnalysisResults The mass analysis results containing the component data.
- path
Path Path to save the contour plot image.
- img
- Returns:
darsia.ImageThe contour plot image with mass contours.
- track(mass_analysis_result, exact_mass=None)[source]#
Track the mass analysis result and add to time series data.
- Parameters:
- mass_analysis_result
darsia.MassAnalysisResults The mass analysis results containing the component data.
- exact_mass
float The exact injected mass at the time of the analysis result.
- mass_analysis_result
- color_aq#
Color for aqueous phase in plots.
- color_g#
Color for gaseous phase in plots.
- color_mass#
Color for mass in plots.
- data#
Time series data for multiphase mass and volume tracking.
- geometry#
Geometry for integration of mass.