bec-ipython-client 3.170.1__tar.gz → 3.171.0__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 (44) hide show
  1. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/PKG-INFO +2 -2
  2. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/ipython_live_updates.py +23 -6
  3. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/pyproject.toml +2 -2
  4. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/.gitignore +0 -0
  5. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/__init__.py +0 -0
  6. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/beamline_mixin.py +0 -0
  7. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/bec_magics.py +0 -0
  8. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/bec_startup.py +0 -0
  9. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/__init__.py +0 -0
  10. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/device_progress.py +0 -0
  11. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/live_table.py +0 -0
  12. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/move_device.py +0 -0
  13. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/callbacks/utils.py +0 -0
  14. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
  15. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
  16. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
  17. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/main.py +0 -0
  18. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
  19. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
  20. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
  21. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
  22. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/__init__.py +0 -0
  23. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
  24. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/prettytable.py +0 -0
  25. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/progressbar.py +0 -0
  26. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/bec_ipython_client/signals.py +0 -0
  27. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/demo.py +0 -0
  28. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/conftest.py +0 -0
  29. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_beamline_mixins.py +0 -0
  30. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_bec_client.py +0 -0
  31. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_device_progress.py +0 -0
  32. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_ipython_live_updates.py +0 -0
  33. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_live_table.py +0 -0
  34. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_move_callback.py +0 -0
  35. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_pretty_table.py +0 -0
  36. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/client_tests/test_signals.py +0 -0
  37. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/conftest.py +0 -0
  38. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/_ensure_requirements_container.py +0 -0
  39. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_acl_e2e.py +0 -0
  40. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_actors_e2e.py +0 -0
  41. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_procedures_e2e.py +0 -0
  42. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_scans_e2e.py +0 -0
  43. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_scans_lib_e2e.py +0 -0
  44. {bec_ipython_client-3.170.1 → bec_ipython_client-3.171.0}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bec_ipython_client
3
- Version: 3.170.1
3
+ Version: 3.171.0
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
@@ -21,7 +21,7 @@ Requires-Dist: isort>=5.13.2,~=5.13; extra == 'dev'
21
21
  Requires-Dist: pylint<5,>=3; extra == 'dev'
22
22
  Requires-Dist: pytest-bec-e2e~=3.0; extra == 'dev'
23
23
  Requires-Dist: pytest-random-order~=1.1; extra == 'dev'
24
- Requires-Dist: pytest-redis<5.0,>=3.1; extra == 'dev'
24
+ Requires-Dist: pytest-redis<6.0,>=3.1; extra == 'dev'
25
25
  Requires-Dist: pytest-retry~=1.1; extra == 'dev'
26
26
  Requires-Dist: pytest-timeout~=2.2; extra == 'dev'
27
27
  Requires-Dist: pytest<10,>=8; extra == 'dev'
@@ -87,30 +87,47 @@ class IPythonLiveUpdates:
87
87
  # Already checked in caller method. It is just for type checking purposes.
88
88
  return
89
89
  if scan_report_type == "readback":
90
- LiveUpdatesReadbackProgressbar(
90
+ callback = LiveUpdatesReadbackProgressbar(
91
91
  self.client,
92
92
  report_instruction=instr,
93
93
  request=self._active_request,
94
94
  callbacks=self._user_callback,
95
- ).run()
95
+ )
96
96
  elif scan_report_type == "scan_progress":
97
- LiveUpdatesTable(
97
+ callback = LiveUpdatesTable(
98
98
  self.client,
99
99
  report_instruction=instr,
100
100
  request=self._active_request,
101
101
  callbacks=self._user_callback,
102
102
  print_table_data=self.print_table_data,
103
- ).run()
103
+ )
104
104
  elif scan_report_type == "device_progress":
105
- LiveUpdatesDeviceProgress(
105
+ callback = LiveUpdatesDeviceProgress(
106
106
  self.client,
107
107
  report_instruction=instr,
108
108
  request=self._active_request,
109
109
  callbacks=self._user_callback,
110
- ).run()
110
+ )
111
111
  else:
112
112
  raise ValueError(f"Unknown scan report type: {scan_report_type}")
113
113
 
114
+ callback_name = type(callback).__name__
115
+ request_id = self._active_request.metadata.get("RID")
116
+ logger.info(f"Starting {callback_name}: RID={request_id}")
117
+ start_time = time.monotonic()
118
+ outcome = "completed"
119
+ try:
120
+ callback.run()
121
+ except BaseException as exc:
122
+ outcome = type(exc).__name__
123
+ raise
124
+ finally:
125
+ elapsed = time.monotonic() - start_time
126
+ logger.info(
127
+ f"Finished {callback_name}: RID={request_id}, "
128
+ f"outcome={outcome}, elapsed={elapsed:.3f}s"
129
+ )
130
+
114
131
  def _available_req_blocks(
115
132
  self, queue: QueueItem, request: messages.ScanQueueMessage
116
133
  ) -> list[messages.RequestBlock]:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_ipython_client"
7
- version = "3.170.1"
7
+ version = "3.171.0"
8
8
  description = "BEC IPython client"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [
@@ -29,7 +29,7 @@ dev = [
29
29
  "pylint>=3,<5",
30
30
  "pytest-bec-e2e~=3.0",
31
31
  "pytest-random-order~=1.1",
32
- "pytest-redis>=3.1,<5.0",
32
+ "pytest-redis>=3.1,<6.0",
33
33
  "pytest-retry~=1.1",
34
34
  "pytest-timeout~=2.2",
35
35
  "pytest>=8,<10",