diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-06-12 10:04:13 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-06-15 17:15:53 -0400 |
commit | 4b231470ed435c600266b474b3faf99cbaacbff0 (patch) | |
tree | 848a589733b7240814896aea0245cd885ac48a3e /klippy/extras/delta_calibrate.py | |
parent | 8c96e9dd116ba832b9aa6e27d9056341f346bcec (diff) | |
download | kutter-4b231470ed435c600266b474b3faf99cbaacbff0.tar.gz kutter-4b231470ed435c600266b474b3faf99cbaacbff0.tar.xz kutter-4b231470ed435c600266b474b3faf99cbaacbff0.zip |
delta_calibrate: Improve Python3 compatibility
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/delta_calibrate.py')
-rw-r--r-- | klippy/extras/delta_calibrate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/delta_calibrate.py b/klippy/extras/delta_calibrate.py index abea7cc6..f9af963a 100644 --- a/klippy/extras/delta_calibrate.py +++ b/klippy/extras/delta_calibrate.py @@ -52,7 +52,7 @@ def measurements_to_distances(measured_params, delta_params): for od, opw in zip(mp['OUTER_DISTS'], mp['OUTER_PILLAR_WIDTHS']) ] # Convert angles in degrees to an XY multiplier obj_angles = map(math.radians, MeasureAngles) - xy_angles = zip(map(math.cos, obj_angles), map(math.sin, obj_angles)) + xy_angles = list(zip(map(math.cos, obj_angles), map(math.sin, obj_angles))) # Calculate stable positions for center measurements inner_ridge = MeasureRidgeRadius * scale inner_pos = [(ax * inner_ridge, ay * inner_ridge, 0.) @@ -270,7 +270,7 @@ class DeltaCalibrate: if data is None: continue try: - parts = map(float, data.split(',')) + parts = list(map(float, data.split(','))) except: raise gcmd.error("Unable to parse parameter '%s'" % (name,)) if len(parts) != count: |