Skip to content

Commit

Permalink
line names.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Dec 6, 2023
1 parent d3be79d commit 5e11b52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_eline.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ def test_eline_parsing():
model_pars.update(TemplateLibrary["nebular"])

# test ignoring a line
lya = "Ly alpha 1216"
lya = "Ly-alpha 1215"
model_pars["elines_to_ignore"] = dict(init=lya, isfree=False)
model = SpecModel(model_pars)
model.parse_elines()
assert not np.isin(lya, model.emline_info["name"][model._use_eline])
assert np.isin("H alpha 6563", model.emline_info["name"][model._use_eline])
assert np.isin("Ba-alpha 6563", model.emline_info["name"][model._use_eline])
assert np.all(model._fix_eline)
assert model._use_eline.sum() == len(model._use_eline) - 1
assert len(model._use_eline) == len(model.emline_info)
Expand All @@ -36,7 +36,7 @@ def test_eline_parsing():
assert model._fit_eline.sum() == len(model._use_eline)

# test fitting just a line or two
fit_lines = ["[OIII]5007"]
fit_lines = ["[O III] 5007"]
model_pars["elines_to_fit"] = dict(init=fit_lines)
model = SpecModel(model_pars)
model.parse_elines()
Expand Down Expand Up @@ -173,7 +173,7 @@ def test_eline_implementation():
spec, phot, mfrac = model.predict(model.theta, obs=obs, sps=sps)

# test ignoring a line
lya = "Ly alpha 1216"
lya = "Ly-alpha 1215"
model_pars["elines_to_ignore"] = dict(init=lya, isfree=False)
model = SpecModel(model_pars)
spec_nolya, phot_nolya, mfrac = model.predict(model.theta, obs=obs, sps=sps)
Expand Down

0 comments on commit 5e11b52

Please sign in to comment.