v1.0.0-rc.81

This commit is contained in:
leonarski_f committed 2025-09-21 19:27:51 +02:00
1 parent 3ded4cd3ce
commit 5d9d2de4a4
243 files changed
+3401 -935

No files matched your search

@@ -86,6 +86,14 @@ JFJochViewerMetadataWindow::JFJochViewerMetadataWindow(QWidget *parent) : QMainW
unitCellLayout->addWidget(unit_cell_beta, 2, 1);
unitCellLayout->addWidget(unit_cell_gamma, 2, 2);
auto otherGroup = new QGroupBox(tr("Others"), this);
mainLayout->addWidget(otherGroup);
auto otherLayout = new QGridLayout(otherGroup);
detect_ice_rings = new QCheckBox(tr("Detect Ice Rings"), this);
detect_ice_rings->setChecked(true);
otherLayout->addWidget(detect_ice_rings, 0, 0);
QFrame *line = new QFrame();
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
@@ -112,6 +120,7 @@ void JFJochViewerMetadataWindow::datasetUpdate() {
tmp.IncidentEnergy_keV(WVL_1A_IN_KEV / wavelength_A->value());
tmp.PoniRot1_rad(poni_rot1_deg->value() * M_PI / 180.0);
tmp.PoniRot2_rad(poni_rot2_deg->value() * M_PI / 180.0);
tmp.DetectIceRings(detect_ice_rings->isChecked());
if (unit_cell_enabled->isChecked()) {
UnitCell uc;
@@ -145,6 +154,7 @@ void JFJochViewerMetadataWindow::datasetLoaded(std::shared_ptr<const JFJochReade
wavelength_A->setValue(dataset->experiment.GetWavelength_A());
poni_rot1_deg->setValue(dataset->experiment.GetPoniRot1_rad() * 180.0 / M_PI);
poni_rot2_deg->setValue(dataset->experiment.GetPoniRot2_rad() * 180.0 / M_PI);
detect_ice_rings->setChecked(dataset->experiment.IsDetectIceRings());
auto unit_cell = dataset->experiment.GetUnitCell();
if (unit_cell) {