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:
• 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 

Activity

There are no comments yet on this issue.

People

Assignee:
Unassigned
Reporter:
John Swinbank
Watchers:
Andrés Alejandro Plazas Malagón, John Swinbank, Tim Jenness