Skip to content

py_spec minor bugfix#218

Merged
smiet merged 1 commit intoPrincetonUniversity:masterfrom
missing-user:pyspec-minor-fixes
Jul 23, 2025
Merged

py_spec minor bugfix#218
smiet merged 1 commit intoPrincetonUniversity:masterfrom
missing-user:pyspec-minor-fixes

Conversation

@missing-user
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@smiet smiet merged commit 8aa8ab4 into PrincetonUniversity:master Jul 23, 2025
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