-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework of the CLI argument parser and add the option to define inputs…
… through a JSON file (#93) * Add first parser attempt * Use argparser * Convert all execs to use new argparser * Add json option and example files for all parameters * Include json in dependencies * Add json to readme * Bump version * Bump version * Fix missing json check and add install to workflows * Run ubuntu on 22.04 * Add unit tests and documentation for parser * Fix unit test * Use template function to convert value in types * Fix windows uint problem and get catch2 through conan * Unify spelling * Unify spelling of arguments * Update cpp-linter.yml * Update cpp-linter.yml * apply cmake-format * Automated commit of cmake-format changes. * logger docu * Apply suggestions from code review Co-authored-by: Lisa Biermann <[email protected]> * Remove duplicate cmakedefs * Fix missing install on mac * Only print help output once * Update CMakeLists.txt Co-authored-by: Lisa Biermann <[email protected]> * Fix openmp missing on * opt openmp * link to openmp target Co-authored-by: phbasler <[email protected]> Co-authored-by: Lisa Biermann <[email protected]>
- Loading branch information
1 parent
2822628
commit f24ba97
Showing
39 changed files
with
1,978 additions
and
1,184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"firstLine": "2", | ||
"lastLine": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"firstLine": "2", | ||
"lastLine": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"firstLine": "2", | ||
"lastLine": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"config": "../example/EWBG_config.txt", | ||
|
||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"firstLine": "2", | ||
"lastLine": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"line": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"config": "../example/EWBG_config.txt", | ||
"vw": "0.1", | ||
|
||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"line": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"config": "../example/EWBG_config.txt", | ||
"vw_min": "0.1", | ||
"vw_max": "0.2", | ||
"vw_stepsize": "0.05", | ||
|
||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"line": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"model": "c2hdm", | ||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"firstLine": "2", | ||
"lastLine": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"line": "2", | ||
"input": "../example/C2HDM_Input.dat", | ||
"output": "test.tsv", | ||
"model": "c2hdm", | ||
"temperatureStart": "0", | ||
"temperatureEnd": "100", | ||
"temperatureStep": "5", | ||
|
||
"useNLopt": "true", | ||
"useCMAES": "true", | ||
"useGSL": "true", | ||
"useMultiThreading": "true", | ||
"logginglevel::default": "true", | ||
"logginglevel::minimizerdetailed": "false", | ||
"logginglevel::ewbgdetailed": "false", | ||
"logginglevel::debug": "false", | ||
"logginglevel::progdetailed": "false", | ||
"logginglevel::disabled_comment": "remove _comment from key to disable logger" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
#cmakedefine libcmaes_FOUND | ||
#cmakedefine NLopt_FOUND | ||
#cmakedefine Boost_FOUND | ||
#cmakedefine nlohmann_json_FOUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.