remla 0.2.5.dev0__tar.gz → 0.2.5.dev2__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 (25) hide show
  1. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/PKG-INFO +2 -1
  2. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/README.md +2 -0
  3. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/pyproject.toml +1 -1
  4. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/Experiment.py +11 -4
  5. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/main.py +1 -1
  6. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/__init__.py +0 -0
  7. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/customvalidators.py +0 -0
  8. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/i2ccmd.py +0 -0
  9. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/Controllers.py +0 -0
  10. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/__init__.py +0 -0
  11. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/settings.py +0 -0
  12. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/finalInfoTemplate.md +0 -0
  13. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/hello.txt +0 -0
  14. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/i2c-output.png +0 -0
  15. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/index.html +0 -0
  16. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/localhost.conf +0 -0
  17. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediaMTXGetFeed.js +0 -0
  18. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediamtx.service +0 -0
  19. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediamtx.yml +0 -0
  20. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/reader.js +0 -0
  21. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/remlaSocket.js +0 -0
  22. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setupcmd.py +0 -0
  23. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/systemHelpers.py +0 -0
  24. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/typerHelpers.py +0 -0
  25. {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/yaml.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: remla
3
- Version: 0.2.5.dev0
3
+ Version: 0.2.5.dev2
4
4
  Summary:
5
5
  Author: Zak Espley
6
6
  Author-email: zespley@gmail.com
@@ -30,3 +30,4 @@ Description-Content-Type: text/markdown
30
30
 
31
31
  Remla is a portmanteau of Remote Labs. It is used to control physics laboratory equipment over the internet.
32
32
 
33
+ This is a test
@@ -1,3 +1,5 @@
1
1
  # Remla
2
2
 
3
3
  Remla is a portmanteau of Remote Labs. It is used to control physics laboratory equipment over the internet.
4
+
5
+ This is a test
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "remla"
3
- version = "0.2.5-dev"
3
+ version = "0.2.5.dev2"
4
4
  description = ""
5
5
  authors = ["Zak Espley <zespley@gmail.com>"]
6
6
  readme = "README.md"
@@ -159,18 +159,25 @@ class Experiment(object):
159
159
  if lockGroupName:
160
160
  async with self.lockGroups[lockGroupName]:
161
161
  loop = asyncio.get_event_loop()
162
- response_type,result = await loop.run_in_executor(
162
+ response = await loop.run_in_executor(
163
163
  self.executor, runMethod, device, method, params
164
164
  )
165
+ if len(response) > 1:
166
+ response_type = response[0]
167
+ result = response[1]
168
+ else:
169
+ response_type = "MESSAGE"
170
+ result = response[0]
165
171
  else:
166
172
  logging.error("All devices need a lock")
167
173
  raise
168
174
  # result = await self.runMethod(device, method, params)
169
175
  if result is not None:
170
- if result[0] == "ALERT":
171
- await self.sendAlert(websocket, f"{result[1]}")
176
+ logging.info(f"Device {deviceName} ran {method} with result: {result}")
177
+ if response_type == "ALERT":
178
+ await self.sendAlert(websocket, f"{result}")
172
179
  else:
173
- await self.sendMessage(websocket, f"{result[1]}")
180
+ await self.sendMessage(websocket, f"{result}")
174
181
  else:
175
182
  await self.sendMessage(websocket, f"{deviceName} ran {method}")
176
183
 
@@ -27,7 +27,7 @@ from remla.yaml import createDevicesFromYml, yaml
27
27
 
28
28
  from .customvalidators import *
29
29
 
30
- __version__ = "0.2.4"
30
+ __version__ = "0.2.5.dev2"
31
31
 
32
32
 
33
33
  def version_callback(value: bool):
File without changes
File without changes
File without changes
File without changes
File without changes