darsia.PressureTemperatureProtocol#

class PressureTemperatureProtocol(path)[source]#

Bases: object

Pressure/temperature protocol, queried for a ThermodynamicState.

Methods

get_gradient(date)

Get the pressure and temperature gradient (upwards) at the given date.

get_state(date)

Get the pressure and temperature at the given date.

Attributes

df

DataFrame containing the protocol.

get_gradient(date)[source]#

Get the pressure and temperature gradient (upwards) at the given date.

Parameters:
datedatetime

Date to get the pressure and temperature gradient for.

Returns:
ThermodynamicState

Pressure [bar] and temperature [Celsius] gradient at the given date.

get_state(date)[source]#

Get the pressure and temperature at the given date.

Parameters:
datedatetime

Date to get the pressure and temperature for.

Returns:
ThermodynamicState

Pressure [bar] and temperature [Celsius] at the given date.

df#

DataFrame containing the protocol.