Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CrystFEL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oleksii Turkot
CrystFEL
Commits
89b372a8
Commit
89b372a8
authored
12 years ago
by
Thomas White
Browse files
Options
Downloads
Patches
Plain Diff
Fix iteration bounds for peak integration
parent
902378fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcrystfel/src/peaks.c
+4
-4
4 additions, 4 deletions
libcrystfel/src/peaks.c
with
4 additions
and
4 deletions
libcrystfel/src/peaks.c
+
4
−
4
View file @
89b372a8
...
...
@@ -185,8 +185,8 @@ static int integrate_peak(struct image *image, int cfs, int css,
out_lim_sq
=
pow
(
ir_out
,
2
.
0
);
/* Estimate the background */
for
(
fs
=-
ir_out
;
fs
<+
ir_out
;
fs
++
)
{
for
(
ss
=-
ir_out
;
ss
<+
ir_out
;
ss
++
)
{
for
(
fs
=-
ir_out
;
fs
<
=
+
ir_out
;
fs
++
)
{
for
(
ss
=-
ir_out
;
ss
<
=
+
ir_out
;
ss
++
)
{
double
val
;
uint16_t
flags
;
...
...
@@ -234,8 +234,8 @@ static int integrate_peak(struct image *image, int cfs, int css,
pk_total
=
0
.
0
;
pk_counts
=
0
;
fsct
=
0
.
0
;
ssct
=
0
.
0
;
for
(
fs
=-
ir_inn
;
fs
<+
ir_inn
;
fs
++
)
{
for
(
ss
=-
ir_inn
;
ss
<+
ir_inn
;
ss
++
)
{
for
(
fs
=-
ir_inn
;
fs
<
=
+
ir_inn
;
fs
++
)
{
for
(
ss
=-
ir_inn
;
ss
<
=
+
ir_inn
;
ss
++
)
{
double
val
;
uint16_t
flags
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment