This is a part of work to incorporate noise generation into the simulation pipeline started in #108
The changes:
Introduces oversampled_observations fixture
Changes the interface of test_snia_end2end and helper test function draw_single_random_sn to use opsim only, removes phases calculations
This new changes revealed some inconsistency between band fluxes we produce and sncosmo produces. I changed passbands we use from ur to ri and model from SALT2 to SALT3. I opened an issue about this inconsistency https://github.com/lincc-frameworks/tdastro/issues/133
Since NB called the test functions (I believe it was not the best idea), it also needs to access some pytest fixtures. I introduced an ugly hack in conftest.py to fix it. I hope someone would volunteer to fix it in a proper way.
Change Description
[ ] My PR includes a link to the issue that I am addressing
Solution Description
Code Quality
[ ] I have read the Contribution Guide
[ ] My code follows the code style of this project
[ ] My code builds (or compiles) cleanly without any errors or warnings
[ ] My code contains relevant comments and necessary documentation
Project-Specific Pull Request Checklists
Bug Fix Checklist
[ ] My fix includes a new test that breaks as a result of the bug (if possible)
[ ] My change includes a breaking change
[ ] My change includes backwards compatibility and deprecation warnings (if possible)
New Feature Checklist
[ ] I have added or updated the docstrings associated with my feature using the NumPy docstring format
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[ ] I have added unit/End-to-End (E2E) test cases to cover my new feature
[ ] My change includes a breaking change
[ ] My change includes backwards compatibility and deprecation warnings (if possible)
This is a part of work to incorporate noise generation into the simulation pipeline started in #108
The changes:
oversampled_observations
fixturetest_snia_end2end
and helper test functiondraw_single_random_sn
to use opsim only, removes phases calculationsur
tori
and model from SALT2 to SALT3. I opened an issue about this inconsistency https://github.com/lincc-frameworks/tdastro/issues/133conftest.py
to fix it. I hope someone would volunteer to fix it in a proper way.Change Description
Solution Description
Code Quality
Project-Specific Pull Request Checklists
Bug Fix Checklist
New Feature Checklist
Documentation Change Checklist
Build/CI Change Checklist
Other Change Checklist