factory module

Define a class to create the proper IMeasurementPoint.

class IMeasurementPointFactory(is_raw=False, create_virtual_instruments=True, commented_lines=None, **kwargs)[source]

Bases: object

Class to create the proper GlobalDiagnostics PickUp.

It infers the proper type, position of instruments as well as the measured data from the configuration TOML file and the measurements CSV file.

Parameters:
  • is_raw (bool, default: False)

  • create_virtual_instruments (bool, default: True)

  • commented_lines (Sequence[str] | None, default: None)

run_single(config_key, config_value, df_data, color)[source]

Create a single measurement point.

Parameters:
Return type:

IMeasurementPoint | None

Returns:

A GlobalDiagnostics or PickUp.

run(config, df_data, verbose=False)[source]

Create all the measurement points.

Parameters:
Return type:

tuple[GlobalDiagnostics | None, list[PickUp]]

_filter_global_diagnostics(measurement_points, verbose=False)[source]

Ensure that we have only one GlobalDiagnostics object.

Parameters:
Return type:

GlobalDiagnostics | None

_filter_pick_ups(measurement_points, verbose=False)[source]

Print information on the created pick-ups.

Parameters:
Return type:

list[PickUp]