mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 16:54:15 +02:00
Fix file format bug
This commit is contained in:
@@ -386,7 +386,6 @@ void H5FormatUtils::write_format(H5::H5File& file, const H5Format& format,
|
||||
write_format_data(file, format_definition, format_values);
|
||||
|
||||
for (const auto& mapping : format.get_dataset_move_mapping()) {
|
||||
cout << mapping.first.c_str() << " moved to " << mapping.second.c_str() << endl;
|
||||
file.move(mapping.first, mapping.second;
|
||||
file.move(mapping.first, mapping.second);
|
||||
}
|
||||
}
|
||||
@@ -185,6 +185,8 @@ void ProcessManager::write_h5()
|
||||
cout << " does not belong to current file. Write format before the file will be closed." << endl;
|
||||
#endif
|
||||
|
||||
writer->write_metadata_to_file();
|
||||
|
||||
write_h5_format(writer->get_h5_file());
|
||||
}
|
||||
|
||||
@@ -276,6 +278,8 @@ void ProcessManager::write_h5()
|
||||
boost::this_thread::sleep_for(boost::chrono::milliseconds(config::parameters_read_retry_interval));
|
||||
}
|
||||
|
||||
writer->write_metadata_to_file();
|
||||
|
||||
write_h5_format(writer->get_h5_file());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user