Fix file format bug

This commit is contained in:
2018-12-06 17:53:11 +01:00
parent 74b32fd740
commit f6f18bd80d
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -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);
}
}
+4
View File
@@ -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());
}