Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix numpy indexing issue #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matsievskiysv
Copy link

On Python 3.11.2 with numpy 1.24.3 I get the following indexing error:

  File "/mnt/mstorage/Projects/Python/beadpull/.venv/lib/python3.11/site-packages/smithplot/smithaxes.py", line 1070, in grid
    for ys in np.linspace(y0, y1, y_div + 1)[1:]:
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<__array_function__ internals>", line 200, in linspace
  File "/mnt/mstorage/Projects/Python/beadpull/.venv/lib/python3.11/site-packages/numpy/core/function_base.py", line 121, in linspace
    num = operator.index(num)
          ^^^^^^^^^^^^^^^^^^^
TypeError: 'numpy.float64' object cannot be interpreted as an integer

This PR fixes this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant