zooc.data.offset_temp

Z-offset temperature data.

class zooc.data.offset_temp.OffsetTemp(*, bed_temp, extruder_temp, z_offset, aux_data=<factory>)

Bases: KlipperConfigDict

Single Z-offset measure at bed and extruder temperatures with optional auxiliary data.

Parameters:
  • bed_temp (float) – Bed temperature [°C].

  • extruder_temp (float) – Extruder temperature [°C].

  • z_offset (float) – Z-offset value at given temperatures [mm].

  • aux_data (dict[str, object]) – Optional auxiliary data for the measurement. This is not saved in the config file.

static build(temps, z_offset, aux_data=None)

Create OffsetTemp from temperatures and z-offset.

Parameters:
  • temps (Temps) – Bed and extruder temperatures.

  • z_offset (float) – Z-offset value [mm].

  • aux_data (dict[str, object] | None) – Optional auxiliary data for the measurement. This is not saved in the config file.

Returns:

OffsetTemp created with temperatures and z-offset.

Return type:

OffsetTemp

static get_title()

Get the list of config variables.

This defines the which instance variables are the config variables, their stored order and naturally the name of the values. E.g., returning [‘low’, ‘high’] means the class has to have members ‘low’ and ‘high’.

Returns:

List of key names.

Return type:

list[str]

get_data()

Get the dictionary of all config variables.

Returns:

Dict of config variables.

Return type:

dict[str, float]

to_string()

Comma separated list of all config variables get_title() as <key>=<value> pairs.

I.e.:

<key_1>=<value_1>, <key_2>=<value_2>
Returns:

String of all config variables.

Return type:

str

property temps: Temps

Get the temperatures as a Temps object.

Returns:

Bed and extruder temperatures.