Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
9 stars 13 forks source link

DRPF:ERROR: Exception arrays used as indices must be of integer (or boolean) type while invoking MakeMasterFlat #58

Open geoffcfchen opened 3 years ago

geoffcfchen commented 3 years ago

Hi, I used the python version DRP. When processing the twilight flat file, I saw that the following error message shows up. Do I need to worry about it? Thanks.

2021-05-17 06:56:56:KCWI:INFO: Using 5140 knots for bspline fit 2021-05-17 06:57:08:py.warnings:WARNING: /Users/Geoff/GitHub/KCWI_DRP/kcwidrp/core/bspline/Bspline.py:585: PydlutilsUserWarning: Bad entries: [ 0 5136] warn('Bad entries: ' + str(negative.nonzero()[0]), PydlutilsUserWarning) 2021-05-17 06:57:08:DRPF:ERROR: Exception arrays used as indices must be of integer (or boolean) type while invoking MakeMasterFlat Traceback (most recent call last): File "/Users/Geoff/anaconda3/envs/python37/lib/python3.7/site-packages/keckdrpframework-0.1.dev0-py3.7.egg/keckdrpframework/core/framework.py", line 229, in execute action_output = pipeline.get_action(action_name)(action, context) File "/Users/Geoff/anaconda3/envs/python37/lib/python3.7/site-packages/keckdrpframework-0.1.dev0-py3.7.egg/keckdrpframework/pipelines/base_pipeline.py", line 84, in f return obj.apply() File "/Users/Geoff/anaconda3/envs/python37/lib/python3.7/site-packages/keckdrpframework-0.1.dev0-py3.7.egg/keckdrpframework/primitives/base_primitive.py", line 57, in apply self.output = self._perform() File "/Users/Geoff/GitHub/KCWI_DRP/kcwidrp/primitives/MakeMasterFlat.py", line 536, in _perform fullbkpt=bkpt) File "/Users/Geoff/GitHub/KCWI_DRP/kcwidrp/core/bspline/Bspline.py", line 762, in iterfit x2=x2work) File "/Users/Geoff/GitHub/KCWI_DRP/kcwidrp/core/bspline/Bspline.py", line 202, in fit return self.maskpoints(errb[0]), yfit File "/Users/Geoff/GitHub/KCWI_DRP/kcwidrp/core/bspline/Bspline.py", line 433, in maskpoints hmm = err[np.unique(err/self.npoly)]/self.npoly IndexError: arrays used as indices must be of integer (or boolean) type 2021-05-17 06:57:08:DRPF:INFO: Event failed: name flat_make_master, action MakeMasterFlat, arg name kb210516_00030.fits, recurr False

MNBrod commented 3 years ago

Yes, this is a problem (the pipeline will try to continue, but will not accomplish very much, since it failed to make master flat to apply). I'll take a look and try to replicate the issue. Could you upload both of the log files to this thread (DRPF.log and KCWI.log)

geoffcfchen commented 3 years ago

DRPF.log KCWI.log

Thank you!

geoffcfchen commented 2 years ago

Any updates on this? Thanks.