Skip to content

Commit

Permalink
fix bug when multiple elines are to be ignored.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Jun 4, 2024
1 parent 5a1866d commit 8e2113c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prospect/models/sedmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def parse_elines(self):

self._fix_eline = ~self._fit_eline

if np.any(self.params.get("elines_to_ignore", [])):
if "elines_to_ignore" in self.params:
assert np.all(np.isin(self.params["elines_to_ignore"], self.emline_info["name"])), f"Some ignored lines lines ({self.params['elines_to_ignore']}) are not in the cloudy grid; see $SPS_HOME/data/emlines_info.dat for accepted names"

self._use_eline = ~np.isin(self.emline_info["name"],
Expand Down

0 comments on commit 8e2113c

Please sign in to comment.