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

constructFlat.py --config isr.doCrosstalkBeforeAssemble=False raises a LengthError exception

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ip_isr
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP S19-5
    • Team:
      Data Release Production

      Description

      Here's a full command line that produces the error:

      constructFlat.py output --rerun jchiang/xtalk_after_config \
      --id raftName=R22 detectorName=S11 --config isr.doBias=False \
      isr.doDark=False isr.doCrosstalkBeforeAssemble=False --longlog \
      --batch-type=None

      and the last several lines of the traceback (full log attached):

        File "/software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/ip_isr/17.0.1-7-g69836a1+1/python/lsst/ip/isr/isrTask.py", line 1195, in run
          self.crosstalk.run(ccdExposure, crosstalkSources=crosstalkSources)
        File "/software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/ip_isr/17.0.1-7-g69836a1+1/python/lsst/ip/isr/crosstalk.py", line 90, in run
          crosstalkStr=self.config.crosstalkMaskPlane)
        File "/software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/ip_isr/17.0.1-7-g69836a1+1/python/lsst/ip/isr/crosstalk.py", line 212, in subtractCrosstalk
          jImage = extractAmp(mi, jAmp, iAmp.getReadoutCorner())
        File "/software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/ip_isr/17.0.1-7-g69836a1+1/python/lsst/ip/isr/crosstalk.py", line 130, in extractAmp
          output = image[amp.getBBox() if isTrimmed else amp.getRawDataBBox()]
        File "/software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/afw/17.0.1-4-g41c8d5dc0+1/python/lsst/afw/image/slicing.py", line 262, in __getitem__
          return self.subset(box, origin=origin)
      lsst.pex.exceptions.wrappers.LengthError: 
        File "src/image/Image.cc", line 83, in static lsst::afw::image::ImageBase<PixelT>::_view_t lsst::afw::image::ImageBase<PixelT>::_makeSubView(const Extent2I&, const Extent2I&, const _view_t&) [with PixelT = float; lsst::afw::image::ImageBase<PixelT>::_view_t = boost::gil::image_view<boost::gil::memory_based_2d_locator<boost::gil::memory_based_step_iterator<boost::gil::pixel<float, boost::gil::layout<boost::mpl::vector1<boost::gil::gray_color_t> > >*> > >; lsst::geom::Extent2I = lsst::geom::Extent<int, 2>]
          Box2I(Point2I(3840,0),lsst::geom::Extent2I(509,2000)) doesn't fit in image 4072x4000 {0}
      lsst::pex::exceptions::LengthError: 'Box2I(Point2I(3840,0),lsst::geom::Extent2I(509,2000)) doesn't fit in image 4072x4000'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                czw Christopher Waters
                Reporter:
                jchiang James Chiang
                Reviewers:
                Eli Rykoff
                Watchers:
                Christopher Waters, Eli Rykoff, James Chiang, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel