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
MPI-Dortmund
sphire
eman2mirror
Commits
dc41083d
Commit
dc41083d
authored
Jun 06, 2022
by
shadow_walker
Browse files
use ternary to simplify
parent
bf9bddc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
libEM/io/hdfio2.cpp
View file @
dc41083d
...
...
@@ -1671,17 +1671,8 @@ int HdfIO2::write_data(float *data, int image_index, const Region* area,
}
}
hid_t
spc1
=
0
;
hid_t
spc2
=
0
;
if
(
area
)
{
spc1
=
memoryspace
;
spc2
=
filespace
;
}
else
{
spc1
=
spc
;
spc2
=
spc
;
}
hid_t
spc1
=
(
area
?
memoryspace
:
spc
);
hid_t
spc2
=
(
area
?
filespace
:
spc
);
EMUtil
::
getRenderMinMax
(
data
,
nx
,
ny
,
rendermin
,
rendermax
,
renderbits
,
nz
);
// printf("RMM %f %f\n",rendermin,rendermax);
...
...
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