Skip to content

Commit

Permalink
Minor PR comment changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhennawi committed Jul 19, 2023
1 parent d249873 commit 54ccbbf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pypeit/coadd2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,8 @@ def coadd(self, interp_dspat=True):
# if this is echelle data and the parset 'weights' is set to 'auto',
# then the weights are computed per order, i.e., every order has a
# different set of weights in each exposure (len(self.use_weights[slit_idx]) = nexp)
if self.pypeline == 'Echelle' and self.weights == 'auto':
_weights = self.use_weights[slit_idx]
else:
_weights = self.use_weights
_weights = self.use_weights[slit_idx] if self.pypeline == 'Echelle' and self.weights == 'auto' else self.use_weights
# TODO: Create a method here in the child clases? It is not great to do pypeline specific things in the parent

# Perform the 2d coadd
# NOTE: mask_stack is a gpm, and this is called inmask_stack in
Expand Down

0 comments on commit 54ccbbf

Please sign in to comment.