diff --git a/metadata.py b/metadata.py index 3b7570d75e0afd39cfbdf8b3d54ef87125d1a052..eb2a73f6a16a70015bb6445c663959535f937584 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.")