Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m57s
Build Packages / Unit tests (push) Skipped
Build Packages / build:windows:nocuda (push) Successful in 16m55s
Build Packages / build:windows:cuda (push) Successful in 18m48s
Build Packages / build:viewer-tgz:cpu (push) Successful in 13m10s
Build Packages / build:viewer-tgz:cuda (push) Successful in 14m45s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 22m23s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 20m12s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 23m7s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 20m43s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 23m9s
Build Packages / XDS test (durin plugin) (push) Successful in 12m26s
Build Packages / build:rpm (rocky9) (push) Successful in 24m58s
Build Packages / Generate python client (push) Successful in 50s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 23m20s
Build Packages / Create release (push) Skipped
Build Packages / XDS test (JFJoch plugin) (push) Successful in 12m37s
Build Packages / build:rpm (rocky8) (push) Successful in 27m58s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 25m38s
Build Packages / Build documentation (push) Successful in 59s
Build Packages / DIALS test (push) Successful in 23m16s
Build Packages / XDS test (neggia plugin) (push) Successful in 6m38s
**Files written by Jungfraujoch now import correctly in DIALS, XDS and pyFAI.** A tilted detector, a grid scan, a still recorded at a goniometer position, and saturated or unreadable pixels were each described in a way that a third-party program acted on wrongly. If you process Jungfraujoch data outside Jungfraujoch, prefer this release to any earlier one. * HDF5: the detector tilt (`rot1`/`rot2`/`rot3`) is exported correctly in the NXmx transformation chain; untilted geometries are unaffected. * HDF5: a still recorded at a goniometer position is no longer read back as a single image, and a grid scan records a stationary spindle so a program that requires a rotation axis can open it. * HDF5: the sample transformation chain is written in mounting order, with a Smargon head position told apart from the spindle, one entry per image, `module_offset` as a float unit vector, and `offset_units` on every offset. * HDF5: saturated, underloaded and unreadable pixels are described so a downstream program masks them - `saturation_value`, `underload_value`, `error_value` and `bit_depth_readout` are written correctly, and a data file missing next to a VDS master reads as the error marker rather than as zero counts. * HDF5: the rotation axis is read back under whatever name it carries, and `mirror_y` records whether the assembled image is mirrored in Y relative to the detector's raw readout. * A grid scan and a goniometer axis can both be set; they are no longer alternatives. * `images_per_file` is chosen from the acquisition when it is not given: a rotation sweep of at most 20000 images goes into a single data file, a grid scan splits on whole fast-axis rows, and stills and serial keep 1000. * The writer refuses a stream whose start message declares a different pixel format than its images carry, and a DECTRIS detector sending signed images is no longer declared unsigned. * The image stream can carry the sample transformation chain (`transformations`, in the END message); a producer that does not send it gets the same chain built by the writer. * rugnux: fixing the space group with `-S` no longer prevents the lattice from being found - a lattice indexed in a different setting is reindexed into that group's own setting, and a run whose crystal does not have that group's lattice stops and names the cell it indexed as, rather than reporting statistics that cannot describe it. * rugnux: the per-image resolution estimate now predicts the resolution the merged data reach rather than the highest-resolution spot found, and is reported as `SPOT_RESOLUTION_ESTIMATE`. * rugnux: two runs of the same command on the same images produce the same merged intensities; the azimuthal profile written alongside them is not yet reproducible in the same way. * rugnux: the offline lattice refinement is bounded by iterations rather than by a wall clock, so a loaded machine can no longer refine to a different lattice; a live acquisition keeps its real-time bound. * rugnux: the detector-frame modulation correction is fitted on a grid spanning the detector, so whether it is applied no longer depends on how far integration reached. * rugnux: the geometry pre-pass no longer writes `<prefix>_01.mtz`, `_01.cif`, `_01.hkl` and `_01_image.dat`; the refined second pass writes those files under `<prefix>`, and that is the result to use. * rugnux: `_process.h5` describes the pixel format of the images it links to, and is written on a thread of its own. * rugnux: the detector geometry is also logged in XDS's convention (`ORGX`/`ORGY`, detector axis vectors, rotation axis), so it can be compared with an XDS refinement. * rugnux: an image integrated in pyFAI through the `.poni` file written by `--mode calibration` comes out with the correct azimuth, and the file declares pyFAI's `orientation`, which needs pyFAI 2024.01 or newer. Radial integration is unchanged. * rugnux: a rotation run is substantially faster throughout - beam-stop detection, first-pass indexing, geometry refinement, integration, scaling and merging - and observations outside the scaling resolution range are dropped as they are ingested. The refined geometry, the space group chosen and the merged statistics are unchanged. * Faster spot finding and indexing, on the broker as well as in rugnux; the spots found and the lattices indexed are unchanged. * A run reserves substantially less GPU memory: nothing is allocated for buffers that are never read, and a worker builds only the engines it uses. * rugnux: with `-N` left at its default the per-image loop of `--mode mx` uses at most 16 workers per GPU, rather than one per hardware thread; an explicit `-N` is obeyed as given. * CUDA 12 builds now contain device code for Volta, so the RHEL 8 packages and the portable Linux `.tgz` run on a V100; the CUDA 13 artefacts (RHEL 9, Ubuntu, Windows) remain Turing and newer. * The build resolves a single Eigen for the whole project, and refuses to configure if Ceres picks up a different one; a build that mixed two Eigen versions was undefined behaviour and crashed at -O2. * Documentation: a security page, and the supported GPU generations and minimum NVIDIA driver version of every released artefact. **Breaking change to OpenAPI** - regenerate the client (`jfjoch-client` 1.0.0-rc.162, `frontend/src/client`): * `dataset_settings.images_per_file` is no longer `default: 1000` and no longer accepts `0`; it is optional, and its minimum is 1. A client sending `0` (previously "one file for the whole run") is now rejected - omit the field instead, which for a rotation sweep gives the same single file. * `file_writer_format` now defaults to `NXmxVDS`, matching the server's own default and the layout recommended for DIALS, XDS and CrystFEL. A generated client that fills in schema defaults and does not set the format explicitly will write VDS masters where it previously wrote legacy ones; set `NXmxLegacy` explicitly to keep them. --------- Co-authored-by: jungfrau <jungfrau@mx-aare-test.psi.ch> Reviewed-on: #72 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
778 lines
24 KiB
C++
778 lines
24 KiB
C++
/**
|
|
* Jungfraujoch
|
|
* API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates. # License Clarification While this API definition is licensed under GPL-3.0, **the GPL copyleft provisions do not apply** when this file is used solely to generate OpenAPI clients or when implementing applications that interact with the API. Generated client code and applications using this API definition are not subject to the GPL license requirements and may be distributed under terms of your choosing. This exception is similar in spirit to the Linux Kernel's approach to userspace API headers and the GCC Runtime Library Exception. The Linux Kernel developers have explicitly stated that user programs that merely use the kernel interfaces (syscalls, ioctl definitions, etc.) are not derivative works of the kernel and are not subject to the terms of the GPL. This exception is intended to allow wider use of this API specification without imposing GPL requirements on applications that merely interact with the API, regardless of whether they communicate through network calls or other mechanisms.
|
|
*
|
|
* The version of the OpenAPI document: 1.0.0-rc.162
|
|
* Contact: filip.leonarski@psi.ch
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
#include "Measurement_statistics.h"
|
|
#include "Helpers.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
Measurement_statistics::Measurement_statistics()
|
|
{
|
|
m_File_prefix = "";
|
|
m_File_prefixIsSet = false;
|
|
m_Run_number = 0L;
|
|
m_Run_numberIsSet = false;
|
|
m_Experiment_group = "";
|
|
m_Experiment_groupIsSet = false;
|
|
m_Images_expected = 0L;
|
|
m_Images_expectedIsSet = false;
|
|
m_Images_collected = 0L;
|
|
m_Images_collectedIsSet = false;
|
|
m_Images_sent = 0L;
|
|
m_Images_sentIsSet = false;
|
|
m_Images_written = 0L;
|
|
m_Images_writtenIsSet = false;
|
|
m_Images_discarded_lossy_compression = 0L;
|
|
m_Images_discarded_lossy_compressionIsSet = false;
|
|
m_Max_image_number_sent = 0L;
|
|
m_Max_image_number_sentIsSet = false;
|
|
m_Collection_efficiency = 0.0f;
|
|
m_Collection_efficiencyIsSet = false;
|
|
m_Compression_ratio = 0.0f;
|
|
m_Compression_ratioIsSet = false;
|
|
m_Cancelled = false;
|
|
m_CancelledIsSet = false;
|
|
m_Max_receiver_delay = 0L;
|
|
m_Max_receiver_delayIsSet = false;
|
|
m_Indexing_rate = 0.0f;
|
|
m_Indexing_rateIsSet = false;
|
|
m_Detector_width = 0L;
|
|
m_Detector_widthIsSet = false;
|
|
m_Detector_height = 0L;
|
|
m_Detector_heightIsSet = false;
|
|
m_Detector_pixel_depth = 0L;
|
|
m_Detector_pixel_depthIsSet = false;
|
|
m_Bkg_estimate = 0.0f;
|
|
m_Bkg_estimateIsSet = false;
|
|
m_Unit_cell = "";
|
|
m_Unit_cellIsSet = false;
|
|
m_Error_pixels = 0.0f;
|
|
m_Error_pixelsIsSet = false;
|
|
m_Saturated_pixels = 0.0f;
|
|
m_Saturated_pixelsIsSet = false;
|
|
m_Roi_beam_pixels = 0.0f;
|
|
m_Roi_beam_pixelsIsSet = false;
|
|
m_Roi_beam_sum = 0.0f;
|
|
m_Roi_beam_sumIsSet = false;
|
|
|
|
}
|
|
|
|
void Measurement_statistics::validate() const
|
|
{
|
|
std::stringstream msg;
|
|
if (!validate(msg))
|
|
{
|
|
throw org::openapitools::server::helpers::ValidationException(msg.str());
|
|
}
|
|
}
|
|
|
|
bool Measurement_statistics::validate(std::stringstream& msg) const
|
|
{
|
|
return validate(msg, "");
|
|
}
|
|
|
|
bool Measurement_statistics::validate(std::stringstream& msg, const std::string& pathPrefix) const
|
|
{
|
|
bool success = true;
|
|
const std::string _pathPrefix = pathPrefix.empty() ? "Measurement_statistics" : pathPrefix;
|
|
|
|
|
|
if (collectionEfficiencyIsSet())
|
|
{
|
|
const float& value = m_Collection_efficiency;
|
|
const std::string currentValuePath = _pathPrefix + ".collectionEfficiency";
|
|
|
|
|
|
if (value < static_cast<float>(0.0))
|
|
{
|
|
success = false;
|
|
msg << currentValuePath << ": must be greater than or equal to 0.0;";
|
|
}
|
|
if (value > static_cast<float>(1.0))
|
|
{
|
|
success = false;
|
|
msg << currentValuePath << ": must be less than or equal to 1.0;";
|
|
}
|
|
|
|
}
|
|
|
|
if (compressionRatioIsSet())
|
|
{
|
|
const float& value = m_Compression_ratio;
|
|
const std::string currentValuePath = _pathPrefix + ".compressionRatio";
|
|
|
|
|
|
if (value < static_cast<float>(0.0))
|
|
{
|
|
success = false;
|
|
msg << currentValuePath << ": must be greater than or equal to 0.0;";
|
|
}
|
|
|
|
}
|
|
|
|
return success;
|
|
}
|
|
|
|
bool Measurement_statistics::operator==(const Measurement_statistics& rhs) const
|
|
{
|
|
return
|
|
|
|
|
|
|
|
((!filePrefixIsSet() && !rhs.filePrefixIsSet()) || (filePrefixIsSet() && rhs.filePrefixIsSet() && getFilePrefix() == rhs.getFilePrefix())) &&
|
|
|
|
|
|
((!runNumberIsSet() && !rhs.runNumberIsSet()) || (runNumberIsSet() && rhs.runNumberIsSet() && getRunNumber() == rhs.getRunNumber())) &&
|
|
|
|
|
|
((!experimentGroupIsSet() && !rhs.experimentGroupIsSet()) || (experimentGroupIsSet() && rhs.experimentGroupIsSet() && getExperimentGroup() == rhs.getExperimentGroup())) &&
|
|
|
|
|
|
((!imagesExpectedIsSet() && !rhs.imagesExpectedIsSet()) || (imagesExpectedIsSet() && rhs.imagesExpectedIsSet() && getImagesExpected() == rhs.getImagesExpected())) &&
|
|
|
|
|
|
((!imagesCollectedIsSet() && !rhs.imagesCollectedIsSet()) || (imagesCollectedIsSet() && rhs.imagesCollectedIsSet() && getImagesCollected() == rhs.getImagesCollected())) &&
|
|
|
|
|
|
((!imagesSentIsSet() && !rhs.imagesSentIsSet()) || (imagesSentIsSet() && rhs.imagesSentIsSet() && getImagesSent() == rhs.getImagesSent())) &&
|
|
|
|
|
|
((!imagesWrittenIsSet() && !rhs.imagesWrittenIsSet()) || (imagesWrittenIsSet() && rhs.imagesWrittenIsSet() && getImagesWritten() == rhs.getImagesWritten())) &&
|
|
|
|
|
|
((!imagesDiscardedLossyCompressionIsSet() && !rhs.imagesDiscardedLossyCompressionIsSet()) || (imagesDiscardedLossyCompressionIsSet() && rhs.imagesDiscardedLossyCompressionIsSet() && getImagesDiscardedLossyCompression() == rhs.getImagesDiscardedLossyCompression())) &&
|
|
|
|
|
|
((!maxImageNumberSentIsSet() && !rhs.maxImageNumberSentIsSet()) || (maxImageNumberSentIsSet() && rhs.maxImageNumberSentIsSet() && getMaxImageNumberSent() == rhs.getMaxImageNumberSent())) &&
|
|
|
|
|
|
((!collectionEfficiencyIsSet() && !rhs.collectionEfficiencyIsSet()) || (collectionEfficiencyIsSet() && rhs.collectionEfficiencyIsSet() && getCollectionEfficiency() == rhs.getCollectionEfficiency())) &&
|
|
|
|
|
|
((!compressionRatioIsSet() && !rhs.compressionRatioIsSet()) || (compressionRatioIsSet() && rhs.compressionRatioIsSet() && getCompressionRatio() == rhs.getCompressionRatio())) &&
|
|
|
|
|
|
((!cancelledIsSet() && !rhs.cancelledIsSet()) || (cancelledIsSet() && rhs.cancelledIsSet() && isCancelled() == rhs.isCancelled())) &&
|
|
|
|
|
|
((!maxReceiverDelayIsSet() && !rhs.maxReceiverDelayIsSet()) || (maxReceiverDelayIsSet() && rhs.maxReceiverDelayIsSet() && getMaxReceiverDelay() == rhs.getMaxReceiverDelay())) &&
|
|
|
|
|
|
((!indexingRateIsSet() && !rhs.indexingRateIsSet()) || (indexingRateIsSet() && rhs.indexingRateIsSet() && getIndexingRate() == rhs.getIndexingRate())) &&
|
|
|
|
|
|
((!detectorWidthIsSet() && !rhs.detectorWidthIsSet()) || (detectorWidthIsSet() && rhs.detectorWidthIsSet() && getDetectorWidth() == rhs.getDetectorWidth())) &&
|
|
|
|
|
|
((!detectorHeightIsSet() && !rhs.detectorHeightIsSet()) || (detectorHeightIsSet() && rhs.detectorHeightIsSet() && getDetectorHeight() == rhs.getDetectorHeight())) &&
|
|
|
|
|
|
((!detectorPixelDepthIsSet() && !rhs.detectorPixelDepthIsSet()) || (detectorPixelDepthIsSet() && rhs.detectorPixelDepthIsSet() && getDetectorPixelDepth() == rhs.getDetectorPixelDepth())) &&
|
|
|
|
|
|
((!bkgEstimateIsSet() && !rhs.bkgEstimateIsSet()) || (bkgEstimateIsSet() && rhs.bkgEstimateIsSet() && getBkgEstimate() == rhs.getBkgEstimate())) &&
|
|
|
|
|
|
((!unitCellIsSet() && !rhs.unitCellIsSet()) || (unitCellIsSet() && rhs.unitCellIsSet() && getUnitCell() == rhs.getUnitCell())) &&
|
|
|
|
|
|
((!errorPixelsIsSet() && !rhs.errorPixelsIsSet()) || (errorPixelsIsSet() && rhs.errorPixelsIsSet() && getErrorPixels() == rhs.getErrorPixels())) &&
|
|
|
|
|
|
((!saturatedPixelsIsSet() && !rhs.saturatedPixelsIsSet()) || (saturatedPixelsIsSet() && rhs.saturatedPixelsIsSet() && getSaturatedPixels() == rhs.getSaturatedPixels())) &&
|
|
|
|
|
|
((!roiBeamPixelsIsSet() && !rhs.roiBeamPixelsIsSet()) || (roiBeamPixelsIsSet() && rhs.roiBeamPixelsIsSet() && getRoiBeamPixels() == rhs.getRoiBeamPixels())) &&
|
|
|
|
|
|
((!roiBeamSumIsSet() && !rhs.roiBeamSumIsSet()) || (roiBeamSumIsSet() && rhs.roiBeamSumIsSet() && getRoiBeamSum() == rhs.getRoiBeamSum()))
|
|
|
|
;
|
|
}
|
|
|
|
bool Measurement_statistics::operator!=(const Measurement_statistics& rhs) const
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
void to_json(nlohmann::json& j, const Measurement_statistics& o)
|
|
{
|
|
j = nlohmann::json::object();
|
|
if(o.filePrefixIsSet())
|
|
j["file_prefix"] = o.m_File_prefix;
|
|
if(o.runNumberIsSet())
|
|
j["run_number"] = o.m_Run_number;
|
|
if(o.experimentGroupIsSet())
|
|
j["experiment_group"] = o.m_Experiment_group;
|
|
if(o.imagesExpectedIsSet())
|
|
j["images_expected"] = o.m_Images_expected;
|
|
if(o.imagesCollectedIsSet())
|
|
j["images_collected"] = o.m_Images_collected;
|
|
if(o.imagesSentIsSet())
|
|
j["images_sent"] = o.m_Images_sent;
|
|
if(o.imagesWrittenIsSet())
|
|
j["images_written"] = o.m_Images_written;
|
|
if(o.imagesDiscardedLossyCompressionIsSet())
|
|
j["images_discarded_lossy_compression"] = o.m_Images_discarded_lossy_compression;
|
|
if(o.maxImageNumberSentIsSet())
|
|
j["max_image_number_sent"] = o.m_Max_image_number_sent;
|
|
if(o.collectionEfficiencyIsSet())
|
|
j["collection_efficiency"] = o.m_Collection_efficiency;
|
|
if(o.compressionRatioIsSet())
|
|
j["compression_ratio"] = o.m_Compression_ratio;
|
|
if(o.cancelledIsSet())
|
|
j["cancelled"] = o.m_Cancelled;
|
|
if(o.maxReceiverDelayIsSet())
|
|
j["max_receiver_delay"] = o.m_Max_receiver_delay;
|
|
if(o.indexingRateIsSet())
|
|
j["indexing_rate"] = o.m_Indexing_rate;
|
|
if(o.detectorWidthIsSet())
|
|
j["detector_width"] = o.m_Detector_width;
|
|
if(o.detectorHeightIsSet())
|
|
j["detector_height"] = o.m_Detector_height;
|
|
if(o.detectorPixelDepthIsSet())
|
|
j["detector_pixel_depth"] = o.m_Detector_pixel_depth;
|
|
if(o.bkgEstimateIsSet())
|
|
j["bkg_estimate"] = o.m_Bkg_estimate;
|
|
if(o.unitCellIsSet())
|
|
j["unit_cell"] = o.m_Unit_cell;
|
|
if(o.errorPixelsIsSet())
|
|
j["error_pixels"] = o.m_Error_pixels;
|
|
if(o.saturatedPixelsIsSet())
|
|
j["saturated_pixels"] = o.m_Saturated_pixels;
|
|
if(o.roiBeamPixelsIsSet())
|
|
j["roi_beam_pixels"] = o.m_Roi_beam_pixels;
|
|
if(o.roiBeamSumIsSet())
|
|
j["roi_beam_sum"] = o.m_Roi_beam_sum;
|
|
|
|
}
|
|
|
|
void from_json(const nlohmann::json& j, Measurement_statistics& o)
|
|
{
|
|
if(j.find("file_prefix") != j.end())
|
|
{
|
|
j.at("file_prefix").get_to(o.m_File_prefix);
|
|
o.m_File_prefixIsSet = true;
|
|
}
|
|
if(j.find("run_number") != j.end())
|
|
{
|
|
j.at("run_number").get_to(o.m_Run_number);
|
|
o.m_Run_numberIsSet = true;
|
|
}
|
|
if(j.find("experiment_group") != j.end())
|
|
{
|
|
j.at("experiment_group").get_to(o.m_Experiment_group);
|
|
o.m_Experiment_groupIsSet = true;
|
|
}
|
|
if(j.find("images_expected") != j.end())
|
|
{
|
|
j.at("images_expected").get_to(o.m_Images_expected);
|
|
o.m_Images_expectedIsSet = true;
|
|
}
|
|
if(j.find("images_collected") != j.end())
|
|
{
|
|
j.at("images_collected").get_to(o.m_Images_collected);
|
|
o.m_Images_collectedIsSet = true;
|
|
}
|
|
if(j.find("images_sent") != j.end())
|
|
{
|
|
j.at("images_sent").get_to(o.m_Images_sent);
|
|
o.m_Images_sentIsSet = true;
|
|
}
|
|
if(j.find("images_written") != j.end())
|
|
{
|
|
j.at("images_written").get_to(o.m_Images_written);
|
|
o.m_Images_writtenIsSet = true;
|
|
}
|
|
if(j.find("images_discarded_lossy_compression") != j.end())
|
|
{
|
|
j.at("images_discarded_lossy_compression").get_to(o.m_Images_discarded_lossy_compression);
|
|
o.m_Images_discarded_lossy_compressionIsSet = true;
|
|
}
|
|
if(j.find("max_image_number_sent") != j.end())
|
|
{
|
|
j.at("max_image_number_sent").get_to(o.m_Max_image_number_sent);
|
|
o.m_Max_image_number_sentIsSet = true;
|
|
}
|
|
if(j.find("collection_efficiency") != j.end())
|
|
{
|
|
j.at("collection_efficiency").get_to(o.m_Collection_efficiency);
|
|
o.m_Collection_efficiencyIsSet = true;
|
|
}
|
|
if(j.find("compression_ratio") != j.end())
|
|
{
|
|
j.at("compression_ratio").get_to(o.m_Compression_ratio);
|
|
o.m_Compression_ratioIsSet = true;
|
|
}
|
|
if(j.find("cancelled") != j.end())
|
|
{
|
|
j.at("cancelled").get_to(o.m_Cancelled);
|
|
o.m_CancelledIsSet = true;
|
|
}
|
|
if(j.find("max_receiver_delay") != j.end())
|
|
{
|
|
j.at("max_receiver_delay").get_to(o.m_Max_receiver_delay);
|
|
o.m_Max_receiver_delayIsSet = true;
|
|
}
|
|
if(j.find("indexing_rate") != j.end())
|
|
{
|
|
j.at("indexing_rate").get_to(o.m_Indexing_rate);
|
|
o.m_Indexing_rateIsSet = true;
|
|
}
|
|
if(j.find("detector_width") != j.end())
|
|
{
|
|
j.at("detector_width").get_to(o.m_Detector_width);
|
|
o.m_Detector_widthIsSet = true;
|
|
}
|
|
if(j.find("detector_height") != j.end())
|
|
{
|
|
j.at("detector_height").get_to(o.m_Detector_height);
|
|
o.m_Detector_heightIsSet = true;
|
|
}
|
|
if(j.find("detector_pixel_depth") != j.end())
|
|
{
|
|
j.at("detector_pixel_depth").get_to(o.m_Detector_pixel_depth);
|
|
o.m_Detector_pixel_depthIsSet = true;
|
|
}
|
|
if(j.find("bkg_estimate") != j.end())
|
|
{
|
|
j.at("bkg_estimate").get_to(o.m_Bkg_estimate);
|
|
o.m_Bkg_estimateIsSet = true;
|
|
}
|
|
if(j.find("unit_cell") != j.end())
|
|
{
|
|
j.at("unit_cell").get_to(o.m_Unit_cell);
|
|
o.m_Unit_cellIsSet = true;
|
|
}
|
|
if(j.find("error_pixels") != j.end())
|
|
{
|
|
j.at("error_pixels").get_to(o.m_Error_pixels);
|
|
o.m_Error_pixelsIsSet = true;
|
|
}
|
|
if(j.find("saturated_pixels") != j.end())
|
|
{
|
|
j.at("saturated_pixels").get_to(o.m_Saturated_pixels);
|
|
o.m_Saturated_pixelsIsSet = true;
|
|
}
|
|
if(j.find("roi_beam_pixels") != j.end())
|
|
{
|
|
j.at("roi_beam_pixels").get_to(o.m_Roi_beam_pixels);
|
|
o.m_Roi_beam_pixelsIsSet = true;
|
|
}
|
|
if(j.find("roi_beam_sum") != j.end())
|
|
{
|
|
j.at("roi_beam_sum").get_to(o.m_Roi_beam_sum);
|
|
o.m_Roi_beam_sumIsSet = true;
|
|
}
|
|
|
|
}
|
|
|
|
std::string Measurement_statistics::getFilePrefix() const
|
|
{
|
|
return m_File_prefix;
|
|
}
|
|
void Measurement_statistics::setFilePrefix(std::string const& value)
|
|
{
|
|
m_File_prefix = value;
|
|
m_File_prefixIsSet = true;
|
|
}
|
|
bool Measurement_statistics::filePrefixIsSet() const
|
|
{
|
|
return m_File_prefixIsSet;
|
|
}
|
|
void Measurement_statistics::unsetFile_prefix()
|
|
{
|
|
m_File_prefixIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getRunNumber() const
|
|
{
|
|
return m_Run_number;
|
|
}
|
|
void Measurement_statistics::setRunNumber(int64_t const value)
|
|
{
|
|
m_Run_number = value;
|
|
m_Run_numberIsSet = true;
|
|
}
|
|
bool Measurement_statistics::runNumberIsSet() const
|
|
{
|
|
return m_Run_numberIsSet;
|
|
}
|
|
void Measurement_statistics::unsetRun_number()
|
|
{
|
|
m_Run_numberIsSet = false;
|
|
}
|
|
std::string Measurement_statistics::getExperimentGroup() const
|
|
{
|
|
return m_Experiment_group;
|
|
}
|
|
void Measurement_statistics::setExperimentGroup(std::string const& value)
|
|
{
|
|
m_Experiment_group = value;
|
|
m_Experiment_groupIsSet = true;
|
|
}
|
|
bool Measurement_statistics::experimentGroupIsSet() const
|
|
{
|
|
return m_Experiment_groupIsSet;
|
|
}
|
|
void Measurement_statistics::unsetExperiment_group()
|
|
{
|
|
m_Experiment_groupIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getImagesExpected() const
|
|
{
|
|
return m_Images_expected;
|
|
}
|
|
void Measurement_statistics::setImagesExpected(int64_t const value)
|
|
{
|
|
m_Images_expected = value;
|
|
m_Images_expectedIsSet = true;
|
|
}
|
|
bool Measurement_statistics::imagesExpectedIsSet() const
|
|
{
|
|
return m_Images_expectedIsSet;
|
|
}
|
|
void Measurement_statistics::unsetImages_expected()
|
|
{
|
|
m_Images_expectedIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getImagesCollected() const
|
|
{
|
|
return m_Images_collected;
|
|
}
|
|
void Measurement_statistics::setImagesCollected(int64_t const value)
|
|
{
|
|
m_Images_collected = value;
|
|
m_Images_collectedIsSet = true;
|
|
}
|
|
bool Measurement_statistics::imagesCollectedIsSet() const
|
|
{
|
|
return m_Images_collectedIsSet;
|
|
}
|
|
void Measurement_statistics::unsetImages_collected()
|
|
{
|
|
m_Images_collectedIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getImagesSent() const
|
|
{
|
|
return m_Images_sent;
|
|
}
|
|
void Measurement_statistics::setImagesSent(int64_t const value)
|
|
{
|
|
m_Images_sent = value;
|
|
m_Images_sentIsSet = true;
|
|
}
|
|
bool Measurement_statistics::imagesSentIsSet() const
|
|
{
|
|
return m_Images_sentIsSet;
|
|
}
|
|
void Measurement_statistics::unsetImages_sent()
|
|
{
|
|
m_Images_sentIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getImagesWritten() const
|
|
{
|
|
return m_Images_written;
|
|
}
|
|
void Measurement_statistics::setImagesWritten(int64_t const value)
|
|
{
|
|
m_Images_written = value;
|
|
m_Images_writtenIsSet = true;
|
|
}
|
|
bool Measurement_statistics::imagesWrittenIsSet() const
|
|
{
|
|
return m_Images_writtenIsSet;
|
|
}
|
|
void Measurement_statistics::unsetImages_written()
|
|
{
|
|
m_Images_writtenIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getImagesDiscardedLossyCompression() const
|
|
{
|
|
return m_Images_discarded_lossy_compression;
|
|
}
|
|
void Measurement_statistics::setImagesDiscardedLossyCompression(int64_t const value)
|
|
{
|
|
m_Images_discarded_lossy_compression = value;
|
|
m_Images_discarded_lossy_compressionIsSet = true;
|
|
}
|
|
bool Measurement_statistics::imagesDiscardedLossyCompressionIsSet() const
|
|
{
|
|
return m_Images_discarded_lossy_compressionIsSet;
|
|
}
|
|
void Measurement_statistics::unsetImages_discarded_lossy_compression()
|
|
{
|
|
m_Images_discarded_lossy_compressionIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getMaxImageNumberSent() const
|
|
{
|
|
return m_Max_image_number_sent;
|
|
}
|
|
void Measurement_statistics::setMaxImageNumberSent(int64_t const value)
|
|
{
|
|
m_Max_image_number_sent = value;
|
|
m_Max_image_number_sentIsSet = true;
|
|
}
|
|
bool Measurement_statistics::maxImageNumberSentIsSet() const
|
|
{
|
|
return m_Max_image_number_sentIsSet;
|
|
}
|
|
void Measurement_statistics::unsetMax_image_number_sent()
|
|
{
|
|
m_Max_image_number_sentIsSet = false;
|
|
}
|
|
float Measurement_statistics::getCollectionEfficiency() const
|
|
{
|
|
return m_Collection_efficiency;
|
|
}
|
|
void Measurement_statistics::setCollectionEfficiency(float const value)
|
|
{
|
|
m_Collection_efficiency = value;
|
|
m_Collection_efficiencyIsSet = true;
|
|
}
|
|
bool Measurement_statistics::collectionEfficiencyIsSet() const
|
|
{
|
|
return m_Collection_efficiencyIsSet;
|
|
}
|
|
void Measurement_statistics::unsetCollection_efficiency()
|
|
{
|
|
m_Collection_efficiencyIsSet = false;
|
|
}
|
|
float Measurement_statistics::getCompressionRatio() const
|
|
{
|
|
return m_Compression_ratio;
|
|
}
|
|
void Measurement_statistics::setCompressionRatio(float const value)
|
|
{
|
|
m_Compression_ratio = value;
|
|
m_Compression_ratioIsSet = true;
|
|
}
|
|
bool Measurement_statistics::compressionRatioIsSet() const
|
|
{
|
|
return m_Compression_ratioIsSet;
|
|
}
|
|
void Measurement_statistics::unsetCompression_ratio()
|
|
{
|
|
m_Compression_ratioIsSet = false;
|
|
}
|
|
bool Measurement_statistics::isCancelled() const
|
|
{
|
|
return m_Cancelled;
|
|
}
|
|
void Measurement_statistics::setCancelled(bool const value)
|
|
{
|
|
m_Cancelled = value;
|
|
m_CancelledIsSet = true;
|
|
}
|
|
bool Measurement_statistics::cancelledIsSet() const
|
|
{
|
|
return m_CancelledIsSet;
|
|
}
|
|
void Measurement_statistics::unsetCancelled()
|
|
{
|
|
m_CancelledIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getMaxReceiverDelay() const
|
|
{
|
|
return m_Max_receiver_delay;
|
|
}
|
|
void Measurement_statistics::setMaxReceiverDelay(int64_t const value)
|
|
{
|
|
m_Max_receiver_delay = value;
|
|
m_Max_receiver_delayIsSet = true;
|
|
}
|
|
bool Measurement_statistics::maxReceiverDelayIsSet() const
|
|
{
|
|
return m_Max_receiver_delayIsSet;
|
|
}
|
|
void Measurement_statistics::unsetMax_receiver_delay()
|
|
{
|
|
m_Max_receiver_delayIsSet = false;
|
|
}
|
|
float Measurement_statistics::getIndexingRate() const
|
|
{
|
|
return m_Indexing_rate;
|
|
}
|
|
void Measurement_statistics::setIndexingRate(float const value)
|
|
{
|
|
m_Indexing_rate = value;
|
|
m_Indexing_rateIsSet = true;
|
|
}
|
|
bool Measurement_statistics::indexingRateIsSet() const
|
|
{
|
|
return m_Indexing_rateIsSet;
|
|
}
|
|
void Measurement_statistics::unsetIndexing_rate()
|
|
{
|
|
m_Indexing_rateIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getDetectorWidth() const
|
|
{
|
|
return m_Detector_width;
|
|
}
|
|
void Measurement_statistics::setDetectorWidth(int64_t const value)
|
|
{
|
|
m_Detector_width = value;
|
|
m_Detector_widthIsSet = true;
|
|
}
|
|
bool Measurement_statistics::detectorWidthIsSet() const
|
|
{
|
|
return m_Detector_widthIsSet;
|
|
}
|
|
void Measurement_statistics::unsetDetector_width()
|
|
{
|
|
m_Detector_widthIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getDetectorHeight() const
|
|
{
|
|
return m_Detector_height;
|
|
}
|
|
void Measurement_statistics::setDetectorHeight(int64_t const value)
|
|
{
|
|
m_Detector_height = value;
|
|
m_Detector_heightIsSet = true;
|
|
}
|
|
bool Measurement_statistics::detectorHeightIsSet() const
|
|
{
|
|
return m_Detector_heightIsSet;
|
|
}
|
|
void Measurement_statistics::unsetDetector_height()
|
|
{
|
|
m_Detector_heightIsSet = false;
|
|
}
|
|
int64_t Measurement_statistics::getDetectorPixelDepth() const
|
|
{
|
|
return m_Detector_pixel_depth;
|
|
}
|
|
void Measurement_statistics::setDetectorPixelDepth(int64_t const value)
|
|
{
|
|
m_Detector_pixel_depth = value;
|
|
m_Detector_pixel_depthIsSet = true;
|
|
}
|
|
bool Measurement_statistics::detectorPixelDepthIsSet() const
|
|
{
|
|
return m_Detector_pixel_depthIsSet;
|
|
}
|
|
void Measurement_statistics::unsetDetector_pixel_depth()
|
|
{
|
|
m_Detector_pixel_depthIsSet = false;
|
|
}
|
|
float Measurement_statistics::getBkgEstimate() const
|
|
{
|
|
return m_Bkg_estimate;
|
|
}
|
|
void Measurement_statistics::setBkgEstimate(float const value)
|
|
{
|
|
m_Bkg_estimate = value;
|
|
m_Bkg_estimateIsSet = true;
|
|
}
|
|
bool Measurement_statistics::bkgEstimateIsSet() const
|
|
{
|
|
return m_Bkg_estimateIsSet;
|
|
}
|
|
void Measurement_statistics::unsetBkg_estimate()
|
|
{
|
|
m_Bkg_estimateIsSet = false;
|
|
}
|
|
std::string Measurement_statistics::getUnitCell() const
|
|
{
|
|
return m_Unit_cell;
|
|
}
|
|
void Measurement_statistics::setUnitCell(std::string const& value)
|
|
{
|
|
m_Unit_cell = value;
|
|
m_Unit_cellIsSet = true;
|
|
}
|
|
bool Measurement_statistics::unitCellIsSet() const
|
|
{
|
|
return m_Unit_cellIsSet;
|
|
}
|
|
void Measurement_statistics::unsetUnit_cell()
|
|
{
|
|
m_Unit_cellIsSet = false;
|
|
}
|
|
float Measurement_statistics::getErrorPixels() const
|
|
{
|
|
return m_Error_pixels;
|
|
}
|
|
void Measurement_statistics::setErrorPixels(float const value)
|
|
{
|
|
m_Error_pixels = value;
|
|
m_Error_pixelsIsSet = true;
|
|
}
|
|
bool Measurement_statistics::errorPixelsIsSet() const
|
|
{
|
|
return m_Error_pixelsIsSet;
|
|
}
|
|
void Measurement_statistics::unsetError_pixels()
|
|
{
|
|
m_Error_pixelsIsSet = false;
|
|
}
|
|
float Measurement_statistics::getSaturatedPixels() const
|
|
{
|
|
return m_Saturated_pixels;
|
|
}
|
|
void Measurement_statistics::setSaturatedPixels(float const value)
|
|
{
|
|
m_Saturated_pixels = value;
|
|
m_Saturated_pixelsIsSet = true;
|
|
}
|
|
bool Measurement_statistics::saturatedPixelsIsSet() const
|
|
{
|
|
return m_Saturated_pixelsIsSet;
|
|
}
|
|
void Measurement_statistics::unsetSaturated_pixels()
|
|
{
|
|
m_Saturated_pixelsIsSet = false;
|
|
}
|
|
float Measurement_statistics::getRoiBeamPixels() const
|
|
{
|
|
return m_Roi_beam_pixels;
|
|
}
|
|
void Measurement_statistics::setRoiBeamPixels(float const value)
|
|
{
|
|
m_Roi_beam_pixels = value;
|
|
m_Roi_beam_pixelsIsSet = true;
|
|
}
|
|
bool Measurement_statistics::roiBeamPixelsIsSet() const
|
|
{
|
|
return m_Roi_beam_pixelsIsSet;
|
|
}
|
|
void Measurement_statistics::unsetRoi_beam_pixels()
|
|
{
|
|
m_Roi_beam_pixelsIsSet = false;
|
|
}
|
|
float Measurement_statistics::getRoiBeamSum() const
|
|
{
|
|
return m_Roi_beam_sum;
|
|
}
|
|
void Measurement_statistics::setRoiBeamSum(float const value)
|
|
{
|
|
m_Roi_beam_sum = value;
|
|
m_Roi_beam_sumIsSet = true;
|
|
}
|
|
bool Measurement_statistics::roiBeamSumIsSet() const
|
|
{
|
|
return m_Roi_beam_sumIsSet;
|
|
}
|
|
void Measurement_statistics::unsetRoi_beam_sum()
|
|
{
|
|
m_Roi_beam_sumIsSet = false;
|
|
}
|
|
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|