v1.0.0-rc.103 (#8)
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m51s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m19s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m46s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m32s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 8m6s
Build Packages / build:rpm (rocky8) (push) Successful in 8m7s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m37s
Build Packages / Generate python client (push) Successful in 17s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 32s
Build Packages / build:rpm (rocky9) (push) Successful in 9m6s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m53s
Build Packages / Unit tests (push) Successful in 1h9m39s
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m51s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m19s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m46s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m32s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 8m6s
Build Packages / build:rpm (rocky8) (push) Successful in 8m7s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m37s
Build Packages / Generate python client (push) Successful in 17s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 32s
Build Packages / build:rpm (rocky9) (push) Successful in 9m6s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m53s
Build Packages / Unit tests (push) Successful in 1h9m39s
This is an UNSTABLE release. * jfjoch_viewer: Minor improvements to the viewer * jfjoch_broker: Change behavior for modular detectors: coordinates of 0-th pixel can be now arbitrary and detector will be cropped to the smallest rectangle limited by module coordinates Reviewed-on: #8 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
This commit was merged in pull request #8.
This commit is contained in:
@@ -12,11 +12,24 @@ DetectorGeometryModular::DetectorGeometryModular(const std::vector<DetectorModul
|
||||
width = 0;
|
||||
height = 0;
|
||||
|
||||
int64_t min_x = modules[0].GetMinX();
|
||||
int64_t max_x = modules[0].GetMaxX();
|
||||
int64_t min_y = modules[0].GetMinY();
|
||||
int64_t max_y = modules[0].GetMaxY();
|
||||
|
||||
for (auto &m: modules) {
|
||||
width = std::max<int64_t>(width, m.GetMaxX()+1);
|
||||
height = std::max<int64_t>(height, m.GetMaxY()+1);
|
||||
min_x = std::min<int64_t>(min_x, m.GetMinX());
|
||||
max_x = std::max<int64_t>(max_x, m.GetMaxX());
|
||||
min_y = std::min<int64_t>(min_y, m.GetMinY());
|
||||
max_y = std::max<int64_t>(max_y, m.GetMaxY());
|
||||
}
|
||||
|
||||
width = max_x - min_x + 1;
|
||||
height = max_y - min_y + 1;
|
||||
|
||||
for (auto &m: modules)
|
||||
m.Translate(-min_x, -min_y);
|
||||
|
||||
if (vertical_flip)
|
||||
VerticalFlip();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user