torchcell.datamodels.schema.Concentration
- class Concentration(*, value: float | None = None, unit: ConcentrationUnit | None = None, basis: DoseBasis | None = None)[source]
Bases:
ModelStrictA dose of an environmental agent: a numeric value+unit and/or a target-basis.
Used for both a small-molecule
concentrationand a physical-factormagnitude(a generic value+unit record). Either a numericvalue(with a typedunit) or abasis(how the dose was set, e.g. anIC30target) must be present – screens routinely fix a compound at its IC30 without releasing the per-compound molar value, sovaluemay beNonewhilebasis=IC30.- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].