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 unit tests #6

Closed
apizzuto opened this issue Feb 4, 2021 · 3 comments
Closed

Add unit tests #6

apizzuto opened this issue Feb 4, 2021 · 3 comments

Comments

@apizzuto
Copy link
Collaborator

apizzuto commented Feb 4, 2021

  • Include seeds for reproducible results
@apizzuto
Copy link
Collaborator Author

Add unit tests for:

  • Total number conservation (not including secondaries)
  • Check that we don't make more energy
  • Check absorption matches exponential expectation
  • Check earth has right mass
  • Check density sampling against a table
  • Check CC/NC interaction ratio
  • TauDecay checks
  • Power-law checks (secondaries coming out comparing against a spline that we know is right)

@apizzuto
Copy link
Collaborator Author

Shell was added with latest PR. We will need to add more tests once other branches are merged

@apizzuto
Copy link
Collaborator Author

Done with most of these. Checks not passing include "not making more energy"
Still need to add earth mass check and some GZK and power law checks

@ibsafa ibsafa closed this as completed Jul 14, 2021
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

No branches or pull requests

2 participants