Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit ef358637 authored by frey_m's avatar frey_m
Browse files

upper case string attributes in optimize command

parent 02870ac2
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
#include "Attributes/Attributes.h"
#include "AbstractObjects/OpalData.h"
#include "Utilities/OpalException.h"
#include "Utilities/Util.h"
//#include "Utility/Inform.h"
#include "Utility/IpplInfo.h"
......@@ -154,9 +153,9 @@ OptimizeCmd::OptimizeCmd():
("FIELDMAPDIR", "Directory where field maps are stored");
itsAttr[DISTDIR] = Attributes::makeString
("DISTDIR", "Directory where distributions are stored", "");
itsAttr[CROSSOVER] = Attributes::makeString
itsAttr[CROSSOVER] = Attributes::makeUpperCaseString
("CROSSOVER", "Type of cross over (default: Blend)", "Blend");
itsAttr[MUTATION] = Attributes::makeString
itsAttr[MUTATION] = Attributes::makeUpperCaseString
("MUTATION", "Type of bit mutation (default: IndependentBit)", "IndependentBit");
itsAttr[RESTART_FILE] = Attributes::makeString
("RESTART_FILE", "H5 file to restart the OPAL simulations from (optional)", "");
......@@ -506,8 +505,6 @@ void OptimizeCmd::popEnvironment() {
}
OptimizeCmd::CrossOver OptimizeCmd::crossoverSelection(std::string crossover) {
crossover = Util::toUpper(crossover);
std::map<std::string, CrossOver> map;
map["BLEND"] = CrossOver::Blend;
map["NAIVEONEPOINT"] = CrossOver::NaiveOnePoint;
......@@ -537,8 +534,6 @@ OptimizeCmd::CrossOver OptimizeCmd::crossoverSelection(std::string crossover) {
}
OptimizeCmd::Mutation OptimizeCmd::mutationSelection(std::string mutation) {
mutation = Util::toUpper(mutation);
std::map<std::string, Mutation> map;
map["INDEPENDENTBIT"] = Mutation::IndependentBit;
map["ONEBIT"] = Mutation::OneBit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment