posydon.unit_tests.popsyn
posydon.unit_tests.popsyn.test_star_formation_history
Unit tests for posydon/popsyn/star_formation_history.py
- class posydon.unit_tests.popsyn.test_star_formation_history.TestChruslinska21[source]
Bases:
object
Tests for the Chruslinska21 SFH model with mocked data loading.
- chruslinska_model(mock_chruslinska_data)[source]
Create a Chruslinska21 model instance with mocked data.
- class posydon.unit_tests.popsyn.test_star_formation_history.TestFujimoto24[source]
Bases:
object
Tests for the Fujimoto24 SFH model
- class posydon.unit_tests.popsyn.test_star_formation_history.TestGetSFHModel[source]
Bases:
object
Tests for the get_SFH_model function.
- test_chruslinska_model(monkeypatch)[source]
Test that get_SFH_model returns Chruslinska21 instance.
- test_illustris_tng_model(monkeypatch)[source]
Test that get_SFH_model returns IllustrisTNG instance.
- class posydon.unit_tests.popsyn.test_star_formation_history.TestIllustrisTNG[source]
Bases:
object
Tests for the IllustrisTNG SFH model with mocked data loading.
- illustris_model(monkeypatch, mock_illustris_data)[source]
Create an IllustrisTNG model instance with mocked data.
- class posydon.unit_tests.popsyn.test_star_formation_history.TestMadauBase[source]
Bases:
object
Test class for MadauBase
- class posydon.unit_tests.popsyn.test_star_formation_history.TestMadauDickinson14[source]
Bases:
object
Tests for the MadauDickinson14 SFH model
- class posydon.unit_tests.popsyn.test_star_formation_history.TestMadauFragos17[source]
Bases:
object
Tests for the MadauFragos17 SFH model
- class posydon.unit_tests.popsyn.test_star_formation_history.TestNeijssel19[source]
Bases:
object
Tests for the Neijssel19 SFH model
- class posydon.unit_tests.popsyn.test_star_formation_history.TestSFHBase[source]
Bases:
object
- test_distribute_cdf(ConcreteSFH, model_dict, normalise, met_edges, expected, warning)[source]
Test the _distribute_cdf method with various scenarios.
- class posydon.unit_tests.popsyn.test_star_formation_history.TestSFR_per_met_at_z[source]
Bases:
object
Tests for SFR_per_met_at_z function.