Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lima
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LimaGroup
Lima
Commits
e0ad26b7
Commit
e0ad26b7
authored
Jun 16, 2020
by
Laurent Claustre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdf5 container: test unlimited dim 0 for dataspace
parent
d48e8787
Pipeline
#27464
passed with stages
in 29 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
control/src/CtSaving_Hdf5.cpp
control/src/CtSaving_Hdf5.cpp
+5
-2
No files found.
control/src/CtSaving_Hdf5.cpp
View file @
e0ad26b7
...
...
@@ -623,7 +623,7 @@ long SaveContainerHdf5::_writeFile(void* f,Data &aData,
file
->
m_instrument_detector_header
=
NULL
;
// create the image data structure in the file
hsize_t
data_dims
[
3
];
hsize_t
data_dims
[
3
]
,
max_dims
[
3
]
;
data_dims
[
1
]
=
aData
.
dimensions
[
1
];
data_dims
[
2
]
=
aData
.
dimensions
[
0
];
...
...
@@ -634,6 +634,9 @@ long SaveContainerHdf5::_writeFile(void* f,Data &aData,
nb_frames
=
m_acq_nbframes
%
m_frames_per_file
;
data_dims
[
0
]
=
nb_frames
;
max_dims
[
0
]
=
H5S_UNLIMITED
;
max_dims
[
1
]
=
data_dims
[
1
];
max_dims
[
2
]
=
data_dims
[
2
];
DEB_TRACE
()
<<
"m_file_cnt = "
<<
m_file_cnt
;
DEB_TRACE
()
<<
"m_max_nb_files = "
<<
m_max_nb_files
;
...
...
@@ -660,7 +663,7 @@ long SaveContainerHdf5::_writeFile(void* f,Data &aData,
}
#endif
// create new dspace
file
->
m_image_dataspace
=
new
DataSpace
(
RANK_THREE
,
data_dims
,
NULL
);
file
->
m_image_dataspace
=
new
DataSpace
(
RANK_THREE
,
data_dims
,
max_dims
);
file
->
m_image_dataset
=
new
DataSet
(
file
->
m_instrument_detector
->
createDataSet
(
file
->
m_data_name
,
data_type
,
...
...
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