updated trimen
Build on RHEL9 docker image / build (push) Successful in 4m2s
Build on RHEL8 docker image / build (push) Successful in 5m14s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m41s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m9s

This commit is contained in:
Erik Frojdh committed 2026-10-01 08:18:11 +02:00
1 parent 7d0ce1820e
commit f19b176465
1 file changed
+3 -7
+3 -7
View File
@@ -485,14 +485,10 @@ std::string Caller::trimen(int action) {
auto t = det->getTrimEnergies(std::vector<int>{det_id});
os << OutString(t) << '\n';
} else if (action == defs::PUT_ACTION) {
std::vector<int> t(args.size());
if (!args.empty()) {
for (size_t i = 0; i < t.size(); ++i) {
t[i] = StringTo<int>(args[i]);
}
}
// accepts both "4500 5400" and "4500,5400", empty list clears
auto t = StringTo<std::vector<int>>(join(args, ','));
det->setTrimEnergies(t, std::vector<int>{det_id});
os << ToString(args) << '\n';
os << ToString(t) << '\n';
} else {
throw RuntimeError("Unknown action");
}