Build Packages / Create release (push) Successful in 9s
Build Packages / build:portable:macos-arm64:nocuda (push) Successful in 5m8s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 11m12s
Build Packages / build:portable:linux-x86_64:nocuda (push) Successful in 16m43s
Build Packages / build:portable:linux-x86_64:cuda (push) Successful in 20m56s
Build Packages / build:portable:windows-x86_64:nocuda (push) Successful in 22m4s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 26m57s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 28m24s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 27m58s
Build Packages / build:portable:windows-x86_64:cuda (push) Successful in 29m29s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 18m23s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 19m55s
Build Packages / Generate python client (push) Successful in 32s
Build Packages / Build documentation (push) Successful in 1m32s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 27m20s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 29m27s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 32m41s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 34m46s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 37m25s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 35m56s
Build Packages / Unit tests (push) Successful in 2h8m44s
Build Packages / Validation Battery (push) Successful in 33m35s
* jfjoch_broker: Optional live Rugnux analysis of DECTRIS rotation collections inside the broker, with merged data, maps and the placed model written beside the master file, the rotation lattice in the scan result, and a "Rugnux live" tab and dashboard row in the web frontend. * Rugnux: Faster processing, with molecular replacement and model validation spread over several GPUs and run on the Apple GPU on macOS. * Rugnux: The polarization stated in miniCBF and d*TREK headers is used, twinned crystals' space groups are decided more reliably, and a run that finds no lattice still reports every image. Reviewed-on: #86 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
50 lines
2.4 KiB
C++
50 lines
2.4 KiB
C++
// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "../common/ColorScale.h"
|
|
#include "../common/DiffractionExperiment.h"
|
|
#include "../common/PixelMask.h"
|
|
|
|
// Two files a person reads to check by eye what the run decided, written next to the reflections on
|
|
// every rotation run: the detector as the pipeline saw it, and one row per image.
|
|
|
|
// The mean projection the beam-stop pre-scan built, coloured with the viewer's own default map
|
|
// (common/ColorScale.h): white-to-indigo for the counts, grey for the module and chip gaps, coral
|
|
// for the detected shadow, magenta for everything else the mask holds. The shadow is a place where
|
|
// the background is missing, so drawing the mask on top of the very projection the detection tested
|
|
// is what makes a wrong shadow visible - a coral patch over unbroken background, or a dark patch
|
|
// left uncoloured.
|
|
std::vector<rgb> DetectorDiagnosticRGB(const PixelMask &pixel_mask,
|
|
const std::vector<float> &mean_projection);
|
|
|
|
// The same picture as JPEG bytes, at the detector's own pixel count.
|
|
std::string RenderDetectorDiagnostic(const DiffractionExperiment &experiment,
|
|
const PixelMask &pixel_mask,
|
|
const std::vector<float> &mean_projection);
|
|
|
|
// The columns of <prefix>_plot.txt. Every vector is indexed by the processed-image ordinal - the
|
|
// numbering of every per-image array rugnux writes - and a value nothing measured is NAN.
|
|
// frame_disposition holds FrameDisposition (Merge.h) and is empty when the sweep-quality diagnostic
|
|
// did not run.
|
|
struct PerImagePlot {
|
|
std::vector<float> bkg_estimate;
|
|
std::vector<float> resolution_A;
|
|
std::vector<float> spot_count;
|
|
std::vector<float> scale_g;
|
|
std::vector<float> mosaicity_deg;
|
|
std::vector<float> cc_to_merge;
|
|
std::vector<int> cc_n;
|
|
std::vector<uint8_t> frame_disposition;
|
|
std::optional<GoniometerAxis> goniometer; // the angle column; none: nan
|
|
size_t image_count = 0; // the rows
|
|
};
|
|
|
|
// The text of <prefix>_plot.txt: one '#' legend line naming the columns, then one whitespace-separated
|
|
// row per image, so `plot '<f>' using 1:4` works with nothing in between.
|
|
std::string PerImagePlotText(const PerImagePlot &plot);
|