aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-12-12 15:31:40 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit8b320a3c58e8644c32646f79fdc1c65116ea4a0e (patch)
treec8c79b7a82fc6c0120b10b844dcae20b6260640a
parent30f5b6bebbbb1b2895f9dac6e5b0899c04b273a9 (diff)
Show the list of reflections if scaling gives NAN (only if the list is short)
-rw-r--r--src/scaling.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scaling.c b/src/scaling.c
index 02617ba8..168531e8 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -287,6 +287,12 @@ int linear_scale(const RefList *list1, const RefList *list2, double *G)
if ( isnan(*G) ) {
ERROR("Scaling gave NaN (%i pairs)\n", n);
*G = 1.0;
+ if ( n < 10 ) {
+ int i;
+ for ( i=0; i<n; i++ ) {
+ STATUS("%i %e %e %e\n", i, x[i], y[i], w[n]);
+ }
+ }
return 1;
}