Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: jointcal
-
Labels:
-
Story Points:0.5
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
Kian-Tat Lim reported the following error when running verify_drp_metrics:
Traceback (most recent call last):
|
taskDefs.append(TaskDef(taskName=taskName, config=config, taskClass=taskClass, label=label))
|
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-0.7.0/Linux64/pipe_base/22.0.1-28-g0f96081+97afde1630/python/lsst/pipe/base/pipeline.py", line 135, in __init__
|
self.connections = config.connections.ConnectionsClass(config=config)
|
File "/j/ws/sqre/verify_drp_metrics/hsc-master^faro-master/run/jointcal/python/lsst/jointcal/jointcal.py", line 353, in __init__
|
for key in list(self.outputs.keys()):
|
AttributeError: 'set' object has no attribute 'keys'
|
I only have the one jointcal gen3 test, so it didn't catch this. Probably best to switch the HSC tests over to gen3, so I can exercise this properly.
Aside from improved testing, the fix I believe is simply to remove .keys() from https://github.com/lsst/jointcal/blob/fa6a221401145452d374643d700e47b6560cc8c1/python/lsst/jointcal/jointcal.py#L347 and https://github.com/lsst/jointcal/blob/fa6a221401145452d374643d700e47b6560cc8c1/python/lsst/jointcal/jointcal.py#L353