Skip to content

Commit 28f9373

Browse files
committed
Close #208. Fix mock devices.
1 parent 5dc81ec commit 28f9373

20 files changed

Lines changed: 25 additions & 119 deletions

unilabos/app/ws_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ def publish_device_status(self, device_status: dict, device_id: str, property_na
12431243
},
12441244
}
12451245
self.message_processor.send_message(message)
1246-
logger.debug(f"[WebSocketClient] Device status published: {device_id}.{property_name}")
1246+
logger.trace(f"[WebSocketClient] Device status published: {device_id}.{property_name}")
12471247

12481248
def publish_job_status(
12491249
self, feedback_data: dict, item: QueueItem, status: str, return_info: Optional[dict] = None

unilabos/test/experiments/mock_devices/mock_all.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"parent": null,
1010
"type": "device",
11-
"class": "mock_chiller",
11+
"class": "virtual_heatchill",
1212
"position": {
1313
"x": 620.6111111111111,
1414
"y": 171,
@@ -49,7 +49,7 @@
4949
"children": [],
5050
"parent": null,
5151
"type": "device",
52-
"class": "mock_filter",
52+
"class": "virtual_filter",
5353
"position": {
5454
"x": 620.6111111111111,
5555
"y": 171,
@@ -80,7 +80,7 @@
8080
"children": [],
8181
"parent": null,
8282
"type": "device",
83-
"class": "mock_heater",
83+
"class": "virtual_heatchill",
8484
"position": {
8585
"x": 620.6111111111111,
8686
"y": 171,
@@ -108,7 +108,7 @@
108108
"children": [],
109109
"parent": null,
110110
"type": "device",
111-
"class": "mock_pump",
111+
"class": "virtual_transfer_pump",
112112
"position": {
113113
"x": 620.6111111111111,
114114
"y": 171,
@@ -147,7 +147,7 @@
147147
"children": [],
148148
"parent": null,
149149
"type": "device",
150-
"class": "mock_rotavap",
150+
"class": "virtual_rotavap",
151151
"position": {
152152
"x": 620.6111111111111,
153153
"y": 171,
@@ -175,7 +175,7 @@
175175
"children": [],
176176
"parent": null,
177177
"type": "device",
178-
"class": "mock_separator",
178+
"class": "virtual_separator",
179179
"position": {
180180
"x": 620.6111111111111,
181181
"y": 171,
@@ -213,7 +213,7 @@
213213
"children": [],
214214
"parent": null,
215215
"type": "device",
216-
"class": "mock_solenoid_valve",
216+
"class": "virtual_solenoid_valve",
217217
"position": {
218218
"x": 620.6111111111111,
219219
"y": 171,
@@ -233,7 +233,7 @@
233233
"children": [],
234234
"parent": null,
235235
"type": "device",
236-
"class": "mock_stirrer_new",
236+
"class": "virtual_stirrer",
237237
"position": {
238238
"x": 620.6111111111111,
239239
"y": 171,
@@ -261,7 +261,7 @@
261261
"children": [],
262262
"parent": null,
263263
"type": "device",
264-
"class": "mock_stirrer",
264+
"class": "virtual_stirrer",
265265
"position": {
266266
"x": 620.6111111111111,
267267
"y": 171,
@@ -289,7 +289,7 @@
289289
"children": [],
290290
"parent": null,
291291
"type": "device",
292-
"class": "mock_vacuum",
292+
"class": "virtual_vacuum_pump",
293293
"position": {
294294
"x": 620.6111111111111,
295295
"y": 171,

unilabos/test/experiments/mock_devices/mock_chiller.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_chiller",
9+
"class": "virtual_heatchill",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_filter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_filter",
9+
"class": "virtual_filter",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_heater.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_heater",
9+
"class": "virtual_heatchill",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_pump.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_pump",
9+
"class": "virtual_transfer_pump",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_rotavap.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_rotavap",
9+
"class": "virtual_rotavap",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_separator.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_separator",
9+
"class": "virtual_separator",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_solenoid_valve.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_solenoid_valve",
9+
"class": "virtual_solenoid_valve",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

unilabos/test/experiments/mock_devices/mock_stirrer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"children": [],
77
"parent": null,
88
"type": "device",
9-
"class": "mock_stirrer",
9+
"class": "virtual_stirrer",
1010
"position": {
1111
"x": 620.6111111111111,
1212
"y": 171,

0 commit comments

Comments
 (0)