zooc.zooc_core
The core functionality of the ZOOC module.
- exception zooc.zooc_core.ZoocError
Bases:
ExceptionCustom exception for ZOOC errors.
- add_note(note, /)
Add a note to the exception
- with_traceback(tb, /)
Set self.__traceback__ to tb and return self.
- class zooc.zooc_core.ZoocCore(temps_ref, allowed_offset_range, fixed_offsets, calibration_data)
Bases:
objectUtilities to calculate Z-offsets for the given temperature and handle fixed offsets.
- Parameters:
- filter_fixed_offsets(profiles)
Select the profiles with the given names.
- get_aggregated_temps(temps_pri, temps_sec)
Get an aggregated set of bed and extruder temperatures.
Use the target temperatures when given temperature is not set.
- get_fixed_offsets(fixed_offsets, allow_missing=True)
Get fixed offsets from the comma separated string.
Raise ZoocError if not all fixed offsets are found and missing profiles are not allowed.
- get_temp_z_offset(temps)
Calculate Z-offset for given temperatures.
- set_calibration_data(calibration_data)
Set new ZOOC calibration data.
- Parameters:
calibration_data (CalibrationData) – New ZOOC calibration data.
- Return type:
None