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
bf9bddc0
Commit
bf9bddc0
authored
Jun 05, 2022
by
shadow_walker
Browse files
declare when needed
parent
ddaf2265
Changes
1
Hide whitespace changes
Inline
Side-by-side
libEM/io/hdfio2.cpp
View file @
bf9bddc0
...
...
@@ -1492,7 +1492,6 @@ int HdfIO2::write_data(float *data, int image_index, const Region* area,
sprintf
(
ipath
,
"/MDF/images/%d/image"
,
image_index
);
// Now create the image dataspace (not used for region writing)
hsize_t
rank
=
0
;
if
(
nz
==
1
&&
ny
==
1
)
{
hsize_t
dims
[
1
]
=
{
nx
};
spc
=
H5Screate_simple
(
1
,
dims
,
NULL
);
...
...
@@ -1569,6 +1568,7 @@ int HdfIO2::write_data(float *data, int image_index, const Region* area,
}
hsize_t
rank
=
0
;
if
(
ds
<
0
)
{
//new dataset
hid_t
plist
=
H5Pcreate
(
H5P_DATASET_CREATE
);
// we could just use H5P_DEFAULT for non-compressed
if
(
dt
==
EMUtil
::
EM_COMPRESSED
)
{
...
...
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