aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/crystal.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-09 06:23:27 +0100
committerThomas White <taw@physics.org>2014-11-09 06:23:27 +0100
commitecce96b99c98c2b5efadbf186d2085115dbc142a (patch)
tree4cf77532880d9a68a4bf3e48990d14867055e269 /libcrystfel/src/crystal.c
parent356733c418dacf19d3930e37e08ddcdc17311c3a (diff)
Record number of implausibly negative reflections in stream
Diffstat (limited to 'libcrystfel/src/crystal.c')
-rw-r--r--libcrystfel/src/crystal.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcrystfel/src/crystal.c b/libcrystfel/src/crystal.c
index 02255110..c6e0a9dd 100644
--- a/libcrystfel/src/crystal.c
+++ b/libcrystfel/src/crystal.c
@@ -63,6 +63,8 @@ struct _crystal
/* Integrated (or about-to-be-integrated) reflections */
RefList *reflections;
long long int n_saturated; /* Number of overloads */
+ long long int n_implausible; /* Number of implausibly
+ * negative reflectionss */
/* User flag, e.g. for "this is a bad crystal". */
int user_flag;
@@ -91,6 +93,7 @@ Crystal *crystal_new()
cryst->reflections = NULL;
cryst->resolution_limit = 0.0;
cryst->n_saturated = 0;
+ cryst->n_implausible = 0;
return cryst;
}
@@ -167,6 +170,12 @@ long long int crystal_get_num_saturated_reflections(Crystal *cryst)
}
+long long int crystal_get_num_implausible_reflections(Crystal *cryst)
+{
+ return cryst->n_implausible;
+}
+
+
struct image *crystal_get_image(Crystal *cryst)
{
return cryst->image;
@@ -224,6 +233,12 @@ void crystal_set_num_saturated_reflections(Crystal *cryst, long long int n)
}
+void crystal_set_num_implausible_reflections(Crystal *cryst, long long int n)
+{
+ cryst->n_implausible = n;
+}
+
+
void crystal_set_image(Crystal *cryst, struct image *image)
{
cryst->image = image;