-
Notifications
You must be signed in to change notification settings - Fork 169
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
Exclude ignored measures in cnetcheck #4784
Exclude ignored measures in cnetcheck #4784
Conversation
if (ignore) { | ||
measures = cnet.GetValidMeasuresInCube(serialNumber); | ||
} else { | ||
measures = cnet.GetMeasuresInCube(serialNumber); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also ignore the point if all measures are ignored? That is, can all the measures be set to ignored but not the point? If so, in that case also ignore the point automatically? Or does cnetcheck already report points with no measures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test also needs to check for an island that is connected by an ignored point.
m2->SetAprioriLine(999); | ||
m2->SetAprioriSample(999); | ||
m2->SetCamera(cube2->camera()); | ||
m2->SetCubeSerialNumber(cube2Serial); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also set these measures to ignored and look for 0 no-lat/lon cubes. I don't think that the third measure changes the cnetcheck output.
Needs a changelog entry |
… cnetcheck_ignored_measures
… cnetcheck_ignored_measures
* Modified noLatLon logic to exclude ignored measures * Added test for ignored measures * Added entry for cnetcheck ignored points * Added test for ignored point, fixed test for ignored measures
* Modified noLatLon logic to exclude ignored measures * Added test for ignored measures * Added entry for cnetcheck ignored points * Added test for ignored point, fixed test for ignored measures Co-authored-by: AustinSanders <austinsanders1993@gmail.com>
The 'ignore' flag was previously being used only to exclude ignored points, not ignored measures. This PR addresses this by excluding ignored measures.
Description
Makes use of the "GetValidMeasuresInCube" function to exclude ignored measures when the "ignore" flag is set.
Related Issue
Closes #4649
Motivation and Context
Including ignored measures results in false positives.
How Has This Been Tested?
Wrote a new test that adds an ignored control measure.
Screenshots (if appropriate):
Types of changes
Checklist:
Licensing
This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words: