Modifications after CristallinaMX beamtime
This commit is contained in:
@@ -994,21 +994,21 @@ bool DiffractionExperiment::IsUsingGainHG0() const {
|
||||
return use_gain_hg0;
|
||||
}
|
||||
|
||||
DiffractionExperiment &DiffractionExperiment::HeaderAppendix(const std::string &input) {
|
||||
DiffractionExperiment &DiffractionExperiment::HeaderAppendix(const nlohmann::json &input) {
|
||||
dataset.HeaderAppendix(input);
|
||||
return *this;
|
||||
}
|
||||
|
||||
DiffractionExperiment &DiffractionExperiment::ImageAppendix(const std::string &input) {
|
||||
DiffractionExperiment &DiffractionExperiment::ImageAppendix(const nlohmann::json &input) {
|
||||
dataset.ImageAppendix(input);
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::string DiffractionExperiment::GetHeaderAppendix() const {
|
||||
const nlohmann::json& DiffractionExperiment::GetHeaderAppendix() const {
|
||||
return dataset.GetHeaderAppendix();
|
||||
}
|
||||
|
||||
std::string DiffractionExperiment::GetImageAppendix() const {
|
||||
const nlohmann::json& DiffractionExperiment::GetImageAppendix() const {
|
||||
return dataset.GetImageAppendix();
|
||||
}
|
||||
|
||||
@@ -1044,7 +1044,11 @@ uint64_t DiffractionExperiment::GetRunNumber() const {
|
||||
}
|
||||
|
||||
std::string DiffractionExperiment::GetRunName() const {
|
||||
return std::to_string(series_id) + ": " + dataset.GetFilePrefix();
|
||||
auto run_name = dataset.GetRunName();
|
||||
if (run_name)
|
||||
return run_name.value();
|
||||
else
|
||||
return std::to_string(series_id) + ":" + dataset.GetFilePrefix();
|
||||
}
|
||||
|
||||
DiffractionExperiment &DiffractionExperiment::IncrementRunNumber() {
|
||||
|
||||
Reference in New Issue
Block a user