summaryrefslogtreecommitdiff
path: root/esds
diff options
context:
space:
mode:
Diffstat (limited to 'esds')
-rw-r--r--esds/__init__.py1
-rw-r--r--esds/debug.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/esds/__init__.py b/esds/__init__.py
index 2ffc1cf..4ef2e06 100644
--- a/esds/__init__.py
+++ b/esds/__init__.py
@@ -1,4 +1,5 @@
__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug"]
+__version__ = "0.0.1"
from esds.simulator import Simulator
from esds.rcode import RCode
diff --git a/esds/debug.py b/esds/debug.py
index 66a781a..111b3a7 100644
--- a/esds/debug.py
+++ b/esds/debug.py
@@ -1,5 +1,6 @@
import sys,time,json
import numpy as np
+import esds
def serialize_int64(obj):
if isinstance(obj, np.int64):
@@ -14,7 +15,8 @@ class Debug:
self.logs=list()
header={
"debug_version": 1,
- "python_version" : sys.version,
+ "python_version": sys.version,
+ "esds_version": esds.__version__,
"simulation_started_at": simulator.startat,
"number_of_nodes": len(simulator.nodes),
"manual_breakpoints": breakpoints,