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

getCcdImage() in cameraGeom utils doesn't return a tuple anymore

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP F19-5, DRP F19-6 (Nov), DRP S20-2 (Jan), DRP S20-3 (Feb), DRP S20-5 (Apr), DRP S20-6 (May)
    • Team:
      Data Release Production

      Description

      This is a quick fix in afw, but I want to double check it doesn't affect anything else before I merge it.

      /software/lsstsw/stack_20190330/python/miniconda3-4.5.12/envs/lsst-scipipe/lib/python3.7/site-packages/numpy/lib/function_base.py:3405: RuntimeWarning: All-NaN slice encountered
       
        r = func(a, **kwargs)
       
      Traceback (most recent call last):
       
        File "./makeVisitMosaic2018.py", line 114, in <module>
       
          binSize=BIN_SIZE)
       
        File "/software/lsstsw/stack_20190330/stack/miniconda3-4.5.12-1172c30/Linux64/afw/17.0.1-32-gd980f9f48/python/lsst/afw/cameraGeom/utils.py", line 924, in makeImageFromCamera
       
          im = imageSource.getCcdImage(det, imageFactory, binSize)[0]
       
        File "/software/lsstsw/stack_20190330/stack/miniconda3-4.5.12-1172c30/Linux64/afw/17.0.1-32-gd980f9f48/python/lsst/afw/image/slicing.py", line 260, in __getitem__
       
          box, index, origin = translateSliceArgs(imageSlice, self.getBBox)
       
        File "/software/lsstsw/stack_20190330/stack/miniconda3-4.5.12-1172c30/Linux64/afw/17.0.1-32-gd980f9f48/python/lsst/afw/image/slicing.py", line 112, in translateSliceArgs
       
          x, y, origin = interpretSliceArgs(sliceArgs, bboxGetter)
       
        File "/software/lsstsw/stack_20190330/stack/miniconda3-4.5.12-1172c30/Linux64/afw/17.0.1-32-gd980f9f48/python/lsst/afw/image/slicing.py", line 162, in interpretSliceArgs
       
          x, y = slices
       
      TypeError: cannot unpack non-iterable int object
      

        Attachments

          Activity

            People

            • Assignee:
              yusra Yusra AlSayyad
              Reporter:
              yusra Yusra AlSayyad
              Watchers:
              Yusra AlSayyad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel