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:
2026-09-03 14:14:57 +02:00
committed by GitHub
co-authored by Erik Fröjdh
parent eddb919328
commit 641ef047b5
25 changed files with 1252 additions and 267 deletions
+6 -1
View File
@@ -11,7 +11,8 @@ DetectorGeometry::DetectorGeometry(const xy &geometry,
const ssize_t module_pixels_x,
const ssize_t module_pixels_y,
const xy udp_interfaces_per_module,
const bool quad) {
const bool quad)
: m_udp_interfaces_per_module(udp_interfaces_per_module) {
size_t num_modules = geometry.col * geometry.row;
module_geometries.reserve(num_modules);
@@ -43,6 +44,10 @@ DetectorGeometry::DetectorGeometry(const xy &geometry,
m_pixels_y += static_cast<size_t>((geometry.row - 1) * cfg.module_gap_row);
}
xy DetectorGeometry::udp_interfaces_per_module() const {
return m_udp_interfaces_per_module;
}
size_t DetectorGeometry::n_modules() const { return m_modules_x * m_modules_y; }
size_t DetectorGeometry::pixels_x() const { return m_pixels_x; }