Skip to content

Commit

Permalink
Warn if uncertainties are set in turbulence.correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly committed Sep 23, 2020
1 parent 4dae351 commit 43b208c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/desimeter/turbulence.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from scipy import optimize
import scipy.linalg
from desimeter.match_positioners import match
from desimeter.log import get_logger


def make_covar_gradwavefront(data, param, rq=False):
Expand Down Expand Up @@ -237,6 +238,9 @@ def correct(x, y, x0, y0, dx=None, dy=None):
x : array_like(n), turbulence-corrected x positions of fibers
y : array_like(n), turbulence-corrected y positions of fibers
"""
if (dx is not None) or (dy is not None):
log = get_logger()
log.warning('Uncertainties in x & y are currently ignored.')
data = np.zeros(len(x), dtype=[
('x', 'f8'), ('y', 'f8'),
('dx', 'f8'), ('dy', 'f8')])
Expand Down

0 comments on commit 43b208c

Please sign in to comment.