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

Add particle tests and fix nan checks bug #173

Merged
merged 6 commits into from
Dec 20, 2023

Conversation

Hendrik1704
Copy link
Collaborator

This PR fixes some bugs in the Particle class. Today I wanted to complete the tests for the class and I realized, that we tested in all functions with self.x == np.nan, which should be np.isnan(self.x).
I fixed this now in this PR and added test functions for all Particle class functions.

@NGoetz @nilssass Do we want to release a 1.1.1 version to fix this?

@Hendrik1704 Hendrik1704 added bug Something isn't working tests Something related to the pytests labels Dec 10, 2023
@Hendrik1704 Hendrik1704 self-assigned this Dec 10, 2023
@Hendrik1704
Copy link
Collaborator Author

I opened issue #174 to document one of the bugs I solved with the latest push. This is now also reflected in the issue number in the CHANGELOG.

@Hendrik1704 Hendrik1704 linked an issue Dec 18, 2023 that may be closed by this pull request
src/sparkx/Particle.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@nilssass nilssass left a comment

Choose a reason for hiding this comment

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

I added two comments with some suggestions but besides these everything looks very good. Thank you for the effort! I already approve the PR as the eventual adjustments are minor

@Hendrik1704 Hendrik1704 merged commit f99b625 into sparkx_devel Dec 20, 2023
1 check passed
@Hendrik1704 Hendrik1704 deleted the roch/tests_particle branch December 20, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests Something related to the pytests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in types of Particle class causes crash of other function
2 participants