-
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
The cnetdiff application has been refactored to be callable; Makefile tests have been removed and replaced by gtests. #5323
Conversation
… tests have been removed and replace by gtests. Addresses DOI-USGS#5322.
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.
Overall looks great! Couple small things to address
CHANGELOG.md
Outdated
@@ -45,7 +45,7 @@ release. | |||
outputsuffix, both, or neither for naming convention purposes. [#5162](https://github.com/DOI-USGS/ISIS3/pull/5162) | |||
|
|||
### Added | |||
- Added rclone to run dependencies in meta.yaml [#5183](https://github.com/DOI-USGS/ISIS3/issues/5183) | |||
- Cnetedit has been refactored to be callable; old Makefile tests have been removed and replaced by gtests. Issue: [#5322](https://github.com/USGS-Astrogeology/ISIS3/issues/5322), |
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.
Can this be moved to changed? If there is no Changed
section feel free to add a new header titled Changed
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.
Done.
… "Changed" section per reviewer suggestion. Addresses DOI-USGS#5322.
…reviewer suggestion. Addresses DOI-USGS#5322.
… add PvlGroups to Pvl. Per reviewer suggestion. Addresses DOI-USGS#5322.
Thanks for the very quick review Adam.
I've made the changes and have hopefully addressed your suggestions.
Ken
…On Wed, Nov 1, 2023 at 12:57 AM acpaquette ***@***.***> wrote:
***@***.**** commented on this pull request.
Overall looks great! Couple small things to address
------------------------------
In CHANGELOG.md
<#5323 (comment)>:
> @@ -45,7 +45,7 @@ release.
outputsuffix, both, or neither for naming convention purposes. [#5162](#5162)
### Added
-- Added rclone to run dependencies in meta.yaml [#5183](#5183)
+- Cnetedit has been refactored to be callable; old Makefile tests have been removed and replaced by gtests. Issue: [#5322](#5322),
Can this be moved to changed? If there is no Changed section feel free to
add a new header titled Changed
------------------------------
In isis/src/control/apps/cnetdiff/cnetdiff.cpp
<#5323 (comment)>:
> + ignorekeys += PvlKeyword("DateTime", "true");
+ }
+
+ // compare ControlNetVersioners
+ Compare(cnv1, cnv2);
+
+ PvlGroup differences("Results");
+ if (filesMatch) {
+ differences += PvlKeyword("Compare", "Identical");
+ }
+ else {
+ differences += PvlKeyword("Compare", "Different");
+ differences += PvlKeyword("Reason", differenceReason);
+ }
+
+ log.addGroup(differences);
Could any addition to the log be changed to log.addLogGroup. This
function logs to the app at the same time as the group is added to the
keyword. With that you can remove the logging loop in the application
main.cpp
------------------------------
In isis/src/control/objs/ControlNetDiff/ControlNetDiff.cpp
<#5323 (comment)>:
> +
+ ControlNetVersioner cnv1(net1Name);
+ ControlNetVersioner cnv2(net2Name);
+
+ return compare(cnv1, cnv2, net1Name, net2Name);
+ }
+
+
+ /**
+ * Compare two Control Networks in ControNetVersioner form, and return their
+ * differences.
+ *
+ * @param cnv1 first Control Network
+ * @param cnv2 second Control Network
+ * @param net1Name FileName of the first Control Network
+ * @param net2Name FileName of the second Control Network
+ * @return Pvl The collection of all differences
+ */
+ Pvl ControlNetDiff::compare(ControlNetVersioner &cnv1, ControlNetVersioner &cnv2,
+ FileName &net1Name, FileName &net2Name) {
I don't really understand the necessity for this change. What does
exposing the new function do that the old signature prevented?
—
Reply to this email directly, view it on GitHub
<#5323 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUGSUUDCAHRDTH2BF7JMHLYCH6E7AVCNFSM6AAAAAA6XXKFPKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMBXG4YTQOJRHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
* Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses #5354. * Updated CHANGELOG.md. Addresses #5354. * Minor change to cnetthinner.xml. Addresses #5354. * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format. Fixes #3621. (#5175) * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format * Updated CHANGELOG * Dawn Target Translation Fix (#5294) * Fixes dawn target translation for CERES images * Added Changelog entry * CSM Camera Qview Try Catches (#5295) * Fix errors when using CSM camera in qview * Added Changelog entry * Fixes CSV parsing in shadowtau (#5316) * Fixes CSV parsing in shadowtau * Addressed PR feedback * Error Report Fix for Program Launcher (#5331) * Removed line that gets class, it is derived from the code * Added more detailed error around itime not finding the leapsecond kernel * Added changelog entry * Updated trimfilter to correctly use high/low filters (#5340) * Added high/low filters to trimfilter * Updated changelog * Updated changelog --------- Co-authored-by: acpaquette <[email protected]> * corrected calibration inclusion filter (needed ,) (#5357) * corrected calibration inclusion filter (needed ,) * changelog entry downloadIsisData fix * Updated changelog * Updated changelog * Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses #5354. * Updated CHANGELOG.md. Addresses #5354. * Minor change to cnetthinner.xml. Addresses #5354. * The cnetedit application has been refactored to be callable; Makefile tests have been removed and replaced by gtests (#5348) * The cnetedit application has been refactored to be callable; Makefile tests have been migrated to gtest format. Addresses #5346. * Removed extraneous variables from FunctionalTestsCnetedit.cpp. Addresses #5346. * Updated gtests; replace cubes with labels. Addresses #5346. * Per review cleaned up sloppy spacing; made global variables static in cnetedit.cpp to avoid issues when linking libisis. Addresses #5346. * The cnetdiff application has been refactored to be callable; Makefile tests have been removed and replaced by gtests. (#5323) * The cnetedit applciation has been refactored to be callable; Makefile tests have been removed and replace by gtests. Addresses #5322. * Moved CHANGELOG.md entry for cnetdiff changes from "Added" section to "Changed" section per reviewer suggestion. Addresses #5322. * Reverted back to original ControlNetDiff source and header files per reviewer suggestion. Addresses #5322. * Changes to cnetdiff.cpp and main.cpp to use the addLogGroup method to add PvlGroups to Pvl. Per reviewer suggestion. Addresses #5322. * Put back line erroneously removed in CHANGELOG.md, per review. Addresses #5322. * Version ticks * Updated changelog * Updated changelog --------- Co-authored-by: kledmundson <[email protected]> Co-authored-by: Christine Kim <[email protected]> Co-authored-by: acpaquette <[email protected]> Co-authored-by: Jacob Cain <[email protected]>
* Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (DOI-USGS#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses DOI-USGS#5354. * Updated CHANGELOG.md. Addresses DOI-USGS#5354. * Minor change to cnetthinner.xml. Addresses DOI-USGS#5354. * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format. Fixes DOI-USGS#3621. (DOI-USGS#5175) * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format * Updated CHANGELOG * Dawn Target Translation Fix (DOI-USGS#5294) * Fixes dawn target translation for CERES images * Added Changelog entry * CSM Camera Qview Try Catches (DOI-USGS#5295) * Fix errors when using CSM camera in qview * Added Changelog entry * Fixes CSV parsing in shadowtau (DOI-USGS#5316) * Fixes CSV parsing in shadowtau * Addressed PR feedback * Error Report Fix for Program Launcher (DOI-USGS#5331) * Removed line that gets class, it is derived from the code * Added more detailed error around itime not finding the leapsecond kernel * Added changelog entry * Updated trimfilter to correctly use high/low filters (DOI-USGS#5340) * Added high/low filters to trimfilter * Updated changelog * Updated changelog --------- Co-authored-by: acpaquette <[email protected]> * corrected calibration inclusion filter (needed ,) (DOI-USGS#5357) * corrected calibration inclusion filter (needed ,) * changelog entry downloadIsisData fix * Updated changelog * Updated changelog * Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (DOI-USGS#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses DOI-USGS#5354. * Updated CHANGELOG.md. Addresses DOI-USGS#5354. * Minor change to cnetthinner.xml. Addresses DOI-USGS#5354. * The cnetedit application has been refactored to be callable; Makefile tests have been removed and replaced by gtests (DOI-USGS#5348) * The cnetedit application has been refactored to be callable; Makefile tests have been migrated to gtest format. Addresses DOI-USGS#5346. * Removed extraneous variables from FunctionalTestsCnetedit.cpp. Addresses DOI-USGS#5346. * Updated gtests; replace cubes with labels. Addresses DOI-USGS#5346. * Per review cleaned up sloppy spacing; made global variables static in cnetedit.cpp to avoid issues when linking libisis. Addresses DOI-USGS#5346. * The cnetdiff application has been refactored to be callable; Makefile tests have been removed and replaced by gtests. (DOI-USGS#5323) * The cnetedit applciation has been refactored to be callable; Makefile tests have been removed and replace by gtests. Addresses DOI-USGS#5322. * Moved CHANGELOG.md entry for cnetdiff changes from "Added" section to "Changed" section per reviewer suggestion. Addresses DOI-USGS#5322. * Reverted back to original ControlNetDiff source and header files per reviewer suggestion. Addresses DOI-USGS#5322. * Changes to cnetdiff.cpp and main.cpp to use the addLogGroup method to add PvlGroups to Pvl. Per reviewer suggestion. Addresses DOI-USGS#5322. * Put back line erroneously removed in CHANGELOG.md, per review. Addresses DOI-USGS#5322. * Version ticks * Updated changelog * Updated changelog --------- Co-authored-by: kledmundson <[email protected]> Co-authored-by: Christine Kim <[email protected]> Co-authored-by: acpaquette <[email protected]> Co-authored-by: Jacob Cain <[email protected]>
* Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses #5354. * Updated CHANGELOG.md. Addresses #5354. * Minor change to cnetthinner.xml. Addresses #5354. * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format. Fixes #3621. (#5175) * Update photomet's MinnaertEmpirical model to handle PVL input in photemplate format * Updated CHANGELOG * Dawn Target Translation Fix (#5294) * Fixes dawn target translation for CERES images * Added Changelog entry * CSM Camera Qview Try Catches (#5295) * Fix errors when using CSM camera in qview * Added Changelog entry * Fixes CSV parsing in shadowtau (#5316) * Fixes CSV parsing in shadowtau * Addressed PR feedback * Error Report Fix for Program Launcher (#5331) * Removed line that gets class, it is derived from the code * Added more detailed error around itime not finding the leapsecond kernel * Added changelog entry * Updated trimfilter to correctly use high/low filters (#5340) * Added high/low filters to trimfilter * Updated changelog * Updated changelog --------- Co-authored-by: acpaquette <[email protected]> * corrected calibration inclusion filter (needed ,) (#5357) * corrected calibration inclusion filter (needed ,) * changelog entry downloadIsisData fix * Updated changelog * Updated changelog * Cnetthinner application bug fix resolving divide by zero in CnetManager.cpp. (#5356) * Bug fix for a divide by zero in CnetManager.cpp. Additionally, the cnetthinner app has been converted to a callable function and Makefile tests converted to gtests. Addresses #5354. * Updated CHANGELOG.md. Addresses #5354. * Minor change to cnetthinner.xml. Addresses #5354. * The cnetedit application has been refactored to be callable; Makefile tests have been removed and replaced by gtests (#5348) * The cnetedit application has been refactored to be callable; Makefile tests have been migrated to gtest format. Addresses #5346. * Removed extraneous variables from FunctionalTestsCnetedit.cpp. Addresses #5346. * Updated gtests; replace cubes with labels. Addresses #5346. * Per review cleaned up sloppy spacing; made global variables static in cnetedit.cpp to avoid issues when linking libisis. Addresses #5346. * The cnetdiff application has been refactored to be callable; Makefile tests have been removed and replaced by gtests. (#5323) * The cnetedit applciation has been refactored to be callable; Makefile tests have been removed and replace by gtests. Addresses #5322. * Moved CHANGELOG.md entry for cnetdiff changes from "Added" section to "Changed" section per reviewer suggestion. Addresses #5322. * Reverted back to original ControlNetDiff source and header files per reviewer suggestion. Addresses #5322. * Changes to cnetdiff.cpp and main.cpp to use the addLogGroup method to add PvlGroups to Pvl. Per reviewer suggestion. Addresses #5322. * Put back line erroneously removed in CHANGELOG.md, per review. Addresses #5322. * Version ticks * Updated changelog * Updated changelog --------- Co-authored-by: kledmundson <[email protected]> Co-authored-by: Christine Kim <[email protected]> Co-authored-by: acpaquette <[email protected]> Co-authored-by: Jacob Cain <[email protected]>
Description
The cnetdiff application has been refactored to be callable; Makefile tests have been removed and replaced by gtests.
Related Issue
https://github.com//issues/5322How Has This Been Validated?
ISIS make file tests have been replaced with the following gtests.
CnetdiffReportFirst
CnetdiffReportFull
Results of ctest suite...
ctest -R Cnetdiff --output-on-failure
Test project
Start 1798:CompareNetsReportFirstDiff.FunctionalTestCnetdiffReportFirst
1/2 Test #1798: CompareNetsReportFirstDiff.FunctionalTestCnetdiffReportFirst ... Passed 0.74 sec
Start 1799: CompareNetsReportFull.FunctionalTestCnetdiffReportFull
2/2 Test #1799:
CompareNetsReportFull.FunctionalTestCnetdiffReportFull ......... Passed 0.56 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 1.50 sec
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: