Skip to content

Commit

Permalink
add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Oct 2, 2024
1 parent 07683d9 commit dd74fc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/desispec/coaddition.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import scipy.sparse
import scipy.linalg
import scipy.sparse.linalg
import scipy.stats

from astropy.table import Table, Column

Expand Down Expand Up @@ -496,6 +497,7 @@ def _mask_cosmics(wave, flux, ivar, mask, subset, ivarjj_masked,
cur_grad_var = ttvar[1:] + ttvar[:-1]
grad.append(cur_grad)
gradvar.append(cur_grad_var)

grad, gradvar = np.array(grad), np.array(gradvar)
gradivar = (gradvar > 0 ) / np.array(gradvar + (gradvar == 0))
nspec = grad.shape[0]
Expand Down

0 comments on commit dd74fc1

Please sign in to comment.