GUI: export to PHENIX uses the wrong unit cell
From PeakExporter::saveToSCAMerged
:
for (const nsx::MergedPeak& peak : mergedData->mergedPeakSet()) {
for (const Peak3D* unmerged_peak : peak.peaks())
peak_vector.push_back(unmerged_peak);
}
const UnitCell* unitCell = peak_vector.at(0)->unitCell();
i.e. we just generate a list of peaks and use the unit cell from the first one --- this is disastrous!