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.
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/PKG-INFO +2 -1
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/README.md +2 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/pyproject.toml +1 -1
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/Experiment.py +11 -4
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/main.py +1 -1
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/__init__.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/customvalidators.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/i2ccmd.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/Controllers.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/labcontrol/__init__.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/settings.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/finalInfoTemplate.md +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/hello.txt +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/i2c-output.png +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/index.html +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/localhost.conf +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediaMTXGetFeed.js +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediamtx.service +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/mediamtx.yml +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/reader.js +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setup/remlaSocket.js +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/setupcmd.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/systemHelpers.py +0 -0
- {remla-0.2.5.dev0 → remla-0.2.5.dev2}/remla/typerHelpers.py +0 -0
- {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.
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
171
|
-
|
|
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
|
|
180
|
+
await self.sendMessage(websocket, f"{result}")
|
|
174
181
|
else:
|
|
175
182
|
await self.sendMessage(websocket, f"{deviceName} ran {method}")
|
|
176
183
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|