From f6e38e3bb7b55d298fb189d4a547e5e6a3f9d5db Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 8 Feb 2021 17:28:10 +0100 Subject: Expose fom_is_anomalous() --- libcrystfel/src/fom.c | 4 ++-- libcrystfel/src/fom.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libcrystfel/src/fom.c b/libcrystfel/src/fom.c index 3e734bda..2227a84c 100644 --- a/libcrystfel/src/fom.c +++ b/libcrystfel/src/fom.c @@ -824,7 +824,7 @@ static int calculate_possible(struct fom_context *fctx, } -static int is_anomalous(enum fom_type fom) +int fom_is_anomalous(enum fom_type fom) { switch ( fom ) { @@ -970,7 +970,7 @@ struct fom_context *fom_calculate(RefList *list1, RefList *list2, UnitCell *cell continue; } - if ( is_anomalous(fom) ) { + if ( fom_is_anomalous(fom) ) { signed int hb, kb, lb; diff --git a/libcrystfel/src/fom.h b/libcrystfel/src/fom.h index c2a340a4..c416043c 100644 --- a/libcrystfel/src/fom.h +++ b/libcrystfel/src/fom.h @@ -133,4 +133,6 @@ extern int fom_shell_num_reflections(struct fom_context *fctx, int i); extern int fom_overall_num_possible(struct fom_context *fctx); extern int fom_shell_num_possible(struct fom_context *fctx, int i); +extern int fom_is_anomalous(enum fom_type f); + #endif /* FOM */ -- cgit v1.2.3