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

DcrAssembleCoadd array size mismatch

    Details

      Description

      Bug encountered while trying to test the new astro metadata package that fixes obs_decam observatory longitude:

      dcrAssembleCoadd FATAL: Failed on dataId=DataId(initialdata={'filter': 'g', 'patch': '0,0', 'tract': 0}, tag=set()): ValueError: operands could not be broadcast together with shapes (2003,2003) (2000,2000) (2003,2003) 
      Traceback (most recent call last):
        File "/Users/sullivan/LSST/code/eups_distrib/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pipe_base/16.0-13-gb122224+4/python/lsst/pipe/base/cmdLineTask.py", line 388, in __call__
          result = self.runTask(task, dataRef, kwargs)
        File "/Users/sullivan/LSST/code/eups_distrib/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pipe_base/16.0-13-gb122224+4/python/lsst/pipe/base/cmdLineTask.py", line 447, in runTask
          return task.runDataRef(dataRef, **kwargs)
        File "/Users/sullivan/LSST/code/eups_distrib/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pipe_base/16.0-13-gb122224+4/python/lsst/pipe/base/timer.py", line 149, in wrapper
          res = func(self, *args, **keyArgs)
        File "/Users/sullivan/LSST/code/eups_distrib/build/pipe_tasks/python/lsst/pipe/tasks/dcrAssembleCoadd.py", line 217, in runDataRef
          results = AssembleCoaddTask.runDataRef(self, dataRef, selectDataList=selectDataList)
        File "/Users/sullivan/LSST/code/eups_distrib/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pipe_base/16.0-13-gb122224+4/python/lsst/pipe/base/timer.py", line 149, in wrapper
          res = func(self, *args, **keyArgs)
        File "/Users/sullivan/LSST/code/eups_distrib/build/pipe_tasks/python/lsst/pipe/tasks/assembleCoadd.py", line 361, in runDataRef
          inputData.weightList, supplementaryData=supplementaryData)
        File "/Users/sullivan/LSST/code/eups_distrib/build/pipe_tasks/python/lsst/pipe/tasks/dcrAssembleCoadd.py", line 378, in run
          modelWeights)
        File "/Users/sullivan/LSST/code/eups_distrib/build/pipe_tasks/python/lsst/pipe/tasks/dcrAssembleCoadd.py", line 521, in dcrAssembleSubregion
          maskedImage.image.array *= modelWeights
      ValueError: operands could not be broadcast together with shapes (2003,2003) (2000,2000) (2003,2003) 
      

        Attachments

          Issue Links

            Activity

            Hide
            sullivan Ian Sullivan added a comment -

            Thank you for agreeing to review this! It's only a few lines of code, and should hopefully be fairly simple.

            Show
            sullivan Ian Sullivan added a comment - Thank you for agreeing to review this! It's only a few lines of code, and should hopefully be fairly simple.
            Hide
            lauren Lauren MacArthur added a comment -

            Some minor comments on the PR.  Except for the function documentation update, I will leave them to your discretion.

            Show
            lauren Lauren MacArthur added a comment - Some minor comments on the PR.  Except for the function documentation update, I will leave them to your discretion.

              People

              • Assignee:
                sullivan Ian Sullivan
                Reporter:
                sullivan Ian Sullivan
                Reviewers:
                Lauren MacArthur
                Watchers:
                Ian Sullivan, John Swinbank, Lauren MacArthur, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel