All checks were successful
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m8s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 12m57s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m55s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 12m0s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m30s
Build Packages / Generate python client (push) Successful in 20s
Build Packages / Unit tests (push) Has been skipped
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 39s
Build Packages / build:rpm (rocky8) (push) Successful in 9m23s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 10m33s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 8m2s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m42s
Build Packages / build:rpm (rocky9) (push) Successful in 9m38s
This is an UNSTABLE release. This version adds scalign and merging. These are experimental at the moment, and should not be used for production analysis. If things go wrong with analysis, it is better to revert to 1.0.0-rc.124. * jfjoch_broker: Improve logic on switching on/off spot finding * jfjoch_broker: Increase maximum spot count for FFBIDX to 65536 * jfjoch_broker: Increase default maximum unit cell for FFT to 500 A (could have performance impact, TBD) * jfjoch_process: Add scalign and merging functionality - program is experimental at the moment and should not be used for production analysis * jfjoch_viewer: Display partiality and reciprocal Lorentz-polarization correction for each reflection * jfjoch_writer: Save more information about each reflection Reviewed-on: #32 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
48 lines
1.7 KiB
C++
48 lines
1.7 KiB
C++
// SPDX-FileCopyrightText: 2025 Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <ostream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <optional>
|
|
|
|
#include "scale_merge/FrenchWilson.h"
|
|
#include "../common/UnitCell.h"
|
|
#include "../symmetry/gemmi/symmetry.hpp"
|
|
|
|
/// Metadata needed to write a meaningful mmCIF reflection file.
|
|
struct MmcifMetadata {
|
|
// Required
|
|
UnitCell unit_cell{};
|
|
std::string space_group_name; // e.g. "P 21 21 21"
|
|
int space_group_number = 1;
|
|
|
|
// Optional but recommended
|
|
std::string data_block_name = "jfjoch"; // CIF data_<name>
|
|
std::string detector_name; // e.g. "JUNGFRAU 4M"
|
|
std::optional<float> wavelength_A; // incident wavelength
|
|
std::optional<float> detector_distance_mm;
|
|
std::optional<float> sample_temperature_K;
|
|
std::optional<std::string> sample_name;
|
|
std::optional<std::string> software_version; // jfjoch version string
|
|
|
|
std::optional<std::string> source;
|
|
std::optional<std::string> beamline;
|
|
};
|
|
|
|
/// Write a PDBx/mmCIF reflection file (containing _refln loop with F/sigmaF/I/sigmaI)
|
|
/// to the given output stream.
|
|
///
|
|
/// The file follows the conventions expected by CCP4/CCTBX/Phenix for
|
|
/// structure-factor mmCIF files.
|
|
void WriteMmcifReflections(std::ostream& out,
|
|
const std::vector<FrenchWilsonReflection>& reflections,
|
|
const MmcifMetadata& meta);
|
|
|
|
/// Convenience overload that writes to a file path.
|
|
/// Throws std::runtime_error on I/O failure.
|
|
void WriteMmcifReflections(const std::string& path,
|
|
const std::vector<FrenchWilsonReflection>& reflections,
|
|
const MmcifMetadata& meta); |