aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-06 16:31:55 +0200
committerThomas White <taw@physics.org>2010-04-06 17:07:53 +0200
commit33c6e3f3250c983a13f9967b4ae4923fa7b5cd18 (patch)
treeb0707b930211c4a7b7b4e69d30f721e383c99139 /src/indexamajig.c
parentb2a409dc46dbd1a1636cba61eda573fc7e379f41 (diff)
Include filename in --near-bragg output
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 3668adf8..f4733883 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -188,6 +188,7 @@ static struct image *get_simage(struct image *template, int alternate)
image->lambda = ph_en_to_lambda(eV_to_J(1.8e3));
image->features = template->features;
+ image->filename = template->filename;
return image;
}
@@ -245,8 +246,9 @@ static void *process_image(void *pargsv)
image.data = NULL;
image.indexed_cell = NULL;
image.id = pargs->id;
+ image.filename = filename;
- STATUS("Processing '%s'\n", filename);
+ STATUS("Processing '%s'\n", image.filename);
result = malloc(sizeof(*result));
if ( result == NULL ) return NULL;