kinoml.core.conditions
¶
Each Measurement object can store a conditions
attribute which should contain one of the classes
here defined.
For example, experimental measurements can have an
AssayConditions
object specifying the variables
involved in the experiment, like pH.
Module Contents¶
- class kinoml.core.conditions.BaseConditions(strict: bool = True)¶
Contains information about the experimental conditions. We ensure objects are immutable by using read-only properties for all attributes. Do NOT modify private attributes or hashing will break.
- Parameters
strict (bool, optional=True) – Whether to perform safety checks at initialization.
- check()¶
Perform some checks for valid values
- _properties(classname: bool = True) dict ¶
Return a dictionary with the classname and all defined properties. Used for equality comparisons in subclasses.
- Parameters
classname (bool, optional=True) – Whether to include the name of the instance class
- Return type
dict
- __hash__()¶
Return hash(self).
- __eq__(other)¶
Return self==value.
- __repr__() str ¶
Return repr(self).
- class kinoml.core.conditions.AssayConditions(pH: Union[int, float] = 7.0, *args, **kwargs)¶
Bases:
BaseConditions
Contains information about the experimental conditions of a given assay.
- Parameters
pH (int or float, optional=7.0) – Acidity conditions
- property pH¶
- check()¶
Perform some checks for valid values