Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
fix off-by-one (steps re-added)
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0TF authored Oct 18, 2022
1 parent 04b2731 commit b0b9398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,13 @@ def process_axis(opt, vals):
return valslist

try:
x_opt = axis_options[x_type + 1]
x_opt = axis_options[x_type]
xs = process_axis(x_opt, x_values)

y_opt = axis_options[y_type + 1]
y_opt = axis_options[y_type]
ys = process_axis(y_opt, y_values)

z_opt = axis_options[z_type + 1]
z_opt = axis_options[z_type]
zs = process_axis(z_opt, z_values)
except ValueError:
state.interrupted = True
Expand Down

0 comments on commit b0b9398

Please sign in to comment.