v1.0.0-rc.170 (#80)
Build Packages / Create release (push) Successful in 23s
Build Packages / build:rugnux-tgz (x86_64) (push) Successful in 10m6s
Build Packages / build:rugnux:aarch64 (cross) (push) Successful in 9m6s
Build Packages / build:viewer-tgz:cpu (push) Successful in 11m15s
Build Packages / build:viewer-tgz:cuda (push) Successful in 12m21s
Build Packages / build:windows:nocuda (push) Successful in 17m9s
Build Packages / build:windows:cuda (push) Successful in 19m49s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 25m42s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 16m0s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 14m54s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 17m7s
Build Packages / build:rugnux:windows (push) Successful in 10m47s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 17m4s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 17m8s
Build Packages / Generate python client (push) Successful in 45s
Build Packages / Build documentation (push) Successful in 1m45s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 19m23s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 19m20s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 18m43s
Build Packages / build:rpm (rocky8) (push) Successful in 19m31s
Build Packages / build:rpm (rocky9) (push) Successful in 20m16s
Build Packages / Unit tests (push) Successful in 1h41m19s

* Fixed a `jfjoch_broker` crash during indexing: sorting no longer misbehaves on non-finite values, and GPU FFT indexer kernel launches are now error-checked.
* rugnux needs about a third less peak memory to scale, merge and post-refine rotation data, with identical results.
* `rugnux --model`: the placed coordinate file carries the space group its own coordinates obey, and says so when that is not the group the reflection files beside it carry.
* `jfjoch_viewer`: fixes in the dataset plots, inspector and layout; spot markers lose their black outline by default (a checkbox under "Image features" restores it) and the highest-pixel markers are white boxes around the pixel.

Reviewed-on: #80
Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
This commit was merged in pull request #80.
This commit is contained in:
leonarski_f authored and leonarski_f committed 2026-09-16 18:17:46 +02:00
1 parent 9aae0c2ba7
commit cb5a2f032a
185 files changed
+1151 -469

No files matched your search

+26 -3
View File
@@ -184,7 +184,8 @@ void JFJochDiffractionImage::DrawSpots() {
pen.setCosmetic(true);
const QRectF box(s.x - spot_size + 0.5, s.y - spot_size + 0.5, 2 * spot_size, 2 * spot_size);
addOverlayItem(scene()->addRect(box, casing_pen)); // added first, so it stays underneath
if (outline_spots)
addOverlayItem(scene()->addRect(box, casing_pen)); // added first, so it stays underneath
addOverlayItem(scene()->addRect(box, pen));
}
}
@@ -454,14 +455,31 @@ void JFJochDiffractionImage::DrawBeamCenter() {
}
void JFJochDiffractionImage::DrawTopPixels() {
// A framed box like the spot markers - a white frame in a black casing - rather than a
// cross: the frame tells the user to look inside it, where a cross sits on top of the very
// pixel it points at. Slightly smaller than a spot frame (z above it), so both stay visible
// when a top pixel falls inside a spot.
const qreal half_size = 6.0 / std::sqrt(std::max(0.0001, scale_factor));
QPen casing_pen(Qt::black, 3 + MARKER_CASING_EXTRA_WIDTH);
casing_pen.setCosmetic(true);
QPen pen(Qt::white, 3);
pen.setCosmetic(true);
int i = 0;
for (const auto& p : image->GetTopPixels()) {
if (i >= show_highest_pixels)
break;
const int32_t idx = p.second;
DrawCross(idx % image->Dataset().experiment.GetXPixelsNum() + 0.5,
idx / image->Dataset().experiment.GetXPixelsNum() + 0.5, 15, 3);
const float x = idx % image->Dataset().experiment.GetXPixelsNum() + 0.5;
const float y = idx / image->Dataset().experiment.GetXPixelsNum() + 0.5;
const QRectF box(x - half_size, y - half_size, 2 * half_size, 2 * half_size);
for (const QPen &p_i : {casing_pen, pen}) { // casing first, so it stays underneath
auto *rect = scene()->addRect(box, p_i);
rect->setZValue(1);
addOverlayItem(rect);
}
i++;
}
}
@@ -1083,6 +1101,11 @@ void JFJochDiffractionImage::hideIceRingSpots(bool input) {
updateOverlay();
}
void JFJochDiffractionImage::outlineSpots(bool input) {
outline_spots = input;
updateOverlay();
}
void JFJochDiffractionImage::setResolutionRingMode(RingMode mode) {
ring_mode = mode;
updateOverlay();