Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
d4873dff
Commit
d4873dff
authored
Mar 09, 2020
by
Thomas White
Browse files
integrate_rings_once: Handle case where reflection is negative by < 1 photon
parent
118835f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcrystfel/src/integration.c
View file @
d4873dff
...
...
@@ -1487,6 +1487,11 @@ static int integrate_rings_once(Reflection *refl, struct image *image,
* appropriate size */
if
(
intensity
<
-
aduph
)
{
sig2_poisson
=
-
aduph
*
intensity
;
}
else
if
(
intensity
<
0
.
0
)
{
/* If the intensity is negative (by less than one
* photon), assume the reflection is very weak and
* therefore has a Poisson error of one photon. */
sig2_poisson
=
aduph
;
}
sigma
=
sqrt
(
sig2_poisson
+
bx
->
m
*
sig2_bg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment