mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 19:22:23 +02:00
Added back the dataset name
This commit is contained in:
+11
-3
@@ -17,16 +17,24 @@ class CsaxsFormat : public H5Format
|
||||
public:
|
||||
~CsaxsFormat(){};
|
||||
|
||||
CsaxsFormat()
|
||||
CsaxsFormat(const string& dataset_name)
|
||||
{
|
||||
|
||||
// After format has been writen, where to move the raw datasets.
|
||||
dataset_move_mapping.reset(new std::unordered_map<string, string>());
|
||||
dataset_move_mapping.reset(new std::unordered_map<string, string>(
|
||||
{
|
||||
{config::raw_image_dataset_name, "data/" + dataset_name + "/data"},
|
||||
}));
|
||||
|
||||
input_value_type.reset(new unordered_map<string, DATA_TYPE>());
|
||||
|
||||
// Definition of the file format.
|
||||
file_format.reset(
|
||||
new h5_parent("", EMPTY_ROOT, {}));
|
||||
new h5_parent("", EMPTY_ROOT, {
|
||||
s_ptr(new h5_group("data", {
|
||||
s_ptr(new h5_group(dataset_name, {}))
|
||||
}))
|
||||
}));
|
||||
}
|
||||
|
||||
const h5_parent& get_format_definition() const override
|
||||
|
||||
@@ -40,7 +40,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
auto header_values = shared_ptr<unordered_map<string, HeaderDataType>>();
|
||||
|
||||
CsaxsFormat format();
|
||||
CsaxsFormat format("data");
|
||||
|
||||
WriterManager writer_manager(format.get_input_value_type(), output_file, n_frames);
|
||||
ZmqReceiver receiver(connect_address, config::zmq_n_io_threads, config::zmq_receive_timeout, header_values);
|
||||
|
||||
Reference in New Issue
Block a user