darsia.SimpleRunAnalysis#

class SimpleRunAnalysis(geometry, colors={})[source]#

Bases: MultiphaseTimeSeriesAnalysis

Customized class for analyzing a single run of the FFUM experiment.

Initialize the SimpleRunAnalysis class.

Parameters:
geometrydarsia.Geometry

Geometry for integration of mass.

colorsdict, optional

Dictionary specifying colors for plotting. Keys are ‘aqueous’, ‘gaseous’, and ‘mass’. Values are RGB tuples. Defaults to None, which uses preset colors.

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

Geometry for integration of mass.

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.

plot_contour_mass(img, mass_analysis_result, path)[source]#

Customized contour plot of the mass analysis.

Parameters:
imgdarsia.Image

The image on which to plot the contours.

mass_analysis_resultdarsia.MassAnalysisResults

The mass analysis results containing the component data.

pathPath

Path to save the contour plot image.

Returns:
darsia.Image

The contour plot image with mass contours.

plot_contour_signal(img, mass_analysis_result, path)[source]#

Customized contour plot of the signal analysis.

Parameters:
imgdarsia.Image

The image on which to plot the contours.

mass_analysis_resultdarsia.MassAnalysisResults

The mass analysis results containing the component data.

pathPath

Path to save the contour plot image.

Returns:
darsia.Image

The 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_resultdarsia.MassAnalysisResults

The mass analysis results containing the component data.

exact_massfloat

The exact injected mass at the time of the 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.