-
Type:
Task
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Epic Link:
When PfsMerged with 32bit mask is input to fitPfsFluxReference.py, the following exception is raised, because 64bit integer cannot be shortened to the 32bit mask.
Traceback (most recent call last): File "/lsst_stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/lsst_stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar return list(map(*args)) File "/lsst_stack/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 433, in __call__ result = self.runTask(task, dataRef, kwargs) File "/lsst_stack/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 504, in runTask return task.runDataRef(dataRef, **kwargs) File "/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py", line 146, in runDataRef reference = self.run(pfsConfig, merged, mergedLsf) File "/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py", line 247, in run likelihoods = self.fitModelsToSpectra( File "/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py", line 465, in fitModelsToSpectra obsSpectra = self.maskUninterestingRegions(obsSpectra) File "/pfs_pipeline/drp_stella/python/pfs/drp/stella/fitPfsFluxReference.py", line 735, in maskUninterestingRegions spectra.mask[...] |= np.where( TypeError: ufunc 'bitwise_or' output (typecode 'l') could not be coerced to provided output parameter (typecode 'I') according to the casting rule ''same_kind''