diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-17 16:35:00 +0800 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-17 16:35:00 +0800 |
| commit | 5c806e06bde29b65debba709dbfd014c7e08dd2c (patch) | |
| tree | cf3b01183b4e9f3d8592758fd9e38dc1b7ada00f | |
| parent | 00fc666804f2f4aaf2cdbbc3e62f5b9bd6ac5f30 (diff) | |
Minor changes
| -rw-r--r-- | esds/debug.py | 7 |
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() |
