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

added hicrop tests #4072

Merged
merged 5 commits into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion isis/src/base/objs/UserInterface/UserInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ namespace Isis {
c_args = (char**)malloc(sizeof(char*)*args.size());

for (size_t i = 0; i < args.size(); i++) {
c_args[i] = (char*)malloc(sizeof(char)*args[i].size());
c_args[i] = (char*)malloc(sizeof(char)*args[i].size()+1);
strcpy(c_args[i], args[i].toLatin1().data());
}

Expand Down Expand Up @@ -484,6 +484,7 @@ namespace Isis {
vector<QString> paramValue;

getNextParameter(currArgument, paramName, paramValue);

// we now have a name,value pair
if (paramName[0] == '-') {
paramName = paramName.toUpper();
Expand Down Expand Up @@ -520,6 +521,7 @@ namespace Isis {
}

evaluateOption(paramName, realValue);

continue;
}

Expand All @@ -530,6 +532,7 @@ namespace Isis {
catch (IException &e) {
throw IException(e, IException::User, "Invalid command line", _FILEINFO_);
}

}

// Can't use the batchlist with the gui, save, last or restore option
Expand Down
658 changes: 658 additions & 0 deletions isis/src/mro/apps/hicrop/hicrop.cpp

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions isis/src/mro/apps/hicrop/hicrop.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef hicrop_h
#define hicrop_h

#include "Cube.h"
#include "UserInterface.h"

namespace Isis{
extern void hicrop(Cube *cube, UserInterface &ui, Pvl *log=nullptr);
extern void hicrop(UserInterface &ui, Pvl *log=nullptr);
Kelvinrr marked this conversation as resolved.
Show resolved Hide resolved
}

#endif
Loading