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.
Files changed (29) hide show
  1. {smallneuron-1.2.0/src/smallneuron.egg-info → smallneuron-1.2.2}/PKG-INFO +1 -1
  2. {smallneuron-1.2.0 → smallneuron-1.2.2}/pyproject.toml +1 -1
  3. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/smallneuron.py +8 -2
  4. {smallneuron-1.2.0 → smallneuron-1.2.2/src/smallneuron.egg-info}/PKG-INFO +1 -1
  5. {smallneuron-1.2.0 → smallneuron-1.2.2}/.gitignore +0 -0
  6. {smallneuron-1.2.0 → smallneuron-1.2.2}/LICENSE +0 -0
  7. {smallneuron-1.2.0 → smallneuron-1.2.2}/README.md +0 -0
  8. {smallneuron-1.2.0 → smallneuron-1.2.2}/example.py +0 -0
  9. {smallneuron-1.2.0 → smallneuron-1.2.2}/setup.cfg +0 -0
  10. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/__init__.py +0 -0
  11. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/build +0 -0
  12. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.c +0 -0
  13. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.h +0 -0
  14. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/gpio_h3.so +0 -0
  15. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/logger.py +0 -0
  16. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snapi.py +0 -0
  17. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sndummy.py +0 -0
  18. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sngpio.py +0 -0
  19. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sninput.py +0 -0
  20. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snmqtt.py +0 -0
  21. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/snserial.py +0 -0
  22. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron/sntimer.py +0 -0
  23. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/SOURCES.txt +0 -0
  24. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/dependency_links.txt +0 -0
  25. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron.egg-info/top_level.txt +0 -0
  26. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
  27. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
  28. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
  29. {smallneuron-1.2.0 → smallneuron-1.2.2}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smallneuron
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Small Neuron Workflow
5
5
  Author-email: Andres Artigas <andres@artigas.cl>
6
6
  Project-URL: Homepage, https://github.com/pypa/sampleproject
@@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
3
3
 
4
4
  [project]
5
5
  name = "smallneuron"
6
- version = "1.2.0"
6
+ version = "1.2.2"
7
7
  authors = [
8
8
  { name="Andres Artigas", email="andres@artigas.cl" },
9
9
  ]
@@ -39,10 +39,10 @@ class Node:
39
39
  Node.nodelist[state] = self
40
40
 
41
41
  def enter(self, event, args, stateFrom):
42
- pass # print("Node: Enter:", self.state, "event trigger:", event, "from", stateFrom)
42
+ log.perfMark(" In Node.enter()")
43
43
 
44
44
  def leave(self, event, args, stateTo):
45
- pass # print("Node: Leave:", self.state, "event trigger:", event, "to", stateTo)
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smallneuron
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Small Neuron Workflow
5
5
  Author-email: Andres Artigas <andres@artigas.cl>
6
6
  Project-URL: Homepage, https://github.com/pypa/sampleproject
File without changes
File without changes
File without changes
File without changes
File without changes