gemseo_calibration / measures

factory module

A factory to create instances of CalibrationMeasure.

class gemseo_calibration.measures.factory.CalibrationMeasureFactory[source]

Bases: object

A factory to create instances of CalibrationMeasure.

create(name, **options)[source]

Instantiate a CalibrationMeasure from its class name.

Parameters:
  • name (str) – The name of a class inheriting from CalibrationMeasure.

  • **options (Any) – The options of the calibration measure.

Returns:

The calibration measure.

Return type:

CalibrationMeasure

is_available(name)[source]

Return whether a calibration measure is available.

Parameters:

name (str) – The name of a calibration measure.

Returns:

Whether the measure is available.

Return type:

bool

is_integrated_measure: bool

Whether the calibration measure is an IntegratedMeasure.

property measures: list[str]

The names of the available calibration measures.