aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-08 17:28:10 +0100
committerThomas White <taw@physics.org>2021-02-08 17:28:10 +0100
commitf6e38e3bb7b55d298fb189d4a547e5e6a3f9d5db (patch)
treee6ec4adea9a774299e314a9e112985acb34ba463 /libcrystfel
parentff2efa35e83f9973b90d9bca749d6da585158b23 (diff)
Expose fom_is_anomalous()
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/fom.c4
-rw-r--r--libcrystfel/src/fom.h2
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 */