darsia.InjectionProtocol#

class InjectionProtocol(path)[source]#

Bases: object

Injection protocol: the sequence of injection events and their masses.

Methods

injected_mass([date, time, roi])

Get the cumulative injected mass until the given date.

Attributes

df

DataFrame containing the protocol.

num_injections

Number of injections in the protocol.

injected_mass(date=None, time=None, roi=None)[source]#

Get the cumulative injected mass until the given date.

Parameters:
datedatetime

Date to get the cumulative injected mass for.

timefloat

Time (in seconds) to get the cumulative injected mass for.

roiOptional[darsia.Image]

Region of interest for the mass calculation.

Returns:
float

Cumulative injected mass [kg] until the given date.

df#

DataFrame containing the protocol.

num_injections#

Number of injections in the protocol.