Skip to content

Commit

Permalink
propogate the data mask to the eline fitting mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-j committed Oct 23, 2023
1 parent 5c0255a commit f46ca4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prospect/models/sedmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def cache_eline_parameters(self, obs, nsigma=5, forcelines=False):
# This part has to go in every call
linewidth = nsigma * self._ewave_obs / ckms * self._eline_sigma_kms
pixel_mask = (np.abs(self._outwave - self._ewave_obs[:, None]) < linewidth[:, None])
pixel_mask = pixel_mask & obs.get("mask")[None, :]
self._valid_eline = pixel_mask.any(axis=1) & self._use_eline

# --- wavelengths corresponding to valid lines ---
Expand Down

0 comments on commit f46ca4e

Please sign in to comment.