zooc.run.temps_scan

Methods for measuring Z-offset at given temperature ranges.

class zooc.run.temps_scan.TempScan(klipper_module, gcmd, run_config)

Bases: RunCalibrate, ABC

Base class for various methods scanning through temperatures and measuring Z-offset.

Parameters:
abstractmethod get_temp_steps()

Get the number of temperature steps in the scan.

Returns:

Number of temperature steps.

Return type:

int

abstractmethod scan(measure_z, temps_set)

Scan temperatures and run the Z-measurement method on each state.

Heat the printer through the temperatures and run the Z-measurement method.

Parameters:
  • measure_z (MeasureZ) – Z-measure method. Takes care of settling etc.

  • temps_set (Callable[[Temps], None]) – Callback to set temperatures.

Returns:

List of measured Z-offsets for each scanned temperature.

Return type:

list[OffsetTemp]

class zooc.run.temps_scan.TempScanFull(klipper_module, gcmd, run_config)

Bases: TempScan

Scan all bed and extruder temperatures, i.e. full matrix.

Parameters:
get_temp_steps()

Get the number of temperature steps in the scan.

Returns:

Number of temperature steps.

Return type:

int

scan(measure_z, temps_set)

Scan temperatures and run the Z-measurement method on each state.

Heat the printer through the temperatures and run the Z-measurement method.

Parameters:
  • measure_z (MeasureZ) – Z-measure method. Takes care of settling etc.

  • temps_set (Callable[[Temps], None]) – Callback to set temperatures.

Returns:

List of measured Z-offsets for each scanned temperature.

Return type:

list[OffsetTemp]

class zooc.run.temps_scan.TempScanSimple(klipper_module, gcmd, run_config)

Bases: TempScan

Simple and fast temperature scan.

Heat the system to selected temperatures while keeping the other at reference value and call callback.

Parameters:
get_temp_steps()

Get the number of temperature steps in the scan.

Returns:

Number of temperature steps.

Return type:

int

scan(measure_z, temps_set)

Scan temperatures and run the Z-measurement method on each state.

Heat the printer through the temperatures and run the Z-measurement method.

Parameters:
  • measure_z (MeasureZ) – Z-measure method. Takes care of settling etc.

  • temps_set (Callable[[Temps], None]) – Callback to set temperatures.

Returns:

List of measured Z-offsets for each scanned temperature.

Return type:

list[OffsetTemp]