From 54d88bce8f0ae07fb4672f66fe0fed3f0edb4fcc Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 9 Sep 2022 19:59:42 +0200 Subject: Improve package architecture --- esds/__init__.py | 1 + esds/debug.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'esds') 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, -- cgit v1.2.3