[PIPE2D-522] reduceArc raises numpy runtime warnings Created: 14/Mar/20 Updated: 05/Jan/21 Resolved: 25/Mar/20 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | hassan | Assignee: | price |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 1 |
| Sprint: | 2DDRP-2021 A |
| Reviewers: | hassan |
| Description |
|
When running reduceArc.py, occasionally warning such as the following are raised: reduceArc.identifyLines INFO: Matched 58 from 78 observed and 74 reference lines /tigress/HSC/PFS/stack/current/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/numpy/core/fromnumeric.py:3118: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /tigress/HSC/PFS/stack/current/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/numpy/core/_methods.py:85: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) /tigress/HSC/PFS/stack/current/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/numpy/core/_methods.py:85: RuntimeWarning: invalid value encountered in true_divide ret = ret.dtype.type(ret / rcount) Following discussions with price these can be safely ignored, but should be suppressed. These warnings were generated by the following command: reduceArc.py repo-01 --calib repo-01/CALIB --rerun calib0/arc --id visit=17244..17297 arm=r -j 20 using LAM data. |
| Comments |
| Comment by price [ 24/Mar/20 ] |
|
Fix was pretty simple. The key was identifying the warning, with: (lsst-scipipe) pprice@tiger2-sumire:/scratch/pprice/pipe2d-482 $ python -W error::RuntimeWarning -m pdb $(which reduceArc.py) DATA --calib DATA/CALIB --rerun pipe2d-522 --id visit=17244..17297 arm=r --doraise |
| Comment by price [ 25/Mar/20 ] |
|
Merged to master. |