v1.0.0-rc.110 (#16)
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m46s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m45s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 6m56s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 5m58s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 6m59s
Build Packages / build:rpm (rocky8) (push) Successful in 7m33s
Build Packages / Generate python client (push) Successful in 19s
Build Packages / Build documentation (push) Successful in 41s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky9) (push) Successful in 8m45s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m51s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m12s
Build Packages / Unit tests (push) Successful in 1h8m51s

This is an UNSTABLE release.

* jfjoch_broker: Add auto-contrast option for preview images
* Frontend: Add logo image
* jfjoch_viewer: Add logo image
* jfjoch_viewer: For image chart allow to set min value to zero
* jfjoch_viewer: For resolution estimation plots, visualization uses 1/d^2 as measure
* jfjoch_viewer: Add 3D unit cell visualization (experimental/WIP/not really there)
* Documentation: Add logo image

Reviewed-on: #16
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 #16.
This commit is contained in:
2025-11-28 12:47:35 +01:00
committed by leonarski_f
parent 05410d7cb3
commit 224cc8b89c
178 changed files with 855 additions and 268 deletions

View File

@@ -18,6 +18,7 @@ ResolutionRingWidget::ResolutionRingWidget(QWidget *parent)
auto_button = new QRadioButton("Auto", this);
manual_button = new QRadioButton("Manual", this);
est_button = new QRadioButton("Resolution estimation from processing", this);
ice_rings_button = new QRadioButton("Ice rings (d > 1.5 Å)", this);
est_button->setChecked(true);
@@ -26,6 +27,7 @@ ResolutionRingWidget::ResolutionRingWidget(QWidget *parent)
button_group->addButton(auto_button, 1);
button_group->addButton(manual_button, 2);
button_group->addButton(est_button, 3);
button_group->addButton(ice_rings_button, 4);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(none_button);
@@ -36,12 +38,14 @@ ResolutionRingWidget::ResolutionRingWidget(QWidget *parent)
manual_layout->addWidget(res_rings_edit);
layout->addLayout(manual_layout);
layout->addWidget(est_button);
layout->addWidget(ice_rings_button);
connect(res_rings_edit, &QLineEdit::editingFinished, this, &ResolutionRingWidget::editingFinished);
connect(auto_button, &QRadioButton::clicked, this, &ResolutionRingWidget::autoButtonClicked);
connect(manual_button, &QRadioButton::clicked, this, &ResolutionRingWidget::manualButtonClicked);
connect(est_button, &QRadioButton::clicked, this, &ResolutionRingWidget::estButtonClicked);
connect(none_button, &QRadioButton::clicked, this, &ResolutionRingWidget::noneButtonClicked);
connect(ice_rings_button, &QRadioButton::clicked, this, &ResolutionRingWidget::iceRingsButtonClicked);
}
void ResolutionRingWidget::setRings(const QVector<float> &v) {
@@ -75,6 +79,11 @@ void ResolutionRingWidget::manualButtonClicked() {
editingFinished();
}
void ResolutionRingWidget::iceRingsButtonClicked() {
res_rings_edit->setEnabled(false);
emit ringModeSet(JFJochDiffractionImage::RingMode::IceRings);
}
void ResolutionRingWidget::editingFinished() {
QString text = res_rings_edit->text();
QStringList stringList = text.split(',', Qt::SkipEmptyParts);