darsia.InjectionProtocol#
- class InjectionProtocol(path)[source]#
Bases:
objectInjection protocol: the sequence of injection events and their rates.
The rates are mass rates (kg/s) and/or volume rates (m3/s), depending on the columns of the protocol file.
Methods
injected_mass([date, time, roi])Get the cumulative injected mass until the given date.
injected_volume([date, time, roi])Get the cumulative injected volume until the given date.
Attributes
Whether the protocol defines a mass rate for every injection.
Whether the protocol defines a volume rate for every injection.
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 hours) 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.
- injected_volume(date=None, time=None, roi=None)[source]#
Get the cumulative injected volume until the given date.
- Parameters:
- date
datetime Date to get the cumulative injected volume for.
- time
float Time (in hours) to get the cumulative injected volume for.
- roi
Optional[darsia.Image] Region of interest for the volume calculation.
- date
- Returns:
floatCumulative injected volume [m3] until the given date.
- df#
DataFrame containing the protocol.
- property has_mass#
Whether the protocol defines a mass rate for every injection.
- property has_volume#
Whether the protocol defines a volume rate for every injection.
- num_injections#
Number of injections in the protocol.