You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue for the new cenwave 800 reference files.
Traceback:
Input Reference centroid = 431.459575, row_0 = 254
Background region #2 truncated
Reguested region: 359 to 389
Using 359 to 359, with weight 0.032258
/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py:542: RuntimeWarning: Mean of empty slice.
dtype=np.float64)[goodcolumns].mean(dtype=np.float64)
/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/numpy/core/_methods.py:78: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
Adopted background regions for reference profile:
Rows 309 to 339, and rows 359 to 359
&&&
Error is here, profile ref file only has 359 rows so row with index 359 doesn't exist
&&&
Background = nan
Measured reference centroid = nan
Input Reference centroid = nan, row_0 = 254
Traceback (most recent call last):
File "/user/rij/anaconda3/envs/calcos_dev/bin/calcos", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/user/rij/hst/cos/ssbgit/calcos/lib/calcos/calcos", line 7, in
calcos.main(sys.argv[1:])
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 211, in main
burstfile=burstfile)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 434, in calcos
sci_status = cal.allScience()
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 2850, in allScience
obs.info, obs.switches, obs.reffiles)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 2729, in basicCal
self.wavecal_info)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/timetag.py", line 317, in timetagBasicCalibration
tracemask, traceprofile, gti)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/timetag.py", line 3814, in doProfileAlignmentCorr
tracemask)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py", line 173, in doProfileAlignment
regions)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py", line 587, in getReferenceCentroid
offset = int(round(profcenter - regions['center']))
ValueError: cannot convert float NaN to integer
(calcos_dev)
The text was updated successfully, but these errors were encountered:
stscirij
added a commit
to stscirij/calcos
that referenced
this issue
Oct 25, 2018
This is an issue for the new cenwave 800 reference files.
Traceback:
Input Reference centroid = 431.459575, row_0 = 254
Background region #2 truncated
Reguested region: 359 to 389
Using 359 to 359, with weight 0.032258
/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py:542: RuntimeWarning: Mean of empty slice.
dtype=np.float64)[goodcolumns].mean(dtype=np.float64)
/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/numpy/core/_methods.py:78: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
Adopted background regions for reference profile:
Rows 309 to 339, and rows 359 to 359
&&&
Error is here, profile ref file only has 359 rows so row with index 359 doesn't exist
&&&
Background = nan
Measured reference centroid = nan
Input Reference centroid = nan, row_0 = 254
Traceback (most recent call last):
File "/user/rij/anaconda3/envs/calcos_dev/bin/calcos", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/user/rij/hst/cos/ssbgit/calcos/lib/calcos/calcos", line 7, in
calcos.main(sys.argv[1:])
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 211, in main
burstfile=burstfile)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 434, in calcos
sci_status = cal.allScience()
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 2850, in allScience
obs.info, obs.switches, obs.reffiles)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/calcos.py", line 2729, in basicCal
self.wavecal_info)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/timetag.py", line 317, in timetagBasicCalibration
tracemask, traceprofile, gti)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/timetag.py", line 3814, in doProfileAlignmentCorr
tracemask)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py", line 173, in doProfileAlignment
regions)
File "/user/rij/anaconda3/envs/calcos_dev/lib/python3.6/site-packages/calcos/trace.py", line 587, in getReferenceCentroid
offset = int(round(profcenter - regions['center']))
ValueError: cannot convert float NaN to integer
(calcos_dev)
The text was updated successfully, but these errors were encountered: