smallneuron 2.4__tar.gz → 2.4.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-2.4/src/smallneuron.egg-info → smallneuron-2.4.2}/PKG-INFO +1 -1
  2. {smallneuron-2.4 → smallneuron-2.4.2}/pyproject.toml +1 -1
  3. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/smallneuron.py +5 -5
  4. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sntimer.py +1 -1
  5. {smallneuron-2.4 → smallneuron-2.4.2/src/smallneuron.egg-info}/PKG-INFO +1 -1
  6. {smallneuron-2.4 → smallneuron-2.4.2}/.gitignore +0 -0
  7. {smallneuron-2.4 → smallneuron-2.4.2}/LICENSE +0 -0
  8. {smallneuron-2.4 → smallneuron-2.4.2}/README.md +0 -0
  9. {smallneuron-2.4 → smallneuron-2.4.2}/example.py +0 -0
  10. {smallneuron-2.4 → smallneuron-2.4.2}/setup.cfg +0 -0
  11. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/__init__.py +0 -0
  12. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/build +0 -0
  13. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.c +0 -0
  14. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.h +0 -0
  15. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/gpio_h3.so +0 -0
  16. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/logger.py +0 -0
  17. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sndummy.py +0 -0
  18. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sngpio.py +0 -0
  19. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/sninput.py +0 -0
  20. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snmqtt.py +0 -0
  21. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snserial.py +0 -0
  22. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron/snwatcher.py +0 -0
  23. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/SOURCES.txt +0 -0
  24. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/dependency_links.txt +0 -0
  25. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron.egg-info/top_level.txt +0 -0
  26. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
  27. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
  28. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
  29. {smallneuron-2.4 → smallneuron-2.4.2}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: smallneuron
3
- Version: 2.4
3
+ Version: 2.4.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 = "2.4"
6
+ version = "2.4.2"
7
7
  authors = [
8
8
  { name="Andres Artigas", email="andres@artigas.cl" },
9
9
  ]
@@ -174,7 +174,7 @@ class EventManager:
174
174
  if node._cmd == True:
175
175
  style = 'fillcolor="#a0a0a0" ' + style
176
176
 
177
- f.write("%s [%s]\n" % (state, style))
177
+ f.write('"%s" [%s]\n' % (state, style))
178
178
 
179
179
  # print("write ", len(self.net), "events")
180
180
  for event in self.net:
@@ -189,11 +189,11 @@ class EventManager:
189
189
  if bold_event == event and state_from == self.prevState and state_to == self.currentState:
190
190
  args = " " + json.dumps(self.currentArgs).replace('"', '\\"')
191
191
  f.write(
192
- '%s -> %s [ label = "%s" fontcolor="red" %s ]\n'
192
+ '"%s" -> "%s" [ label = "%s" fontcolor="red" %s ]\n'
193
193
  % (state_from, state_to, event + args, tooltip)
194
194
  )
195
195
  else:
196
- f.write('%s -> %s [ label = "%s" %s ]\n' % (state_from, state_to, event, tooltip))
196
+ f.write('"%s" -> "%s" [ label = "%s" %s ]\n' % (state_from, state_to, event, tooltip))
197
197
 
198
198
  # print("write ", len(self.cmds), "commands")
199
199
  if len(self.cmds) > 0:
@@ -209,9 +209,9 @@ class EventManager:
209
209
  tooltip = 'labeltooltip="' + ttfmt(desc) + '" tooltip="' + ttfmt(desc) + '"'
210
210
 
211
211
  if bold_event == event:
212
- f.write('"*" -> %s [ label = "%s" fontcolor="red" %s ]\n' % (state_to, event, tooltip))
212
+ f.write('"*" -> "%s" [ label = "%s" fontcolor="red" %s ]\n' % (state_to, event, tooltip))
213
213
  else:
214
- f.write('"*" -> %s [ label = "%s" %s ]\n' % (state_to, event, tooltip))
214
+ f.write('"*" -> "%s" [ label = "%s" %s ]\n' % (state_to, event, tooltip))
215
215
 
216
216
  f.write("}\n")
217
217
 
@@ -24,7 +24,7 @@ class SnTimer():
24
24
 
25
25
  # Los eventos agregado con timer son por defecto
26
26
  # solo validos para el siguiente estado
27
- @logger_with_method
27
+ @logger_with_method(log)
28
28
  def watchEvent(self, event, event_params={}, time=1.0, valid=1):
29
29
  until=self.eventManager.count+valid
30
30
  log.debug(f"event:{event}, params:{event_params} time:{time}s valid:{valid} until:{until}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: smallneuron
3
- Version: 2.4
3
+ Version: 2.4.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