From b6a4a30cfe2f355c9d99e9cc96af0c2135ca609d Mon Sep 17 00:00:00 2001
From: sebastiano bernuzzi <sebastiano.bernuzzi@gmail.com>
Date: Thu, 21 Oct 2021 20:34:39 +0200
Subject: [PATCH] Bugfix: path is now assigned correctly

---
 watpy/utils/coreh5.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/watpy/utils/coreh5.py b/watpy/utils/coreh5.py
index 459142f..f2e1ea0 100644
--- a/watpy/utils/coreh5.py
+++ b/watpy/utils/coreh5.py
@@ -49,7 +49,7 @@ class CoRe_h5():
         - Dasets are named after filenames
         - Appends to and/or overwrites HDF5
         """
-        if path is None: path == self.path
+        if path is None: path = self.path
         if not dfile:
             self.dfile = 'data.h5'
         else:
-- 
GitLab