From 12364e9d12069f8abc0f904df5f16bea9f7ed539 Mon Sep 17 00:00:00 2001 From: Watanyu Foosang <watanyu.f@gmail.com> Date: Wed, 23 Mar 2022 16:33:19 +0100 Subject: [PATCH] Debug to allow multiple instantiation of Monitor class Multiple hdf5 file can now be made without having to use MPI. This is achieved by clearing the file name storage every time the monitor is closed. --- tracking/monitors/monitors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracking/monitors/monitors.py b/tracking/monitors/monitors.py index e562d76..1533e15 100644 --- a/tracking/monitors/monitors.py +++ b/tracking/monitors/monitors.py @@ -215,6 +215,8 @@ class Monitor(Element, metaclass=ABCMeta): """ try: self.file.close() + Monitor._file_name_storage = [] + Monitor._file_storage = [] except ValueError: pass -- GitLab