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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_ipython_client
3
- Version: 3.76.1
3
+ Version: 3.77.1
4
4
  Summary: BEC IPython client
5
5
  Project-URL: Bug Tracker, https://github.com/bec-project/bec/issues
6
6
  Project-URL: Homepage, https://github.com/bec-project/bec
@@ -14,11 +14,16 @@ class LiveUpdatesDeviceProgress(LiveUpdatesTable):
14
14
 
15
15
  REPORT_TYPE = "device_progress"
16
16
 
17
- def _run_update(self, device_names: str):
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_ipython_client
3
- Version: 3.76.1
3
+ Version: 3.77.1
4
4
  Summary: BEC IPython client
5
5
  Project-URL: Bug Tracker, https://github.com/bec-project/bec/issues
6
6
  Project-URL: Homepage, https://github.com/bec-project/bec
@@ -1,7 +1,7 @@
1
1
  .gitignore,sha256=XxC6jyyftTo2CLtm4K8axuNPYwA9Wgaz2R93WhX8bTQ,3364
2
- PKG-INFO,sha256=67OE4pLiDqD0LD4G_sJKaCFmdZHQ3MtgJvUyEMsugD0,1052
2
+ PKG-INFO,sha256=BB57ePmHOKTkCAB6d2vapkVqpY8ZDMH5fz5HRgZAZfg,1052
3
3
  demo.py,sha256=AquJB-0Tu2bIEFpcJ0Q3RUBt1xldqS6GgU5CjOAg_ww,7083
4
- pyproject.toml,sha256=vACiz5QQFo4kKFw_iVQRH4W1lstGgPm_pTTqqmlGtFE,1229
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=5sYfk4Xr_4-NCs6lCe7o7nTpMs_sEFYwITAMaELlbOA,2385
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=pUoqg2ib43-XpqRpjtahpUnnsriNYzLtF3IiAiVkGxg,13350
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.76.1.dist-info/METADATA,sha256=67OE4pLiDqD0LD4G_sJKaCFmdZHQ3MtgJvUyEMsugD0,1052
42
- bec_ipython_client-3.76.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
- bec_ipython_client-3.76.1.dist-info/entry_points.txt,sha256=oQUXYY0jjD9ZvKPHwaGn2wkUIWpDZM8L4ixDA3RlBWE,53
44
- bec_ipython_client-3.76.1.dist-info/RECORD,,
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_ipython_client"
7
- version = "3.76.1"
7
+ version = "3.77.1"
8
8
  description = "BEC IPython client"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [