|
14 | 14 | #include "tensorstore/index_space/index_transform_builder.h" |
15 | 15 | #include "tensorstore/box.h" |
16 | 16 |
|
17 | | -#define MDIO_INTERNAL_PROFILING 0 // TODO(BrianMichell): Remove simple profiling code once we approach a more mature API access. |
| 17 | +// #define MDIO_INTERNAL_PROFILING 0 // TODO(BrianMichell): Remove simple profiling code once we approach a more mature API access. |
18 | 18 |
|
19 | 19 | namespace mdio { |
20 | 20 |
|
@@ -56,16 +56,16 @@ class CoordinateSelector { |
56 | 56 | explicit CoordinateSelector(const Dataset& dataset) |
57 | 57 | : dataset_(dataset), base_domain_(dataset.domain) {} |
58 | 58 |
|
59 | | -template <typename OutT, typename... Ops> |
60 | | -Future<std::vector<OutT>> ReadDataVariable(const std::string& data_variable, Ops const&... ops) { |
61 | | - // 1) apply filters & sorts in the exact order given |
62 | | - absl::Status st = absl::OkStatus(); |
63 | | - ((st = st.ok() ? _applyOp(ops).status() : st), ...); |
64 | | - if (!st.ok()) return st; |
| 59 | + template <typename OutT, typename... Ops> |
| 60 | + Future<std::vector<OutT>> ReadDataVariable(const std::string& data_variable, Ops const&... ops) { |
| 61 | + // 1) apply filters & sorts in the exact order given |
| 62 | + absl::Status st = absl::OkStatus(); |
| 63 | + ((st = st.ok() ? _applyOp(ops).status() : st), ...); |
| 64 | + if (!st.ok()) return st; |
65 | 65 |
|
66 | | - // 2) finally read out the requested variable |
67 | | - return readSelection<OutT>(data_variable); |
68 | | -} |
| 66 | + // 2) finally read out the requested variable |
| 67 | + return readSelection<OutT>(data_variable); |
| 68 | + } |
69 | 69 |
|
70 | 70 | /** |
71 | 71 | * @brief Filter the Dataset by the given coordinate. |
|
0 commit comments