From 8fc47079c3d95ca3c9c769e1d0ba7722874be60c Mon Sep 17 00:00:00 2001
From: michael <m.langguth@fz-juelich.de>
Date: Mon, 8 Jun 2020 17:30:20 +0200
Subject: [PATCH] Removed typo in open-statement for json-file.

---
 metadata.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/metadata.py b/metadata.py
index 3b7570d7..eb2a73f6 100644
--- a/metadata.py
+++ b/metadata.py
@@ -185,8 +185,8 @@ class MetaData:
         meta_fname = os.path.join(target_dir,"metadata.json")
 
         if os.path.exists(meta_fname):                      # check if a metadata-file already exists and check its content 
-            with open(meta_fname) as js_file:
-                dict_dupl = json.loads(js_file)
+            with open(meta_fname,'r') as js_file:
+                dict_dupl = json.load(js_file)
                 
                 if dict_dupl != meta_dict:
                     print(method_name+": Already existing metadata (see '"+meta_fname+") do not fit data being processed right now. Ensure a common data base.")
-- 
GitLab