Skip to content

Commit

Permalink
Added catch around warning if the target body was not defined (#4229)
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette authored Dec 31, 2020
1 parent f84f2d3 commit 2e98d81
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions isis/src/control/apps/jigsaw/jigsaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,18 @@ namespace Isis {

// retrieve settings from jigsaw gui
BundleSettingsQsp settings = bundleSettings(ui);
if(settings->bundleTargetBody()->solveTriaxialRadii() ||
settings->bundleTargetBody()->solveMeanRadius()) {
PvlGroup radiusSolveWarning("RadiusSolveWarning");
radiusSolveWarning.addKeyword(PvlKeyword("Warning", "The radii solve is currently \
under review and is likely resulting \
in addition error in the bundle adjust. \
We recommend that you do not solve for radii at this moment."));
if(log) {
log->PvlObject::addGroup(radiusSolveWarning);
}
if(settings->bundleTargetBody()) {
if(settings->bundleTargetBody()->solveTriaxialRadii() ||
settings->bundleTargetBody()->solveMeanRadius()) {
PvlGroup radiusSolveWarning("RadiusSolveWarning");
radiusSolveWarning.addKeyword(PvlKeyword("Warning", "The radii solve is currently \
under review and is likely resulting \
in addition error in the bundle adjust. \
We recommend that you do not solve for radii at this moment."));
if(log) {
log->PvlObject::addGroup(radiusSolveWarning);
}
}
}
settings->setCubeList(cubeList);
BundleAdjust *bundleAdjustment = NULL;
Expand Down

0 comments on commit 2e98d81

Please sign in to comment.