• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

BlueBrain / libsonata / 7029770837

29 Nov 2023 08:15AM UTC coverage: 93.327% (-0.6%) from 93.924%
7029770837

Pull #307

github

1uc
Implement `Hdf5Reader` API and default.

This commit introduces the API for an Hdf5Reader. This reader abstracts the
process of opening HDF5 files, and reading an `libsonata.Selection` from a
dataset.

The default reader calls the existing `_readSelection`.
Pull Request #307: Inject dataset reading via `Hdf5Reader`.

80 of 95 new or added lines in 10 files covered. (84.21%)

7 existing lines in 2 files now uncovered.

1888 of 2023 relevant lines covered (93.33%)

80.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/hdf5_reader.cpp
1
#include <bbp/sonata/hdf5_reader.h>
2

3
#include "hdf5_reader.hpp"
4

5
namespace bbp {
6
namespace sonata {
7

8

9
Hdf5Reader::Hdf5Reader()
74✔
10
    : impl(std::make_shared<
11
           Hdf5PluginDefault<Hdf5Reader::supported_1D_types, supported_2D_types>>()) {}
74✔
12

NEW
13
Hdf5Reader::Hdf5Reader(
×
NEW
14
    std::shared_ptr<Hdf5PluginInterface<supported_1D_types, supported_2D_types>> impl)
×
NEW
15
    : impl(std::move(impl)) {}
×
16

17
HighFive::File Hdf5Reader::openFile(const std::string& filename) const {
70✔
18
    return impl->openFile(filename);
70✔
19
}
20

21
}  // namespace sonata
22
}  // namespace bbp
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc