mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-15 11:55:37 +02:00
Dev/include file (#1306)
* create a include command calling the same function as parameters (cmd generation and autocompletion), testing parameters and include * added include in command line and python and its supposed to do the same as parameters command. both are tested * added colorama * moved test_free and test_command python tests to tests/scripts folder from python/tests due to CI issues with dependencies * generated commands * formatting --------- Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
This commit is contained in:
@@ -1686,6 +1686,18 @@ int InferAction::imagetest() {
|
||||
}
|
||||
}
|
||||
|
||||
int InferAction::include() {
|
||||
|
||||
if (args.size() == 1) {
|
||||
return slsDetectorDefs::PUT_ACTION;
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
throw RuntimeError("Could not infer action: Wrong number of arguments");
|
||||
}
|
||||
}
|
||||
|
||||
int InferAction::initialchecks() {
|
||||
|
||||
if (args.size() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user