-
Type: Bug
-
Status: Done (View Workflow)
-
Priority: Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
import failed of the task failed :
from pfs.drp.qa.detectorMapQa import DetectorMapQaTask as BaseTask
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Input In [2], in <cell line: 1>() ----> 1 from pfs.drp.qa.detectorMapQa import DetectorMapQaTask as BaseTask File ~/devel/drp_qa/python/pfs/drp/qa/detectorMapQa.py:27, in <module> 25 from lsst.pipe.base.connections import InputQuantizedConnection, OutputQuantizedConnection 26 from pfs.drp.stella import ArcLineSet, DetectorMap, PfsArm ---> 27 from pfs.drp.qa.utils import helpers 28 from pfs.drp.qa.utils import plotting 30 from .storageClasses import MultipagePdfFigure File ~/devel/drp_qa/python/pfs/drp/qa/utils/helpers.py:244, in <module> 236 arc_data['targetType'] = arc_data.targetType.astype('category') 238 return arc_data 241 def getFitStats( 242 arcLines: ArcLineSet, 243 detectorMap: DetectorMap, --> 244 selection: np.ndarray[bool], 245 numParams: int = 0): 246 """Gets output from calculateFitStatistics 247 248 Parameters (...) 262 The fit statistics. 263 """ 264 isTrace = np.array(arcLines.description == "Trace") TypeError: 'type' object is not subscriptable
Apparently it's due to your latest merge, it's working fine if I revert latest commit.