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 DerivedField.is_sph_field. Fixes #2069 #2070

Merged
merged 3 commits into from
Nov 4, 2018

Conversation

ngoldbaum
Copy link
Member

This adds a new property to the DerivedField class, is_sph_field. This is True is the field is an SPH field (i.e. it's ultimately an alias to a particle field where the particle type is an SPH particle type) and False otherwise. This simplifies logic in a few places and for free allows us to fix #2069 and better support particle filters made from an SPH particle type.

I've also added a test.

ping @saethlin.

@ngoldbaum
Copy link
Member Author

Ugh I have no idea why the plot answer tests are failing. Unfortunately there are some fixes for the answer test reporting script that are on master so I need to merge with master first to understand what's going on here.

@AshKelly
Copy link
Member

Other than those random failing tests this looks really good to me - I really like the idea behind this functionality

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