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

Numba montecarlo tests merged #1319

Merged

Conversation

chvogl
Copy link
Contributor

@chvogl chvogl commented Oct 14, 2020

No description provided.

andrewfullard and others added 8 commits October 14, 2020 12:30
…d that when updating global variables use in numba functions, the numba functions must be recompiled in order for the changes to take effect. Keep this in mind when testing. The cases for full relativity being enabled SHOULD FAIL, there is a discrepancy between how the code is written and what the tests check. Someone who is more confident in their knowledge of the physics than me should check it out. (i.e. should we be off by a factor of doppler factor, or doppler factor squared?)
@wkerzendorf wkerzendorf merged commit 4fc9bda into tardis-sn:numba_montecarlo Oct 15, 2020
atharva-2001 pushed a commit to atharva-2001/tardis that referenced this pull request Oct 1, 2021
* Clean up error reporting formal integral

* Make first move to numba montecarlo tests

* Add doppler factor tests

* Add mu, LF_TO_CMF tests

* Change r_inner, r_outer names; reference plasma correctly in integral test

* Clean up montecarlo testing

* Move location of coverage file

* Remove extraneous imports

* Refer to previous plasma object for atomic data

* Debug formal integral to ensure correct plasma is referenced

* Adding runner to test fixture

* Add capacity to use Estimators

* Update r_packet.py

* Added empty test files

* Packet tests

* Added empty tests for packet-related functions

* Added update line estimator test

* Nicer formatting

* Added empty tests that assert False

* Wrote unit tests for r_packet.move_r_packet.  Should be noted, we found that when updating global variables use in numba functions, the numba functions must be recompiled in order for the changes to take effect.  Keep this in mind when testing.  The cases for full relativity being enabled SHOULD FAIL, there is a discrepancy between how the code is written and what the tests check.  Someone who is more confident in their knowledge of the physics than me should check it out.  (i.e. should we be off by a factor of doppler factor, or doppler factor squared?)

* Bad vpacket test

Co-authored-by: Arjun Savel <asavel@berkeley.edu>
Co-authored-by: Jack O'Brien <jobrien585@gmail.com>
Co-authored-by: Andrew Fullard <andrewgfullard@gmail.com>
@atharva-2001 atharva-2001 mentioned this pull request Feb 26, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants