Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_drivers, pipe_tasks
-
Labels:
-
Story Points:2
-
Epic Link:
-
Team:Data Facility
Description
Error running multiBandDriver if refObjLoader is retargeted to LoadIndexedReferenceObjectsTask in measureCoaddSources, e.g. with this config override:
from lsst.meas.algorithms.loadIndexedReferenceObjects import LoadIndexedReferenceObjectsTask |
config.match.refObjLoader.retarget(LoadIndexedReferenceObjectsTask)
|
Traceback (most recent call last):
|
File "/software/lsstsw/stack/Linux64/pipe_drivers/12.1-7-ga5bc178+1/bin/multiBandDriver.py", line 3, in <module> |
MultiBandDriverTask.parseAndSubmit()
|
File "/software/lsstsw/stack/Linux64/ctrl_pool/12.1-1-g3e1834e/python/lsst/ctrl/pool/parallel.py", line 410, in parseAndSubmit |
if not cls.RunnerClass(cls, batchArgs.parent).precall(batchArgs.parent): # Write config, schema |
File "/software/lsstsw/stack/Linux64/pipe_base/12.1-1-g06158e9+2/python/lsst/pipe/base/cmdLineTask.py", line 300, in precall |
task = self.makeTask(parsedCmd=parsedCmd)
|
File "/software/lsstsw/stack/Linux64/pipe_drivers/12.1-7-ga5bc178+1/python/lsst/pipe/drivers/multiBandDriver.py", line 111, in makeTask |
return self.TaskClass(config=self.config, log=self.log, butler=butler) |
File "/software/lsstsw/stack/Linux64/pipe_drivers/12.1-7-ga5bc178+1/python/lsst/pipe/drivers/multiBandDriver.py", line 131, in __init__ |
peakSchema=afwTable.Schema(self.mergeCoaddDetections.merged.getPeakSchema()))
|
File "/software/lsstsw/stack/Linux64/pipe_base/12.1-1-g06158e9+2/python/lsst/pipe/base/task.py", line 237, in makeSubtask |
subtask = taskField.apply(name=name, parentTask=self, **keyArgs)
|
File "/software/lsstsw/stack/Linux64/pex_config/12.1+6/python/lsst/pex/config/configurableField.py", line 83, in apply |
return self.target(*args, config=self.value, **kw) |
File "/software/lsstsw/stack/Linux64/pipe_tasks/12.1-3-g35418c8/python/lsst/pipe/tasks/multiBand.py", line 1039, in __init__ |
self.makeSubtask("match", butler=butler) |
File "/software/lsstsw/stack/Linux64/pipe_base/12.1-1-g06158e9+2/python/lsst/pipe/base/task.py", line 237, in makeSubtask |
subtask = taskField.apply(name=name, parentTask=self, **keyArgs)
|
File "/software/lsstsw/stack/Linux64/pex_config/12.1+6/python/lsst/pex/config/configurableField.py", line 83, in apply |
return self.target(*args, config=self.value, **kw) |
File "/software/lsstsw/stack/Linux64/meas_astrom/12.1-2-gf2a177e+2/python/lsst/meas/astrom/directMatch.py", line 78, in __init__ |
self.makeSubtask("refObjLoader", butler=butler) |
File "/software/lsstsw/stack/Linux64/pipe_base/12.1-1-g06158e9+2/python/lsst/pipe/base/task.py", line 237, in makeSubtask |
subtask = taskField.apply(name=name, parentTask=self, **keyArgs)
|
File "/software/lsstsw/stack/Linux64/pex_config/12.1+6/python/lsst/pex/config/configurableField.py", line 83, in apply |
return self.target(*args, config=self.value, **kw) |
File "/software/lsstsw/stack/Linux64/meas_algorithms/12.1-6-g1f798ce+1/python/lsst/meas/algorithms/loadIndexedReferenceObjects.py", line 48, in __init__ |
|
ingest_config = butler.get(self.config.ingest_config_name, immediate=True)
|
|
AttributeError: 'NoneType' object has no attribute 'get' |
I included a way to reproduce this without actual data in obs_decam branch u/hfc/DM-8000. There I added an empty Butler repo and the measureCoaddSources config override.
With that branch this command reproduces the error:
multiBandDriver.py $OBS_DECAM_DIR/repo/ --rerun test --cores 1
Can you please provide a how-to-reproduce?