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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user