mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-08-07 16:12:26 +02:00
Everything compiles
This commit is contained in:
@@ -132,7 +132,7 @@ public:
|
||||
writer.writeVector(hsh.get<std::vector<uint64_t>&>("user_2"), "/data/" + detector_name + "/user_2");
|
||||
|
||||
std::cout << "Writing data: " << hsh.get<std::vector<uint16_t>&>("data").size() << std::endl;
|
||||
writer.writeArray(hsh.get<std::vector<uint16_t>&>("data"), "/data/" + detector_name + "/data");
|
||||
writer.writeArray(hsh.get<std::vector<uint16_t>&>("data"), {m_buffer_size, hsh.get<std::vector<uint64_t>&>("height")[0], hsh.get<std::vector<uint64_t>&>("height")[0], 1}, "/data/" + detector_name + "/data");
|
||||
|
||||
|
||||
run_id++;
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
};
|
||||
|
||||
template <typename TY>
|
||||
void writeArray(const std::vector<TY>& data_ref, const std::vector<TY>& shape_ref, std::string ipath){
|
||||
void writeArray(const std::vector<TY>& data_ref, const std::vector<size_t>& shape_ref, std::string ipath){
|
||||
/* Allocating containers for the data */
|
||||
int64_t n_dim = shape_ref.size();
|
||||
hsize_t ds_dims[n_dim];
|
||||
|
||||
Reference in New Issue
Block a user