remla 0.2.5.dev1__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.dev1 → remla-0.2.5.dev2}/PKG-INFO +1 -1
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/pyproject.toml +1 -1
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/labcontrol/Experiment.py +10 -5
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/main.py +1 -1
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/README.md +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/__init__.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/customvalidators.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/i2ccmd.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/labcontrol/Controllers.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/labcontrol/__init__.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/settings.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/finalInfoTemplate.md +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/hello.txt +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/i2c-output.png +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/index.html +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/localhost.conf +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/mediaMTXGetFeed.js +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/mediamtx.service +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/mediamtx.yml +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/reader.js +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setup/remlaSocket.js +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/setupcmd.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/systemHelpers.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/typerHelpers.py +0 -0
- {remla-0.2.5.dev1 → remla-0.2.5.dev2}/remla/yaml.py +0 -0
|
@@ -159,20 +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
176
|
logging.info(f"Device {deviceName} ran {method} with result: {result}")
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
await self.sendAlert(websocket, f"{result[1]}")
|
|
177
|
+
if response_type == "ALERT":
|
|
178
|
+
await self.sendAlert(websocket, f"{result}")
|
|
174
179
|
else:
|
|
175
|
-
await self.sendMessage(websocket, f"{result
|
|
180
|
+
await self.sendMessage(websocket, f"{result}")
|
|
176
181
|
else:
|
|
177
182
|
await self.sendMessage(websocket, f"{deviceName} ran {method}")
|
|
178
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
|
|
File without changes
|