elphick.geomet.base.SampleStatus

class elphick.geomet.base.SampleStatus(mc, component_limits)[source]

A class to check and report sample status in an MC object.

A MassComposition object (Sample, Stream, etc) can be unhealthy if: 1. the total mass of components is greater than the dry mass 2. any of the masses are negative 3. the component values are out of range

__init__(mc, component_limits)[source]

Initialize with an MC object.

Methods

__init__(mc, component_limits)

Initialize with an MC object.

get_sample_status(component_limits)

Check if all records are within the constraints.

Attributes

ok

Return True if all records are within range, False otherwise.

get_sample_status(component_limits)[source]

Check if all records are within the constraints.

Return type:

dict

property ok: bool

Return True if all records are within range, False otherwise.