smallneuron 2.2.2__tar.gz → 2.2.4__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-2.2.2/src/smallneuron.egg-info → smallneuron-2.2.4}/PKG-INFO +1 -1
  2. {smallneuron-2.2.2 → smallneuron-2.2.4}/pyproject.toml +1 -1
  3. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/smallneuron.py +4 -3
  4. {smallneuron-2.2.2 → smallneuron-2.2.4/src/smallneuron.egg-info}/PKG-INFO +1 -1
  5. {smallneuron-2.2.2 → smallneuron-2.2.4}/.gitignore +0 -0
  6. {smallneuron-2.2.2 → smallneuron-2.2.4}/LICENSE +0 -0
  7. {smallneuron-2.2.2 → smallneuron-2.2.4}/README.md +0 -0
  8. {smallneuron-2.2.2 → smallneuron-2.2.4}/example.py +0 -0
  9. {smallneuron-2.2.2 → smallneuron-2.2.4}/setup.cfg +0 -0
  10. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/__init__.py +0 -0
  11. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/build +0 -0
  12. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.c +0 -0
  13. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.h +0 -0
  14. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.so +0 -0
  15. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/logger.py +0 -0
  16. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sndummy.py +0 -0
  17. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sngpio.py +0 -0
  18. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sninput.py +0 -0
  19. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snmqtt.py +0 -0
  20. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snserial.py +0 -0
  21. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sntimer.py +0 -0
  22. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snwatcher.py +0 -0
  23. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/SOURCES.txt +0 -0
  24. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/dependency_links.txt +0 -0
  25. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/top_level.txt +0 -0
  26. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
  27. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
  28. {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
  29. {smallneuron-2.2.2 → smallneuron-2.2.4}/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: 2.2.2
3
+ Version: 2.2.4
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 = "2.2.2"
6
+ version = "2.2.4"
7
7
  authors = [
8
8
  { name="Andres Artigas", email="andres@artigas.cl" },
9
9
  ]
@@ -29,9 +29,9 @@ def ttfmt(txt):
29
29
  class Node:
30
30
  nodelist = {}
31
31
 
32
- def __init__(self, state, change_state=False, desc="", style=""):
32
+ def __init__(self, state, desc="", style=""):
33
33
  self.state = state
34
- self.change_state=change_state
34
+ self.change_state=False
35
35
  self.event_manager = None # Este link es llenado durante addEdge del event manager
36
36
  self.desc = desc
37
37
  self.style = style
@@ -106,7 +106,7 @@ class EventManager:
106
106
  nodeFrom.event_manager = self
107
107
  nodeTo.event_manager = self
108
108
 
109
- def linkCmd(self, event, nodeTo: Node, desc=""):
109
+ def linkCmd(self, event, nodeTo: Node, change_state=False, desc=""):
110
110
  if event in self.cmds:
111
111
  print("Error event already in cmds ", event)
112
112
  raise "Error event already in cmds "
@@ -114,6 +114,7 @@ class EventManager:
114
114
  print("Error event already in edges ", event)
115
115
  raise "Error event already in edges "
116
116
  else:
117
+ nodeTo.change_state=change_state
117
118
  self.cmds[event] = (nodeTo, desc)
118
119
  nodeTo.event_manager = self
119
120
  nodeTo._cmd =True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smallneuron
3
- Version: 2.2.2
3
+ Version: 2.2.4
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