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

Histogram nz implementation with tests #111

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

Conversation

fpetri115
Copy link

Hi, I have implemented a flexible nz parameterisation in the form of a histogram which I needed for my work. It is inside redshift.py and is fully vectorised so it can take in an array of redshifts, just like the other nzs provided. The input parameters are an array containing bin heights and another one containing bin edges, mirroring the numpy.histogram() implementation.

I have also added some tests, to a newly created file in tests called test_redshift.py as there wasn't one already. These just check the normalisation and that area under the nz is correct.

Let me know your thoughts!

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.

1 participant