Skip to content
GitLab
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
92c8e54d
Commit
92c8e54d
authored
Nov 14, 2011
by
Thomas White
Browse files
Check that geometry size matches image size
parent
1bad219c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/indexamajig.c
View file @
92c8e54d
...
...
@@ -278,6 +278,20 @@ static void process_image(void *pp, int cookie)
}
hdf5_read
(
hdfile
,
&
image
,
pargs
->
static_args
.
config_satcorr
);
if
(
(
image
.
width
!=
image
.
det
->
max_fs
+
1
)
||
(
image
.
height
!=
image
.
det
->
max_ss
+
1
)
)
{
ERROR
(
"Image size doesn't match geometry size"
" - rejecting image.
\n
"
);
ERROR
(
"Image size: %i,%i. Geometry size: %i,%i
\n
"
,
image
.
width
,
image
.
height
,
image
.
det
->
max_fs
+
1
,
image
.
det
->
max_ss
+
1
);
hdfile_close
(
hdfile
);
free_detector_geometry
(
image
.
det
);
return
;
}
if
(
image
.
lambda
<
0
.
0
)
{
if
(
beam
!=
NULL
)
{
ERROR
(
"Using nominal photon enery of %.2f eV
\n
"
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment