Skip to content

Commit

Permalink
fixed error where z height change returned float instead of integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Edanderson5 committed May 24, 2024
1 parent def75bf commit d757766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/e2spt_boxer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ def save_set(self):

def key_press(self,event):
if event.key() == 96: ## "`" to move up a slice since arrow keys are occupied...
self.wdepth.setValue(self.z_loc+1)
self.wdepth.setValue(int(round(self.z_loc+1)))

elif event.key() == 49: ## "1" to move down a slice
self.wdepth.setValue(self.z_loc-1)
Expand Down

0 comments on commit d757766

Please sign in to comment.