Dev/filereading for disabled udp (#342)
Build on RHEL9 / build (push) Successful in 2m41s
Build on RHEL8 / build (push) Successful in 3m15s
Run tests using data on local RHEL8 / build (push) Failing after 4m13s
Build on local RHEL8 / build (push) Successful in 2m53s

- handles file reading of disabled udp ports 
- adds members disabled_udp_ports in master file as an optional 
- adds member diasbled_udp_port_types in master file as an optional
- Treats enabled udp ports as ROIs 
- merges/combines consecutive ROis into one 

### To discuss: 

- right now can only handle either ROI or disabled udp ports (disabled
udp ports has higher precedence)
- Should Frames in File be removed from Master File as value is nonsense
for disabled udp ports

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
This commit is contained in:
mazzol_aandErik Fröjdh authored and GitHub committed 2026-09-03 14:14:57 +02:00
1 parent eddb919328
commit 641ef047b5
25 files changed
+1252 -267

No files matched your search

+13
View File
@@ -235,6 +235,19 @@ template <> DACIndex string_to(const std::string &arg) {
"\"");
}
template <> UDPPortPosition string_to(const std::string &arg) {
if (arg == "left")
return UDPPortPosition::LEFT;
if (arg == "right")
return UDPPortPosition::RIGHT;
if (arg == "top")
return UDPPortPosition::TOP;
if (arg == "bottom")
return UDPPortPosition::BOTTOM;
throw std::runtime_error("Could not decode UDPPortPosition from: \"" + arg +
"\"");
}
std::string remove_unit(std::string &str) {
auto it = str.begin();
while (it != str.end()) {