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

py_spec minor bugfix #218

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

Conversation

missing-user
Copy link
Contributor

None checks should be done with is None in python, instead of == None to avoid issues with equality overloads.
Passing an RGB color (np.array) to to the plotting functions threw at the None comparison, because numpy arrays need .any() or .all() for comparisons. I also refactored other instances of the same bug across the codebase.

plot_poincare now also ignores points that were unsuccessfully integrated instead of plotting them at [0,0]

Copy link
Collaborator

@jonathanschilling jonathanschilling left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the fixes!

Copy link
Collaborator

@smiet smiet left a comment

Choose a reason for hiding this comment

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

LGTM!

@smiet
Copy link
Collaborator

smiet commented Dec 12, 2024

Waiting a bit to merge as I am in the process of recovering the SPEC-devel PYPI account to fix the upload to PYPI workflow.

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.

3 participants