From 88ceb8bf832fd96d980ed1c3223e26641856b413 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 27 Jul 2023 13:59:44 +0200 Subject: Don't attempt to write Mille data without geometry groups --- libcrystfel/src/crystfel-mille.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/crystfel-mille.c b/libcrystfel/src/crystfel-mille.c index 3acb412a..f08c8797 100644 --- a/libcrystfel/src/crystfel-mille.c +++ b/libcrystfel/src/crystfel-mille.c @@ -64,6 +64,9 @@ void write_mille(Mille *mille, int n, UnitCell *cell, { int i; + /* No groups -> no refinement */ + if ( image->detgeom->top_group == NULL ) return; + /* Local parameters */ const enum gparam rvl[] = { -- cgit v1.2.3