Skip to content

Commit

Permalink
Minor doc changes and uncertainty fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly committed Dec 13, 2023
1 parent 6000512 commit a329dd6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 10 additions & 3 deletions py/desispec/correct_cte.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# need a CTE model function
"""
desispec.correct_cte
============
Methods to fit CTE effects and remove them from images.
"""

from copy import deepcopy
import os
import numpy as np
Expand Down Expand Up @@ -396,7 +402,7 @@ def fit_cte(images):
ampbd = ampreg[0].stop
else:
ampbd = ampreg[0].start
npix = 10
npix = 11
need_to_reverse = ampreg[1].stop == image.pix.shape[1]
start, stop = tcte['start'], tcte['stop']
step = 1
Expand All @@ -418,7 +424,8 @@ def fit_cte(images):
fac = np.sqrt(np.pi / 2 / npix)
uncertainties = [
fac * np.sqrt(np.median(
im.ivar[sclean]**-1 + im.ivar[scte]**-1, keepdims=True))
im.ivar[sclean]**-1 + im.ivar[scte]**-1, axis=0,
keepdims=True))
for im in images]

chi = partial(chi_simplified_regnault,
Expand Down
7 changes: 7 additions & 0 deletions py/desispec/qproc/rowbyrowextract.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
desispec.qproc.rowbyrowextract
============
Row-by-row extraction routines.
"""

import numpy as np
import numba
from scipy import special, linalg
Expand Down

0 comments on commit a329dd6

Please sign in to comment.