desihub / desispec

DESI spectral pipeline
BSD 3-Clause "New" or "Revised" License
33 stars 24 forks source link

fiberflat_vs_humidity divide-by-zero #2240

Open sbailey opened 1 month ago

sbailey commented 1 month ago

From /global/cfs/cdirs/desi/spectro/redux/jura/run/scripts/night/20211003/tilenight-20211003-82259-25315733.log:

/global/common/software/desi/perlmutter/desiconda/20240425-2.2.0/code/desispec/0.63.0/lib/python3.10/site-packages/desispec/fiberflat_vs_humidity.py:211: RuntimeWarning: divide by zero encountered in true_divide
  flat1, hum1  = _fit_flat(frame.wave, tmp_flux*flat2/calib_fiberflat.fiberflat, tmp_ivar, good_sky_fibers,

Check if that caused any downstream problems, whether this is common in other cases, and/or why we divided by 0 in the first place.