torchcell.metabolism.media.MediaBoundsDiff

class MediaBoundsDiff(*, left: str, right: str, only_in_left: dict[str, float] = <factory>, only_in_right: dict[str, float] = <factory>, differing: dict[str, tuple[float, float]] = <factory>)[source]

Bases: ModelStrict

Exchange-level difference between two bound vectors on the same model.

property n_differences: int

Exchanges whose uptake bound is not identical across the two media.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].