smallneuron 1.1.9__tar.gz → 1.2.0__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.1.9/src/smallneuron.egg-info → smallneuron-1.2.0}/PKG-INFO +1 -1
  2. {smallneuron-1.1.9 → smallneuron-1.2.0}/pyproject.toml +1 -1
  3. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/logger.py +9 -4
  4. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snserial.py +0 -1
  5. {smallneuron-1.1.9 → smallneuron-1.2.0/src/smallneuron.egg-info}/PKG-INFO +1 -1
  6. {smallneuron-1.1.9 → smallneuron-1.2.0}/.gitignore +0 -0
  7. {smallneuron-1.1.9 → smallneuron-1.2.0}/LICENSE +0 -0
  8. {smallneuron-1.1.9 → smallneuron-1.2.0}/README.md +0 -0
  9. {smallneuron-1.1.9 → smallneuron-1.2.0}/example.py +0 -0
  10. {smallneuron-1.1.9 → smallneuron-1.2.0}/setup.cfg +0 -0
  11. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/__init__.py +0 -0
  12. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/build +0 -0
  13. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.c +0 -0
  14. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.h +0 -0
  15. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/gpio_h3.so +0 -0
  16. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/smallneuron.py +0 -0
  17. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snapi.py +0 -0
  18. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sndummy.py +0 -0
  19. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sngpio.py +0 -0
  20. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sninput.py +0 -0
  21. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/snmqtt.py +0 -0
  22. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron/sntimer.py +0 -0
  23. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/SOURCES.txt +0 -0
  24. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/dependency_links.txt +0 -0
  25. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron.egg-info/top_level.txt +0 -0
  26. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
  27. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
  28. {smallneuron-1.1.9 → smallneuron-1.2.0}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
  29. {smallneuron-1.1.9 → smallneuron-1.2.0}/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.1.9
3
+ Version: 1.2.0
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.1.9"
6
+ version = "1.2.0"
7
7
  authors = [
8
8
  { name="Andres Artigas", email="andres@artigas.cl" },
9
9
  ]
@@ -4,7 +4,8 @@ from time import time
4
4
  import sys
5
5
 
6
6
  class Logger:
7
- prev_log=time()
7
+ perf_enable=False
8
+ prev_time=time()
8
9
  logLevel=syslog.LOG_DEBUG
9
10
  def __init__(self, service_name):
10
11
  self.service_name = service_name
@@ -33,10 +34,14 @@ class Logger:
33
34
  def set_level(level):
34
35
  Logger.logLevel=level
35
36
 
37
+ def set_perf(setOn):
38
+ Logger.perf_enable=setOn
39
+
36
40
  def perfMark(self,text):
37
- t=time()
38
- print(self.service_name, t, t-Logger.prev_time, text, file=sys.stderr)
39
- Logger.prev_time=t
41
+ if Logger.perf_enable:
42
+ t=time()
43
+ print(self.service_name, t, t-Logger.prev_time, text, file=sys.stderr)
44
+ Logger.prev_time=t
40
45
 
41
46
  def __logger(self, severity, *args):
42
47
  try:
@@ -70,7 +70,6 @@ class SnSerial(serial.Serial):
70
70
  c = b""
71
71
  while c != end_of_read_byte:
72
72
  c = self.read()
73
- log.perfMark("read_until readChar")
74
73
  line += c
75
74
  return line[:-1].decode("utf-8")
76
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smallneuron
3
- Version: 1.1.9
3
+ Version: 1.2.0
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