smallneuron 1.2.0__tar.gz → 1.2.2__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-1.2.0/src/smallneuron.egg-info → smallneuron-1.2.2}/PKG-INFO +1 -1
- {smallneuron-1.2.0 → smallneuron-1.2.2}/pyproject.toml +1 -1
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/smallneuron.py +8 -2
- {smallneuron-1.2.0 → smallneuron-1.2.2/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-1.2.0 → smallneuron-1.2.2}/.gitignore +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/LICENSE +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/README.md +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/example.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/setup.cfg +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/__init__.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/build +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/logger.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snapi.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sninput.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snserial.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -39,10 +39,10 @@ class Node:
|
|
|
39
39
|
Node.nodelist[state] = self
|
|
40
40
|
|
|
41
41
|
def enter(self, event, args, stateFrom):
|
|
42
|
-
|
|
42
|
+
log.perfMark(" In Node.enter()")
|
|
43
43
|
|
|
44
44
|
def leave(self, event, args, stateTo):
|
|
45
|
-
|
|
45
|
+
log.perfMark(" In Node.leave()")
|
|
46
46
|
|
|
47
47
|
def __eq__(self, other):
|
|
48
48
|
return self.state == other.state
|
|
@@ -241,26 +241,32 @@ class EventManager:
|
|
|
241
241
|
log.warn("[",self.count,"] ", event, " is caduced ", validUntil, "<", self.count)
|
|
242
242
|
|
|
243
243
|
elif event in self.net:
|
|
244
|
+
log.perfMark(f" event in net")
|
|
244
245
|
if not self.currentState in self.net[event]:
|
|
245
246
|
log.warn("[",self.count,"] ", event, " not valid for state ", self.currentState, "discarted!")
|
|
246
247
|
else:
|
|
248
|
+
log.perfMark(f" get node")
|
|
247
249
|
node: Node = self.net[event][self.currentState][0]
|
|
248
250
|
log.info("[",self.count,"] entqer ", node.state, params, self.currentState)
|
|
249
251
|
|
|
250
252
|
# indicamos al nodo actual que salimos
|
|
253
|
+
log.perfMark(f" leave old node")
|
|
251
254
|
self.currentNode.leave(event,params,node.state)
|
|
252
255
|
|
|
253
256
|
# Entramos al nodo nuevo
|
|
257
|
+
log.perfMark(f" enter node")
|
|
254
258
|
node.enter(event, params, self.currentState)
|
|
255
259
|
self.currentNode=node
|
|
256
260
|
self.prevState = self.currentState
|
|
257
261
|
self.currentState = node.state
|
|
258
262
|
self.currentArgs = params
|
|
259
263
|
self.count = self.count + 1 # increment event count
|
|
264
|
+
log.perfMark(f" print graph")
|
|
260
265
|
self.printGraph(event)
|
|
261
266
|
elif event in self.cmds:
|
|
262
267
|
log.info("[", self.count, "] Manager new cmd ", event)
|
|
263
268
|
node: Node = self.cmds[event][0]
|
|
269
|
+
log.perfMark(f" enter cmd")
|
|
264
270
|
node.enter(event, params, self.currentState)
|
|
265
271
|
self.printGraph(event)
|
|
266
272
|
else:
|
|
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-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|