lincc-frameworks / tdastro

MIT License
4 stars 0 forks source link

Refactor SN Ia e2e test to use oversampled opsim #132

Closed hombit closed 1 month ago

hombit commented 1 month ago

This is a part of work to incorporate noise generation into the simulation pipeline started in #108

The changes:

  1. Introduces oversampled_observations fixture
  2. Changes the interface of test_snia_end2end and helper test function draw_single_random_sn to use opsim only, removes phases calculations
  3. 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
  4. I fix some broken NB code and modified NB to use the new test interface. I opened issue https://github.com/lincc-frameworks/tdastro/issues/131 to run notebooks on CI.
  5. 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

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

review-notebook-app[bot] commented 1 month ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB