Build Packages / Create release (push) Successful in 17s
Build Packages / build:viewer:macos-arm64:nocuda (push) Successful in 3m22s
Build Packages / build:rugnux:macos-arm64:nocuda (push) Successful in 2m37s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 9m33s
Build Packages / build:rugnux:linux-x86_64:cuda (push) Successful in 10m39s
Build Packages / build:viewer:linux-x86_64:nocuda (push) Successful in 11m4s
Build Packages / build:viewer:linux-x86_64:cuda (push) Successful in 13m19s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 17m37s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 18m49s
Build Packages / build:viewer:windows-x86_64:nocuda (push) Successful in 19m10s
Build Packages / build:viewer:windows-x86_64:cuda (push) Successful in 24m26s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 25m31s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 18m54s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 20m45s
Build Packages / Generate python client (push) Successful in 37s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 20m20s
Build Packages / Build documentation (push) Successful in 1m32s
Build Packages / build:rugnux:windows-x86_64:cuda (push) Successful in 14m37s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 21m6s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 19m49s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 20m29s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 17m2s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 14m27s
Build Packages / Unit tests (push) Successful in 1h18m12s
* Rugnux: Performance improvements on GPU and CPU (more of the pre-scan and of scaling on the GPU, faster CPU spot finding and crystal refinement), with unchanged results. * Rugnux: More robust processing - patches of persistently hot pixels are masked, an inconsistent merge triggers a retry at the measured beam centre, and builds targeting different CPU levels give the same results. * Rugnux: Improved scaling and merging - reflections with an overloaded pixel are dropped, as in XDS, sparse rotation sweeps are scaled more reliably, and French-Wilson amplitudes use an anisotropic Wilson prior. * Rugnux: Improved space-group determination - glide planes in groups without a centre of symmetry, screw axes from short or weak axial rows kept when a higher group is adopted, and more reliable decisions on twinned and pseudo-symmetric crystals. * Rugnux: Improved small-molecule processing - spots that grow wider than the integration disk and split spots are integrated over their measured footprint, sparse lattices are integrated on every frame, and the `.hkl` file holds unmerged scaled reflections (SHELX HKLF 4). * Rugnux: Reads Rigaku d*TREK SMV images (Saturn CCD), including detector 2theta and encoded pixel overflows; home-source (rotating-anode) datasets were added to the validation battery. * jfjoch_viewer: Fixed processing failing at the end with "Wrong JPEG library version" on Linux; the merge window shows the space group with proper subscripts and a checklist of crystal pathologies. Reviewed-on: #84 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
193 lines
5.9 KiB
C++
193 lines
5.9 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.174
|
|
* 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 "Instrument_metadata.h"
|
|
#include "Helpers.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
Instrument_metadata::Instrument_metadata()
|
|
{
|
|
m_Source_name = "";
|
|
m_Source_type = "";
|
|
m_Source_typeIsSet = false;
|
|
m_Instrument_name = "";
|
|
m_Pulsed_source = false;
|
|
m_Pulsed_sourceIsSet = false;
|
|
m_Electron_source = false;
|
|
m_Electron_sourceIsSet = false;
|
|
|
|
}
|
|
|
|
void Instrument_metadata::validate() const
|
|
{
|
|
std::stringstream msg;
|
|
if (!validate(msg))
|
|
{
|
|
throw org::openapitools::server::helpers::ValidationException(msg.str());
|
|
}
|
|
}
|
|
|
|
bool Instrument_metadata::validate(std::stringstream& msg) const
|
|
{
|
|
return validate(msg, "");
|
|
}
|
|
|
|
bool Instrument_metadata::validate(std::stringstream& msg, const std::string& pathPrefix) const
|
|
{
|
|
bool success = true;
|
|
const std::string _pathPrefix = pathPrefix.empty() ? "Instrument_metadata" : pathPrefix;
|
|
|
|
|
|
return success;
|
|
}
|
|
|
|
bool Instrument_metadata::operator==(const Instrument_metadata& rhs) const
|
|
{
|
|
return
|
|
|
|
|
|
(getSourceName() == rhs.getSourceName())
|
|
&&
|
|
|
|
|
|
((!sourceTypeIsSet() && !rhs.sourceTypeIsSet()) || (sourceTypeIsSet() && rhs.sourceTypeIsSet() && getSourceType() == rhs.getSourceType())) &&
|
|
|
|
(getInstrumentName() == rhs.getInstrumentName())
|
|
&&
|
|
|
|
|
|
((!pulsedSourceIsSet() && !rhs.pulsedSourceIsSet()) || (pulsedSourceIsSet() && rhs.pulsedSourceIsSet() && isPulsedSource() == rhs.isPulsedSource())) &&
|
|
|
|
|
|
((!electronSourceIsSet() && !rhs.electronSourceIsSet()) || (electronSourceIsSet() && rhs.electronSourceIsSet() && isElectronSource() == rhs.isElectronSource()))
|
|
|
|
;
|
|
}
|
|
|
|
bool Instrument_metadata::operator!=(const Instrument_metadata& rhs) const
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
void to_json(nlohmann::json& j, const Instrument_metadata& o)
|
|
{
|
|
j = nlohmann::json::object();
|
|
j["source_name"] = o.m_Source_name;
|
|
if(o.sourceTypeIsSet())
|
|
j["source_type"] = o.m_Source_type;
|
|
j["instrument_name"] = o.m_Instrument_name;
|
|
if(o.pulsedSourceIsSet())
|
|
j["pulsed_source"] = o.m_Pulsed_source;
|
|
if(o.electronSourceIsSet())
|
|
j["electron_source"] = o.m_Electron_source;
|
|
|
|
}
|
|
|
|
void from_json(const nlohmann::json& j, Instrument_metadata& o)
|
|
{
|
|
j.at("source_name").get_to(o.m_Source_name);
|
|
if(j.find("source_type") != j.end())
|
|
{
|
|
j.at("source_type").get_to(o.m_Source_type);
|
|
o.m_Source_typeIsSet = true;
|
|
}
|
|
j.at("instrument_name").get_to(o.m_Instrument_name);
|
|
if(j.find("pulsed_source") != j.end())
|
|
{
|
|
j.at("pulsed_source").get_to(o.m_Pulsed_source);
|
|
o.m_Pulsed_sourceIsSet = true;
|
|
}
|
|
if(j.find("electron_source") != j.end())
|
|
{
|
|
j.at("electron_source").get_to(o.m_Electron_source);
|
|
o.m_Electron_sourceIsSet = true;
|
|
}
|
|
|
|
}
|
|
|
|
std::string Instrument_metadata::getSourceName() const
|
|
{
|
|
return m_Source_name;
|
|
}
|
|
void Instrument_metadata::setSourceName(std::string const& value)
|
|
{
|
|
m_Source_name = value;
|
|
}
|
|
std::string Instrument_metadata::getSourceType() const
|
|
{
|
|
return m_Source_type;
|
|
}
|
|
void Instrument_metadata::setSourceType(std::string const& value)
|
|
{
|
|
m_Source_type = value;
|
|
m_Source_typeIsSet = true;
|
|
}
|
|
bool Instrument_metadata::sourceTypeIsSet() const
|
|
{
|
|
return m_Source_typeIsSet;
|
|
}
|
|
void Instrument_metadata::unsetSource_type()
|
|
{
|
|
m_Source_typeIsSet = false;
|
|
}
|
|
std::string Instrument_metadata::getInstrumentName() const
|
|
{
|
|
return m_Instrument_name;
|
|
}
|
|
void Instrument_metadata::setInstrumentName(std::string const& value)
|
|
{
|
|
m_Instrument_name = value;
|
|
}
|
|
bool Instrument_metadata::isPulsedSource() const
|
|
{
|
|
return m_Pulsed_source;
|
|
}
|
|
void Instrument_metadata::setPulsedSource(bool const value)
|
|
{
|
|
m_Pulsed_source = value;
|
|
m_Pulsed_sourceIsSet = true;
|
|
}
|
|
bool Instrument_metadata::pulsedSourceIsSet() const
|
|
{
|
|
return m_Pulsed_sourceIsSet;
|
|
}
|
|
void Instrument_metadata::unsetPulsed_source()
|
|
{
|
|
m_Pulsed_sourceIsSet = false;
|
|
}
|
|
bool Instrument_metadata::isElectronSource() const
|
|
{
|
|
return m_Electron_source;
|
|
}
|
|
void Instrument_metadata::setElectronSource(bool const value)
|
|
{
|
|
m_Electron_source = value;
|
|
m_Electron_sourceIsSet = true;
|
|
}
|
|
bool Instrument_metadata::electronSourceIsSet() const
|
|
{
|
|
return m_Electron_sourceIsSet;
|
|
}
|
|
void Instrument_metadata::unsetElectron_source()
|
|
{
|
|
m_Electron_sourceIsSet = false;
|
|
}
|
|
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|