From c4754072256364488ee76c9682ceb4d17003e399 Mon Sep 17 00:00:00 2001 From: kaeldai Date: Sat, 11 May 2024 17:34:16 -0700 Subject: [PATCH] Fixing compartment reports to include magic statement when running multi-cores --- bmtk/utils/reports/compartment/compartment_writer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bmtk/utils/reports/compartment/compartment_writer.py b/bmtk/utils/reports/compartment/compartment_writer.py index e5ae9b1f8..819fdf93c 100644 --- a/bmtk/utils/reports/compartment/compartment_writer.py +++ b/bmtk/utils/reports/compartment/compartment_writer.py @@ -411,6 +411,8 @@ def merge(self): barrier() if self._mpi_size > 1 and self._mpi_rank == 0: h5final = h5py.File(self._final_fpath, 'w') + add_hdf5_version(h5final) + add_hdf5_magic(h5final) tmp_reports = [CompartmentReader(name) for name in self.temp_files if os.path.exists(name)] populations = set()