diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/detector.h | 2 | ||||
-rw-r--r-- | libcrystfel/src/reflist-utils.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/detector.h b/libcrystfel/src/detector.h index b740965c..1cd64716 100644 --- a/libcrystfel/src/detector.h +++ b/libcrystfel/src/detector.h @@ -149,6 +149,8 @@ extern double smallest_q(struct image *image); extern struct panel *find_panel_by_name(struct detector *det, const char *name); +extern int write_detector_geometry(const char *filename, struct detector *det); + #ifdef __cplusplus } #endif diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c index 1404b545..2e6715f2 100644 --- a/libcrystfel/src/reflist-utils.c +++ b/libcrystfel/src/reflist-utils.c @@ -292,9 +292,7 @@ RefList *read_reflections_from_file(FILE *fh) set_redundancy(refl, cts); ph = strtod(phs, &v); - if ( v != NULL ) set_phase(refl, deg2rad(ph)); - - /* The 1/d value is actually ignored. */ + if ( v != phs ) set_phase(refl, deg2rad(ph)); } |