From 1335248edfb61b8a6153af273e005831efc3ea0d Mon Sep 17 00:00:00 2001
From: Jean-Matthieu Etancelin <jean-matthieu.etancelin@univ-pau.fr>
Date: Thu, 19 Sep 2024 14:00:03 +0200
Subject: [PATCH] fixup

---
 hysop/operator/hdf_io.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hysop/operator/hdf_io.py b/hysop/operator/hdf_io.py
index eeb22e5d4..eb05d2ed9 100644
--- a/hysop/operator/hdf_io.py
+++ b/hysop/operator/hdf_io.py
@@ -153,7 +153,7 @@ class HDF_IO(HostOperatorBase, metaclass=ABCMeta):
 
         # Dictionnary of names to search in hdf file. May be None.
         # It will be checked during setup.
-        self.var_names = var_names
+        self.var_names = {} if var_names is None else var_names
 
         # Local topology, that MUST be common to all input_fields.
         self.topology = None
-- 
GitLab