broker rugnux live: the scan result carries rugnux's rotation lattice
The receiver's own rotation indexer sees no image in a rugnux-live collection, so the scan result the broker serves (/result/scan) went without the rotation lattice, cell and Bravais symbol. They are now taken from rugnux's end message, as the end message itself already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PXc1zD1yxHqaR1DGdCTHL4
This commit is contained in:
1 parent
14ee27f362
commit
e3d6416ff3
2 files changed
+11
-1
No files matched your search
@@ -557,6 +557,16 @@ float JFJochReceiverRugnux::GetEfficiency() const {
|
||||
JFJochReceiverOutput JFJochReceiverRugnux::GetFinalStatistics() const {
|
||||
JFJochReceiverOutput ret = JFJochReceiver::GetFinalStatistics();
|
||||
ret.analysis_warning = skipped_warning;
|
||||
// The receiver's own rotation indexer sees no image here: the lattice is rugnux's.
|
||||
std::unique_lock ul(rugnux_m);
|
||||
if (rugnux_result) {
|
||||
const EndMessage &r = rugnux_result->end_message;
|
||||
ret.scan_result.rotation_lattice = r.rotation_lattice;
|
||||
if (r.rotation_lattice_type) {
|
||||
ret.scan_result.rotation_crystal_system = r.rotation_lattice_type->crystal_system;
|
||||
ret.scan_result.rotation_centering = r.rotation_lattice_type->centering;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class JFJochReceiverRugnux : public JFJochReceiver {
|
||||
std::latch measurement_started;
|
||||
std::latch forward_started;
|
||||
|
||||
std::mutex rugnux_m;
|
||||
mutable std::mutex rugnux_m;
|
||||
Rugnux *rugnux = nullptr; // while it runs, for Cut
|
||||
Rugnux *probe = nullptr; // the same for the lattice probe
|
||||
std::optional<ProcessResult> rugnux_result;
|
||||
|
||||
Reference in new issue
Block a user