darsia.InjectionProtocol#
- class InjectionProtocol(path)[source]#
Bases:
objectInjection 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
DataFrame containing the protocol.
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:
- date
datetime Date to get the cumulative injected mass for.
- time
float Time (in seconds) to get the cumulative injected mass for.
- roi
Optional[darsia.Image] Region of interest for the mass calculation.
- date
- Returns:
floatCumulative injected mass [kg] until the given date.
- df#
DataFrame containing the protocol.
- num_injections#
Number of injections in the protocol.