-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixing contamination_fraction in server mode #91
Fixing contamination_fraction in server mode #91
Conversation
…not yield any results
So the travis builds fails with bizarre errors that I cannot reproduce on my local setup. The source of the errors seems to be
I suspected it was due to the new version release of CYTHON (Jan 19th) but I can't reproduce this issue at all. Any ideas? |
Update: this building/compilation error from pynbody was also reported here (pynbody/pynbody#503) and seems to originate from incompatible numpy/scipy interactions. Any preferred directions to fix this? |
…sistent-contamination
…ting rid of __contains__ calls
Thanks for the comments! They should be addressed in the last commit. |
Hi,
This PR is a fix to issue #85 for which the contamination_fraction of haloes made of purely heavy particles would be 0.0 in server-mode.
This is bypassed by implementing a mass_resolution at the simulation level, similar to the spatial resolution already present. A quicker option from the snapshot size is also available if requested.
I also added two units tests on the Changa handler verifying that both the normal and quicker calculations return expected results. I further verified that the behaviour is the one expected from the documentation on three tests zoom simulation, both with and without the quicker flag.
Comments welcome!
Martin