bec-ipython-client 3.76.1__py3-none-any.whl → 3.77.1__py3-none-any.whl
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.
- PKG-INFO +1 -1
- bec_ipython_client/callbacks/device_progress.py +8 -3
- bec_ipython_client/callbacks/live_table.py +7 -4
- {bec_ipython_client-3.76.1.dist-info → bec_ipython_client-3.77.1.dist-info}/METADATA +1 -1
- {bec_ipython_client-3.76.1.dist-info → bec_ipython_client-3.77.1.dist-info}/RECORD +8 -8
- {bec_ipython_client-3.76.1.dist-info → bec_ipython_client-3.77.1.dist-info}/WHEEL +1 -1
- pyproject.toml +1 -1
- {bec_ipython_client-3.76.1.dist-info → bec_ipython_client-3.77.1.dist-info}/entry_points.txt +0 -0
PKG-INFO
CHANGED
|
@@ -14,11 +14,16 @@ class LiveUpdatesDeviceProgress(LiveUpdatesTable):
|
|
|
14
14
|
|
|
15
15
|
REPORT_TYPE = "device_progress"
|
|
16
16
|
|
|
17
|
-
def
|
|
17
|
+
def core(self):
|
|
18
|
+
"""core function to run the live updates for the table"""
|
|
19
|
+
self._wait_for_report_instructions()
|
|
20
|
+
self._run_update(self.report_instruction[self.REPORT_TYPE])
|
|
21
|
+
|
|
22
|
+
def _run_update(self, device_names: list[str]):
|
|
18
23
|
"""Run the update loop for the progress bar.
|
|
19
24
|
|
|
20
25
|
Args:
|
|
21
|
-
device_names (str): The name of the device to monitor.
|
|
26
|
+
device_names (list[str]): The name of the device to monitor.
|
|
22
27
|
"""
|
|
23
28
|
with ScanProgressBar(
|
|
24
29
|
scan_number=self.scan_item.scan_number, clear_on_exit=False
|
|
@@ -29,7 +34,7 @@ class LiveUpdatesDeviceProgress(LiveUpdatesTable):
|
|
|
29
34
|
self._print_client_msgs_asap()
|
|
30
35
|
self._print_client_msgs_all()
|
|
31
36
|
|
|
32
|
-
def _update_progressbar(self, progressbar: ScanProgressBar, device_names: str) -> bool:
|
|
37
|
+
def _update_progressbar(self, progressbar: ScanProgressBar, device_names: list[str]) -> bool:
|
|
33
38
|
"""Update the progressbar based on the device status message
|
|
34
39
|
|
|
35
40
|
Args:
|
|
@@ -171,6 +171,13 @@ class LiveUpdatesTable(LiveUpdatesBase):
|
|
|
171
171
|
|
|
172
172
|
def core(self):
|
|
173
173
|
"""core function to run the live updates for the table"""
|
|
174
|
+
self._wait_for_report_instructions()
|
|
175
|
+
show_table = self.report_instruction[self.REPORT_TYPE].get("show_table", True)
|
|
176
|
+
self._print_table_data = show_table
|
|
177
|
+
self._run_update(self.report_instruction[self.REPORT_TYPE]["points"])
|
|
178
|
+
|
|
179
|
+
def _wait_for_report_instructions(self):
|
|
180
|
+
"""wait until the report instructions are available"""
|
|
174
181
|
req_ID = self.scan_queue_request.requestID
|
|
175
182
|
while True:
|
|
176
183
|
request_block = [
|
|
@@ -182,10 +189,6 @@ class LiveUpdatesTable(LiveUpdatesBase):
|
|
|
182
189
|
break
|
|
183
190
|
self.check_alarms()
|
|
184
191
|
|
|
185
|
-
show_table = self.report_instruction[self.REPORT_TYPE].get("show_table", True)
|
|
186
|
-
self._print_table_data = show_table
|
|
187
|
-
self._run_update(self.report_instruction[self.REPORT_TYPE]["points"])
|
|
188
|
-
|
|
189
192
|
def _run_update(self, target_num_points: int):
|
|
190
193
|
"""run the update loop with the progress bar
|
|
191
194
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.gitignore,sha256=XxC6jyyftTo2CLtm4K8axuNPYwA9Wgaz2R93WhX8bTQ,3364
|
|
2
|
-
PKG-INFO,sha256=
|
|
2
|
+
PKG-INFO,sha256=BB57ePmHOKTkCAB6d2vapkVqpY8ZDMH5fz5HRgZAZfg,1052
|
|
3
3
|
demo.py,sha256=AquJB-0Tu2bIEFpcJ0Q3RUBt1xldqS6GgU5CjOAg_ww,7083
|
|
4
|
-
pyproject.toml,sha256=
|
|
4
|
+
pyproject.toml,sha256=NKA2DpJ1K5Ui_-5u7O37cUZBAwD9WRBF4e0C_LLtF7k,1229
|
|
5
5
|
bec_ipython_client/__init__.py,sha256=ihd_V8I7Qo0MWKMo7bcvPf-ZyUQqkcNf8IAWLJKiFJE,79
|
|
6
6
|
bec_ipython_client/beamline_mixin.py,sha256=scMWIFbHJajyECzbwEVKyQUGjpqA9C_KiU2M6FuRH_Q,1067
|
|
7
7
|
bec_ipython_client/bec_magics.py,sha256=Rz2aXkUCeAV_VxdXqLUNHh8T44kSH9ha83OiEtdptzI,2792
|
|
@@ -11,9 +11,9 @@ bec_ipython_client/prettytable.py,sha256=TnhGPGuU0XEvnIYJ1UfTEwadcowFW4rqJW8z_Sm
|
|
|
11
11
|
bec_ipython_client/progressbar.py,sha256=aDKYjzXmGSwa82ewm59V8WSuqVQz9GiZPx5G65fEwpk,11090
|
|
12
12
|
bec_ipython_client/signals.py,sha256=mbThPo6h3mQ6RFRm9viETDMC_unFa7QxiymCdM_ZK7U,4194
|
|
13
13
|
bec_ipython_client/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
bec_ipython_client/callbacks/device_progress.py,sha256=
|
|
14
|
+
bec_ipython_client/callbacks/device_progress.py,sha256=NzWIO1oowxpN14hPXBne6RfZxOW82EhwDM3jHLnn3xI,2603
|
|
15
15
|
bec_ipython_client/callbacks/ipython_live_updates.py,sha256=Cx62yJSzIcRvAA_lC86PSs8825hJtk22yBPhuJjgRPc,10520
|
|
16
|
-
bec_ipython_client/callbacks/live_table.py,sha256=
|
|
16
|
+
bec_ipython_client/callbacks/live_table.py,sha256=3qmwCEjqe-xFqo3Ez2dhKchawlr0cOmNgzpg857-gp0,13503
|
|
17
17
|
bec_ipython_client/callbacks/move_device.py,sha256=TkbtKFBr1nuJ8THTSm70Y8D7_va2YQ57oBGGt0BavW4,8153
|
|
18
18
|
bec_ipython_client/callbacks/utils.py,sha256=jS92ndZNU2t5n9FsLrSbulmUIeepHhwdQdfO60YjiJk,5702
|
|
19
19
|
bec_ipython_client/high_level_interfaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -38,7 +38,7 @@ tests/end-2-end/_ensure_requirements_container.py,sha256=RT2a5cUZnXtMjJRlPImGzgy
|
|
|
38
38
|
tests/end-2-end/test_procedures_e2e.py,sha256=3CPzjW3VpsSU8GKVP814SSvLZ0c7bBtPB_VtX725TCY,4737
|
|
39
39
|
tests/end-2-end/test_scans_e2e.py,sha256=CxlXjQrzDJebaoZObt_oYx41wbnHLuJLSjKlno4u2B4,30981
|
|
40
40
|
tests/end-2-end/test_scans_lib_e2e.py,sha256=-yYW-bm2jmXg4QYa6jSQFRlaLa81zeUvP7oTodccWg0,19213
|
|
41
|
-
bec_ipython_client-3.
|
|
42
|
-
bec_ipython_client-3.
|
|
43
|
-
bec_ipython_client-3.
|
|
44
|
-
bec_ipython_client-3.
|
|
41
|
+
bec_ipython_client-3.77.1.dist-info/METADATA,sha256=BB57ePmHOKTkCAB6d2vapkVqpY8ZDMH5fz5HRgZAZfg,1052
|
|
42
|
+
bec_ipython_client-3.77.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
43
|
+
bec_ipython_client-3.77.1.dist-info/entry_points.txt,sha256=oQUXYY0jjD9ZvKPHwaGn2wkUIWpDZM8L4ixDA3RlBWE,53
|
|
44
|
+
bec_ipython_client-3.77.1.dist-info/RECORD,,
|
pyproject.toml
CHANGED
{bec_ipython_client-3.76.1.dist-info → bec_ipython_client-3.77.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|