conditions

AssayConditions

Contains information about the experimental conditions of a given assay.

Parameters

Name Type Description Default
pH Union[int, float] Acidity conditions 7.0

sanity_checks(self)

Show source code in core/conditions.py
73
74
75
    def sanity_checks(self):
        super().sanity_checks()
        assert 0 <= self.pH <= 14, f"pH must be within [0, 14], but {self.pH} was specified"

Perform some checks for valid values

BaseConditions

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

Name Type Description Default
strict bool Whether to perform sanity checks at initialization. True

sanity_checks(self)

Show source code in core/conditions.py
22
23
24
25
    def sanity_checks(self):
        """
        Perform some checks for valid values
        """

Perform some checks for valid values


Last update: April 24, 2020