riverine.components#
Classes#
Abstract class for a component in a mix. Custom components that don't inherit from |
|
A single named component, potentially with a concentration and location. |
|
A single named strand, potentially with a concentration, location and sequence. |
Module Contents#
- class riverine.components.AbstractComponent[source]#
Bases:
abc.ABCAbstract class for a component in a mix. Custom components that don’t inherit from a concrete class should inherit from this class and implement the methods here.
- property location: tuple[str, riverine.locations.WellPos | None][source]#
- property well: riverine.locations.WellPos | None[source]#
- property _well_list: list[riverine.locations.WellPos][source]#
- property volume: riverine.units.DecimalQuantity[source]#
- property concentration: riverine.units.DecimalQuantity[source]#
- Abstractmethod:
(Source) concentration of the component as a pint Quantity. NaN if undefined.
- abstractmethod with_reference(reference: riverine.references.Reference, *, inplace: bool = False) T[source]#
- abstractmethod with_experiment(experiment: riverine.experiments.Experiment, *, inplace: bool = True) AbstractComponent[source]#
- classmethod _structure(d: dict[str, Any], experiment: riverine.experiments.Experiment | None = None) AbstractComponent[source]#
- Abstractmethod:
- abstractmethod _unstructure(experiment: riverine.experiments.Experiment | None = None) dict[str, Any][source]#
- _update_volumes(consumed_volumes: dict[str, riverine.units.DecimalQuantity] | None = None, made_volumes: dict[str, riverine.units.DecimalQuantity] | None = None, _cache_key=None) Tuple[dict[str, riverine.units.DecimalQuantity], dict[str, riverine.units.DecimalQuantity]][source]#
Given a
- class riverine.components.Component[source]#
Bases:
AbstractComponentA single named component, potentially with a concentration and location.
Location is stored as a plate and well property. plate is
- concentration: riverine.units.DecimalQuantity[source]#
(Source) concentration of the component as a pint Quantity. NaN if undefined.
- _get_concentration(_cache_key=None) riverine.units.DecimalQuantity[source]#
- well: riverine.locations.WellPos | None[source]#
- property location: tuple[str | None, riverine.locations.WellPos | None][source]#
- _unstructure(experiment: riverine.experiments.Experiment | None = None) dict[str, Any][source]#
- classmethod _structure(d: dict[str, Any], experiment: riverine.experiments.Experiment | None = None) Component[source]#
- with_experiment(experiment: riverine.experiments.Experiment, inplace: bool = True) AbstractComponent[source]#
- with_reference(reference: riverine.references.Reference, inplace: bool = False) Component[source]#