Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F89020005
io_hdf5_database.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Oct 21, 21:07
Size
742 B
Mime Type
text/x-c
Expires
Wed, Oct 23, 21:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21805674
Attached To
rSPECMICP SpecMiCP / ReactMiCP
io_hdf5_database.cpp
View Options
#include "catch.hpp"
#include "specmicp_database/yaml_reader.hpp"
#include "specmicp_database/switch_basis.hpp"
#include "str_database.hpp"
#include <H5Cpp.h>
#include "specmicp_common/io/specmicp_hdf5.hpp"
#include "specmicp_database/io/hdf5_database.hpp"
#include <iostream>
#include <sstream>
using
namespace
specmicp
;
using
namespace
specmicp
::
database
;
using
namespace
specmicp
::
io
;
TEST_CASE
(
"HDF5 saver"
,
"[hdf5],[io]"
)
{
std
::
istringstream
input
(
good_test_database
);
DataReaderYaml
reader
(
input
);
auto
data
=
reader
.
get_database
();
SECTION
(
"labels output"
)
{
HDF5File
file
(
"test_database_labels.hf5"
,
HDF5_OpenMode
::
CreateTruncate
);
save_database_labels
(
file
,
"database"
,
"/"
,
data
);
}
}
Event Timeline
Log In to Comment