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

+32 -9
View File
@@ -104,9 +104,15 @@ JFJochViewerImageStatistics::JFJochViewerImageStatistics(QWidget *parent) : QWid
QFormLayout* layout = new QFormLayout(this);
// Order: what the dataset is, then how it was collected, then what this image contains.
// A dataset name is long and wraps: keep three lines of room from the start, so the rows below
// do not jump as one dataset's name wraps further than the next one's.
dataset_name = new QLabel(this);
dataset_name->setWordWrap(true);
layout->addRow(new QLabel("Dataset:"), dataset_name);
dataset_name->setAlignment(Qt::AlignTop | Qt::AlignLeft);
dataset_name->setMinimumHeight(3 * fontMetrics().lineSpacing());
auto *dataset_name_label = new QLabel("Dataset:");
dataset_name_label->setAlignment(Qt::AlignTop | Qt::AlignLeft);
layout->addRow(dataset_name_label, dataset_name);
collection_time = new QLabel(this);
collection_time->setWordWrap(true);
@@ -220,11 +226,23 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
auto &exp = image->Dataset().experiment;
// Word-wrap alone would break wherever it likes (mid-directory-name); a zero-width space after
// every "/" gives it a preferred break point there, so a long path wraps like a path and only
// falls back to breaking a single component if that component alone doesn't fit.
QString path = QString::fromStdString(exp.GetFilePrefix());
path.replace('/', QString("/") + QChar(0x200B)); // U+200B ZERO WIDTH SPACE, a break opportunity
// Word wrap never breaks inside a word, and a dataset name is one long word. A zero-width space
// is a break opportunity the wrap takes only when it needs one, so marking "/" first, then "_",
// then every few characters of a run with neither, wraps at a path separator where one fits, at
// an underscore next, and mid-name only for a component too long to fit a line at all.
const QChar zwsp(0x200B);
QString path;
int run = 0; // characters since the last break opportunity
for (const QChar c: QString::fromStdString(exp.GetFilePrefix())) {
path.append(c);
if (c == '/' || c == '_') {
path.append(zwsp);
run = 0;
} else if (++run >= 12) {
path.append(zwsp);
run = 0;
}
}
text = QString("<b>%1</b>").arg(path);
dataset_name->setText(text);
@@ -260,7 +278,7 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
// An axis that is present but does not turn has no wedge to add: state the angle it stands at.
const float wedge = exp.GetGoniometer()->GetWedge_deg();
const QString angle = TrimZeros(exp.GetGoniometer()->GetAngle_deg(image->ImageData().number), 3);
rotation_angle_label->setText("Image angle:");
rotation_angle_label->setText("Goniometer angle:");
rotation_angle->setText(wedge == 0.0f
? QString("<b>%1°</b>").arg(angle)
: QString("<b>%1° + %2°</b>").arg(angle).arg(TrimZeros(wedge, 3)));
@@ -286,10 +304,15 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
}
if (const auto head = exp.GetDatasetSettings().GetSmargonPosition()) {
// One decimal, and an angle that rounds to zero reads "0.0" - a stage that sits a hundredth
// of a degree below zero should not be reported as "-0.0".
auto head_angle = [](float deg) {
return QString::number(std::abs(deg) < 0.05f ? 0.0f : deg, 'f', 1);
};
smargon_label->setText("Smargon:");
smargon_angles->setText(QString("chi <b>%1</b>° / phi <b>%2</b>°")
.arg(TrimZeros(head->chi_deg, 3))
.arg(TrimZeros(head->phi_deg, 3)));
.arg(head_angle(head->chi_deg))
.arg(head_angle(head->phi_deg)));
} else {
smargon_label->setText("");
smargon_angles->setText("");