Measurement
- class openmsimodel.entity.base.measurement.Measurement(name: str, *, notes: str | None = None, conditions: list[Condition] | None = None, parameters: list[Parameter] | None = None, properties: list[Property] | None = None, material: MaterialRun | None = None)
Bases:
ProcessOrMeasurementBase element for measurements.
- property spec: MeasurementSpec
The underlying measurement spec.
- property run: MeasurementRun
The underlying measurement run.
- classmethod from_spec_or_run(name: str, *, notes: str | None = None, spec: MeasurementSpec = None, run: MeasurementRun = None) Measurement
Instantiate a Measurement from a spec or run with appropriate validation.
Note that the spec’s template will be set to the class template, and the run’s spec will be set to this spec.
- set_material(material: MaterialRun | None) None
Set the material on sstate the measurement run was performed.
- Parameters:
material – {MaterialRun, None} The measurement’s material.
- get_properties_dict()
Return a
dictof measurement run properties. The keys are the names of the properties. Each value is adictcontaining a valuedictand originstr.