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 linspace error #30

Merged
merged 1 commit into from
May 5, 2021
Merged

Conversation

jwittbrodt
Copy link
Contributor

Hi Carroll,

numpy was throwing errors about float valued arguments for the number of points in np.linspace() for me (python 3.9.2, numpy 1.20.1), so I added explicit casts to int around the np.ceil calls. I'm not sure in which numpy version it broke, or if np.ceil or np.linspace is to blame, but it's a trivial fix either way.

Thanks a lot for still looking out for this code after all these years.

Fixes #24, which reports the same error I was getting.

Cheers,
Jonas

Copy link
Owner

@clwainwright clwainwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for being so slow on this. Thanks for the PR! Looks good to me.

@clwainwright clwainwright merged commit b8013ea into clwainwright:master May 5, 2021
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.

Compilation error
2 participants