From 0b6ce92886424133a6a61bc0613fe89c2d359fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Bu=CC=88cker?= Date: Wed, 5 Aug 2020 11:18:04 +0200 Subject: adding some versbosity to file indexer --- libcrystfel/src/index.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3