diff options
author | Thomas White <taw@physics.org> | 2010-06-23 16:08:43 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:51 +0100 |
commit | ac5c6c8bcf1b870b4049aeb290f4af3c49086076 (patch) | |
tree | e0f40d51259f0352efef030d4a07f71f64b66952 /src/process_hkl.c | |
parent | 64ebbdb6f7b7a7c11e289004a8d8246c4728334b (diff) |
process_hkl: Don't complain so loudly about patterns with no f0
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |