diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 5a18b99f5..c9cb73b51 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,7 +3,7 @@ ### 1.0.0-rc.185 -* jfjoch_broker: The master file records the unit cell given for the collection, not the mean of the per-image refined cells. +* jfjoch_broker: The master file records the unit cell given for the collection, not the mean of the per-image refined cells; the redundant `input_unit_cell` is no longer written. ### 1.0.0-rc.184 diff --git a/docs/HDF5.md b/docs/HDF5.md index cbf9d5db6..ddbc515dd 100644 --- a/docs/HDF5.md +++ b/docs/HDF5.md @@ -298,7 +298,6 @@ DIALS/dxtbx reads it (one panel per module). | `temperature` | NXmx | K | | `transformations/` (NXtransformations) | NXmx | the sample chain, written in mounting order; hard-linked as `/entry/sample/goniometer` | | `unit_cell` | base | `[a, b, c, α, β, γ]` | -| `input_unit_cell` | | the cell the run was given (`-C`), where there was one, in the same layout | | `unit_cell_esd` | | e.s.d.s of `unit_cell`, in its order `[σa, σb, σc, σα, σβ, σγ]` (Angstrom, degrees; zero for an angle the space group fixes); rotation runs analysed by rugnux, offline or in the broker | | `space_group_number` | base | International Tables number | | `space_group` | base | extended Hermann-Mauguin name, e.g. `P 43 21 2`, `R 3:H` — this is the field that carries the **setting**, and the one the reader takes the group from; the number alone always reads back as the reference setting | diff --git a/writer/HDF5NXmx.cpp b/writer/HDF5NXmx.cpp index ba7df7ceb..e8af8eb5e 100644 --- a/writer/HDF5NXmx.cpp +++ b/writer/HDF5NXmx.cpp @@ -821,24 +821,18 @@ void NXmx::Sample(const StartMessage &start, const EndMessage &end) { } std::optional unit_cell; - std::optional input_unit_cell; if (end.unit_cell) unit_cell = end.unit_cell; else if (end.rotation_lattice) unit_cell = end.rotation_lattice->GetUnitCell(); - else if (start.unit_cell) { + else if (start.unit_cell) unit_cell = start.unit_cell; - input_unit_cell = start.unit_cell; - } - + if (unit_cell) SaveUnitCell(group, "unit_cell", unit_cell.value()); if (end.unit_cell_esd) SaveUnitCell(group, "unit_cell_esd", end.unit_cell_esd.value()); - if (input_unit_cell) - SaveUnitCell(group, "input_unit_cell", input_unit_cell.value()); - if (end.rotation_lattice) { group.SaveVector("ub_matrix", end.rotation_lattice->GetUBMatrix(),