mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-02 11:54:56 +01:00
jf: timing info decoder (#987)
* timing_info_decoder command with options swissfel (default) and shine. added to python, command line generation, autocomplete, tostring, tests.
This commit is contained in:
@@ -3737,6 +3737,22 @@ int InferAction::timing() {
|
||||
}
|
||||
}
|
||||
|
||||
int InferAction::timing_info_decoder() {
|
||||
|
||||
if (args.size() == 0) {
|
||||
return slsDetectorDefs::GET_ACTION;
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
return slsDetectorDefs::PUT_ACTION;
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
throw RuntimeError("Could not infer action: Wrong number of arguments");
|
||||
}
|
||||
}
|
||||
|
||||
int InferAction::timinglist() {
|
||||
|
||||
if (args.size() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user