smallneuron 2.3.0__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {smallneuron-2.3.0/src/smallneuron.egg-info → smallneuron-2.3.1}/PKG-INFO +1 -1
- {smallneuron-2.3.0 → smallneuron-2.3.1}/pyproject.toml +1 -1
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/smallneuron.py +26 -2
- {smallneuron-2.3.0 → smallneuron-2.3.1/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.3.0 → smallneuron-2.3.1}/.gitignore +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/LICENSE +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/README.md +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/example.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/setup.cfg +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/build +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/sninput.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron/snwatcher.py +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -9,6 +9,7 @@ from .snwatcher import SnWatcher
|
|
|
9
9
|
import traceback
|
|
10
10
|
from datetime import datetime
|
|
11
11
|
import sys
|
|
12
|
+
import glob
|
|
12
13
|
|
|
13
14
|
#
|
|
14
15
|
# Para que funcione el tooltip debe set en formato svg, para generarlo usar:
|
|
@@ -137,7 +138,9 @@ class EventManager:
|
|
|
137
138
|
return watcher
|
|
138
139
|
|
|
139
140
|
|
|
140
|
-
def graph(self, f, bold_event=None):
|
|
141
|
+
def graph(self, f, bold_event=None, filename=None):
|
|
142
|
+
if filename !=None:
|
|
143
|
+
f.write("//{filename}\n\n")
|
|
141
144
|
f.write("digraph { \n")
|
|
142
145
|
f.write(' layout="dot" \n')
|
|
143
146
|
f.write(" //rankdir=LR \n")
|
|
@@ -218,8 +221,29 @@ class EventManager:
|
|
|
218
221
|
)
|
|
219
222
|
|
|
220
223
|
with open(desc, 'w') as f:
|
|
221
|
-
self.graph(f, bold_event)
|
|
224
|
+
self.graph(f, bold_event, filename=filename)
|
|
222
225
|
|
|
226
|
+
def readGraphFile(self, file, delta=0):
|
|
227
|
+
dotList=glob.glob(self.graphDir+'*.dot')
|
|
228
|
+
dotList.sort()
|
|
229
|
+
|
|
230
|
+
index=-1
|
|
231
|
+
if len(dotList) == 0:
|
|
232
|
+
return ""
|
|
233
|
+
try:
|
|
234
|
+
index=dotList.index(file)+delta
|
|
235
|
+
if index < 0:
|
|
236
|
+
index=0
|
|
237
|
+
elif index >= len(dotList):
|
|
238
|
+
index=-1
|
|
239
|
+
except ValueError as e:
|
|
240
|
+
index=-1
|
|
241
|
+
|
|
242
|
+
nextfile= dotList[index]
|
|
243
|
+
with open(nextfile, 'r') as content_file:
|
|
244
|
+
return content_file.read()
|
|
245
|
+
return ""
|
|
246
|
+
|
|
223
247
|
def start(self, n_first: Node):
|
|
224
248
|
n_start = Node(
|
|
225
249
|
"_start_",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smallneuron-2.3.0 → smallneuron-2.3.1}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|