Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-24556: Add normalize method to Defects #36

Merged
merged 1 commit into from May 13, 2020
Merged

Conversation

plazas
Copy link
Contributor

@plazas plazas commented May 11, 2020

No description provided.

@plazas plazas requested a review from mfisherlevine May 11, 2020 22:00
@@ -131,7 +131,6 @@ def check_maskBlocks(self, inputDefects, expectedDefects):
task = cpPipe.defects.FindDefectsTask(config=config)

defectsWithColumns = task.maskBlocksIfIntermitentBadPixelsInColumn(inputDefects)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As always, try not to do whitespace only changes.

@@ -214,6 +213,7 @@ def test_maskBlocks_discontigous_to_single_block(self):
Box2I(corner=Point2I(30, 34), dimensions=Extent2I(1, 15))]
for badBox in badPixels:
defects.append(badBox)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And again.

Comment on lines -351 to -352
Box2I(corner=Point2I(61, 2), dimensions=Extent2I(1, 12)),
Box2I(corner=Point2I(62, 2), dimensions=Extent2I(1, 12))]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this is being removed? I guess this comment applies to all the test changes. Presumably they're necessary, but could you briefly just explain why please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expected defects before these changes where individual boxes, even if they were adjacent. With the changes, the boxes get merged into fewer boxes that have a wider extension (for example, 2 pixels in one direction instead of 1).

@plazas plazas merged commit fc4e62b into master May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants