Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-8000

Error instantiating MultiBandDriverTask with LoadIndexedReferenceObjectsTask

    Details

      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

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  hchiang2 Hsin-Fang Chiang
                  Reporter:
                  hchiang2 Hsin-Fang Chiang
                  Reviewers:
                  Paul Price
                  Watchers:
                  Hsin-Fang Chiang, Paul Price
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel