The live merge's per-image merged vector (rotation: the rugnux run's MergeStatistics::image_merged; stills: the final StillsLiveMerge) is put into the receiver plots as the new plot type image_merged and into the end message, so the broker's master file carries imageMerged and jfjoch_viewer on a broker fills its image list's Merged column and filter through /preview/plot (empty, so N/A, until the merge is made, and on an older broker). Frontend client and Redoc regenerated; the C++ model is unchanged (plot_type is a query parameter). The frontend plot menu has a "Merged" entry. --mode scale re-reads the imageIndexed of its input files, so the report's IMAGES_INDEXED and the indexed column of _plot.txt are filled (absent / nan for a file without it). The summary line names a lattice count only where one was counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <optional>
|
|
|
|
enum class PlotType {
|
|
BkgEstimate, SpindleBlindFraction, AzInt, AzInt1D, SpotCount, SpotCountLowRes, SpotCountIndexed, SpotCountIceRing,
|
|
IndexingRate, IndexingUnitCellLength,
|
|
IndexingUnitCellAngle, ErrorPixels, SaturatedPixels, ImageCollectionEfficiency, ReceiverDelay, ReceiverFreeSendBuf,
|
|
ROISum, ROIMean, ROIMaxCount, ROIPixels, ROIWeightedX, ROIWeightedY, PacketsReceived, MaxValue,
|
|
ResolutionEstimate, ProfileRadius, Mosaicity, BFactor, PixelSum, StrongPixels,
|
|
RefinementBeamX, RefinementBeamY, ImageProcessingTime, IntegratedReflections,
|
|
ImageScaleFactor, ImageScaleCC, CompressionRatio, IndexingLatticeCount, IceRingScore, ImageMerged
|
|
};
|
|
|
|
enum class PlotAzintUnit {
|
|
Q_recipA, TwoTheta_deg, d_A
|
|
};
|
|
|
|
struct PlotRequest {
|
|
PlotType type = PlotType::BkgEstimate;
|
|
uint64_t binning = 0;
|
|
bool experimental_coord = false;
|
|
PlotAzintUnit azint_unit = PlotAzintUnit::Q_recipA;
|
|
std::optional<float> fill_value;
|
|
};
|