bec-ipython-client 3.77.0__tar.gz → 3.77.1__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.
Files changed (40) hide show
  1. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/PKG-INFO +1 -1
  2. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/device_progress.py +8 -3
  3. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/live_table.py +7 -4
  4. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/pyproject.toml +1 -1
  5. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/.gitignore +0 -0
  6. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/__init__.py +0 -0
  7. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/beamline_mixin.py +0 -0
  8. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/bec_magics.py +0 -0
  9. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/bec_startup.py +0 -0
  10. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/__init__.py +0 -0
  11. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
  12. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/move_device.py +0 -0
  13. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/callbacks/utils.py +0 -0
  14. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
  15. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
  16. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
  17. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/main.py +0 -0
  18. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
  19. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
  20. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
  21. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
  22. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/__init__.py +0 -0
  23. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
  24. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/prettytable.py +0 -0
  25. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/progressbar.py +0 -0
  26. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/bec_ipython_client/signals.py +0 -0
  27. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/demo.py +0 -0
  28. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/conftest.py +0 -0
  29. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_beamline_mixins.py +0 -0
  30. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_bec_client.py +0 -0
  31. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_device_progress.py +0 -0
  32. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_ipython_live_updates.py +0 -0
  33. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_live_table.py +0 -0
  34. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_move_callback.py +0 -0
  35. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/client_tests/test_pretty_table.py +0 -0
  36. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/conftest.py +0 -0
  37. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/end-2-end/_ensure_requirements_container.py +0 -0
  38. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/end-2-end/test_procedures_e2e.py +0 -0
  39. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/end-2-end/test_scans_e2e.py +0 -0
  40. {bec_ipython_client-3.77.0 → bec_ipython_client-3.77.1}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bec_ipython_client
3
- Version: 3.77.0
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
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_ipython_client"
7
- version = "3.77.0"
7
+ version = "3.77.1"
8
8
  description = "BEC IPython client"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [