summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--esds/debug.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/esds/debug.py b/esds/debug.py
index cac433d..5423461 100644
--- a/esds/debug.py
+++ b/esds/debug.py
@@ -1,6 +1,6 @@
import sys,time,json
import numpy as np
-import esds
+import esds, json
def serialize_int64(obj):
if isinstance(obj, np.int64):
@@ -112,4 +112,7 @@ class Debug:
def debug_infos(file):
- print("infos")
+ f=open(file,'r',encoding='utf8')
+ data=json.loads(f.readline())
+ print("Python Version (used during simulation): ", data["python_version"])
+ f.close()