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

Defects.fromMask should produce a minimal set of bounding boxes

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: meas_algorithms
    • Labels:
      None
    • Team:
      Data Release Production
    • Urgent?:
      No

      Description

      Per summary. Unfortunately, it doesn't:

              with lsst.utils.tests.getTempFilePath(".txt") as tmpFile:
                  with open(tmpFile, "w") as fh:
                      print("""# X0  Y0  width height
           996        0       56       24
             0     4156     2048       20
             0        0       17     4176
          1998     4035       50      141
          1023        0        2     4176
          2027        0       21     4176
             0     4047       37      129
      # Some rows without fixed column widths
      14 20 2000 50
      10 10 10 10
      """, file=fh)
       
                  defects = algorithms.Defects.readLsstDefectsFile(tmpFile)
      

      Then:

      >>> len(defects)
      9
      >>> len(defects.normalize())
      11
      

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              swinbank John Swinbank
              Watchers:
              Andrés Alejandro Plazas Malagón, John Swinbank, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins Builds

                  No builds found.