aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bücker <robert.buecker@mpsd.mpg.de>2020-08-05 11:18:04 +0200
committerRobert Bücker <robert.buecker@mpsd.mpg.de>2020-08-05 11:18:04 +0200
commit0b6ce92886424133a6a61bc0613fe89c2d359fe2 (patch)
tree62071c9fb297b22a27f789308639ca6cd0b6424e
parentf34c46f087108a293d471eec4235b292a13daa69 (diff)
adding some versbosity to file indexer
-rw-r--r--libcrystfel/src/index.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 3ac3dad5..ddd25a4b 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -184,9 +184,12 @@ void *skip_prepare(char *solution_filename, UnitCell *cell)
fh = fopen(path_to_sol, "r");
if ( fh == NULL ) {
- ERROR("indexing.sol not found by skip_prepare\n");
+ ERROR("%s not found by skip_prepare in %s\n", path_to_sol, cwd);
return 0;
}
+ else {
+ fprintf("Reading solution file %s from %s\n", path_to_sol, cwd);
+ }
nlines = ncrystals_in_sol(path_to_sol);
nparams_per_line = 11; //There are 9 vector component and 2 detector shifts excluding filename and event
@@ -310,6 +313,8 @@ int ncrystals_in_sol(char *path)
// Close the file
fclose(fh);
+ printf("Found indexing file %s containing %d lines. \n", path, count);
+
return count;
}