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

SkyMeasurementTask.measureScale doesn't iterate over entire image

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_drivers
    • Labels:
      None
    • Team:
      External

      Description

      Michitaro Koike points out that SkyMeasurementTask.measureScale uses zip to iterate over x and y limits, so it's only iterating over the diagonal of the image. He sent a patch which I'll clean up and shepherd through.

        Attachments

          Activity

          Hide
          price Paul Price added a comment -

          Nate Lust, would you mind looking this over, please?

          price@MacBook:~/LSST/pipe_drivers (tickets/DM-17098=) $ git sub
          commit 59900dd5a79a6124e5910c072533ea144fa3a511 (HEAD -> tickets/DM-17098, origin/tickets/DM-17098)
          Author: michitaro <michitaro.nike@gmail.com>
          Date:   Thu Jan 10 18:21:34 2019 +0900
           
              fix SkyMeasurementTask.measureScale
              
              SkyMeasurementTask.measureScale uses zip to iterate over x and y
              limits, so it's only iterating over the diagonal of the image.
              Using itertools.product, we iterate over the entire image.
           
           python/lsst/pipe/drivers/background.py | 5 ++++-
           1 file changed, 4 insertions(+), 1 deletion(-)
          

          Show
          price Paul Price added a comment - Nate Lust , would you mind looking this over, please? price@MacBook:~/LSST/pipe_drivers (tickets/DM-17098=) $ git sub commit 59900dd5a79a6124e5910c072533ea144fa3a511 (HEAD -> tickets/DM-17098, origin/tickets/DM-17098) Author: michitaro <michitaro.nike@gmail.com> Date: Thu Jan 10 18:21:34 2019 +0900   fix SkyMeasurementTask.measureScale SkyMeasurementTask.measureScale uses zip to iterate over x and y limits, so it's only iterating over the diagonal of the image. Using itertools.product, we iterate over the entire image.   python/lsst/pipe/drivers/background.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
          Show
          price Paul Price added a comment - Jenkins run (before squashing commits): https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/29233/pipeline/
          Hide
          nlust Nate Lust added a comment -

          One last tiny thing to consider and I think it is good.

          Show
          nlust Nate Lust added a comment - One last tiny thing to consider and I think it is good.
          Hide
          price Paul Price added a comment -

          Jenkins run after functional changes: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/29261/pipeline/47

          I'm going to add the requested comment, then merge.

          Show
          price Paul Price added a comment - Jenkins run after functional changes: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/29261/pipeline/47 I'm going to add the requested comment, then merge.
          Hide
          price Paul Price added a comment -

          Merged to master.

          Thanks for the help, Nate Lust!

          Show
          price Paul Price added a comment - Merged to master. Thanks for the help, Nate Lust !

            People

            Assignee:
            price Paul Price
            Reporter:
            price Paul Price
            Reviewers:
            Nate Lust
            Watchers:
            Michitaro Koike, Nate Lust, Paul Price
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.