Skip to content

Commit

Permalink
Fix: Pin SALT2 version used in test vs snfit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrose committed Apr 10, 2023
1 parent 68586c5 commit 9487ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sncosmo/tests/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ def test_flatten_result(self):
def test_fit_lc_vs_snfit():
"""Test fit_lc versus snfit result for one SN."""

# keep the same SALT2 version as snfit results
source = sncosmo.get_source("salt2", "2.4")
# purposefully use CCM dust to match snfit
model = sncosmo.Model(source='salt2',
model = sncosmo.Model(source=source,
effects=[sncosmo.CCM89Dust()],
effect_names=['mw'],
effect_frames=['obs'])
Expand Down

0 comments on commit 9487ddc

Please sign in to comment.