From ac5c6c8bcf1b870b4049aeb290f4af3c49086076 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 23 Jun 2010 16:08:43 +0200 Subject: process_hkl: Don't complain so loudly about patterns with no f0 --- src/process_hkl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/process_hkl.c') diff --git a/src/process_hkl.c b/src/process_hkl.c index 32eaa608..77d5056a 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -250,6 +250,7 @@ int main(int argc, char *argv[]) char *pdb = NULL; float f0; int f0_valid; + int n_nof0 = 0; /* Long options */ const struct option longopts[] = { @@ -397,7 +398,7 @@ int main(int argc, char *argv[]) /* Assume a default I0 if we don't have one by now */ if ( config_scale && !f0_valid ) { - ERROR("No f0 value.\n"); + n_nof0++; f0 = 1.0; } @@ -436,7 +437,6 @@ int main(int argc, char *argv[]) if ( strncmp(line, "f0 = ", 5) == 0 ) { r = sscanf(line, "f0 = %f", &f0); if ( r != 1 ) { - ERROR("Couldn't understand f0 line.\n"); f0 = 1.0; f0_valid = 0; continue; @@ -478,6 +478,7 @@ int main(int argc, char *argv[]) } STATUS("There were %u patterns.\n", n_patterns); + STATUS("%i had no f0 valid value.\n", n_nof0); return 0; } -- cgit v1.2.3