DAQ: fixed bug in Image-_number function> ALso checks if image_angle is 0 to prevent a divide by 0 error.

This commit is contained in:
2025-07-22 17:07:12 +02:00
parent 174881d160
commit 05fe41ae93
@@ -137,6 +137,9 @@ class RotationDataCollectionPanel(ScanSettingsPanel):
if total_angle <= 0 or total_angle < image_angle:
print("Total angle is not valid.")
return 0
elif image_angle <= 0:
print("Image angle is not valid.")
return 0
return round(total_angle / image_angle)