lima2.client 4.1.2__tar.gz → 4.1.3__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 (62) hide show
  1. {lima2_client-4.1.2/src/lima2_client.egg-info → lima2_client-4.1.3}/PKG-INFO +1 -1
  2. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/services.py +12 -3
  3. {lima2_client-4.1.2 → lima2_client-4.1.3/src/lima2_client.egg-info}/PKG-INFO +1 -1
  4. {lima2_client-4.1.2 → lima2_client-4.1.3}/LICENSE +0 -0
  5. {lima2_client-4.1.2 → lima2_client-4.1.3}/README.md +0 -0
  6. {lima2_client-4.1.2 → lima2_client-4.1.3}/pyproject.toml +0 -0
  7. {lima2_client-4.1.2 → lima2_client-4.1.3}/setup.cfg +0 -0
  8. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/__init__.py +0 -0
  9. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/exceptions.py +0 -0
  10. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/py.typed +0 -0
  11. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/session.py +0 -0
  12. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/shell.py +0 -0
  13. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/__init__.py +0 -0
  14. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/__init__.py +0 -0
  15. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/dense_frame.py +0 -0
  16. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/exception.py +0 -0
  17. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/smx_sparse_frame.py +0 -0
  18. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/sparse_frame.py +0 -0
  19. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/structured_array.py +0 -0
  20. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/exceptions.py +0 -0
  21. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/pipelines.py +0 -0
  22. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/progress_counter.py +0 -0
  23. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/py.typed +0 -0
  24. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/state.py +0 -0
  25. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/types.py +0 -0
  26. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/__init__.py +0 -0
  27. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/acquisition.py +0 -0
  28. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/acquisition_system.py +0 -0
  29. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/detector.py +0 -0
  30. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/__init__.py +0 -0
  31. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/failing.py +0 -0
  32. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/legacy.py +0 -0
  33. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/master_file.py +0 -0
  34. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/pipeline.py +0 -0
  35. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/reduced_data.py +0 -0
  36. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/smx.py +0 -0
  37. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/xpcs.py +0 -0
  38. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/py.typed +0 -0
  39. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/__init__.py +0 -0
  40. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/container.py +0 -0
  41. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/control.py +0 -0
  42. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/processing.py +0 -0
  43. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/receiver.py +0 -0
  44. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/utils.py +0 -0
  45. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/topology.py +0 -0
  46. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/utils.py +0 -0
  47. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/__init__.py +0 -0
  48. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/acquisition.py +0 -0
  49. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark.py +0 -0
  50. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark_generators/__init__.py +0 -0
  51. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark_generators/rois.py +0 -0
  52. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/cli.py +0 -0
  53. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/detector.py +0 -0
  54. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/main.py +0 -0
  55. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/pipeline.py +0 -0
  56. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/utils.py +0 -0
  57. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/webapp.py +0 -0
  58. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/SOURCES.txt +0 -0
  59. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/dependency_links.txt +0 -0
  60. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/entry_points.txt +0 -0
  61. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/requires.txt +0 -0
  62. {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lima2-client
3
- Version: 4.1.2
3
+ Version: 4.1.3
4
4
  Summary: The Python client library of the Lima2 system
5
5
  Author: BCU (ESRF)
6
6
  License-Expression: MIT
@@ -23,7 +23,7 @@ from lima2.common import pipelines, types
23
23
  from lima2.common.devencoded.dense_frame import Frame
24
24
  from lima2.common.devencoded.smx_sparse_frame import SmxSparseFrame
25
25
  from lima2.common.devencoded.sparse_frame import SparseFrame
26
- from lima2.common.exceptions import Lima2NotFound
26
+ from lima2.common.exceptions import Lima2LookupError, Lima2NotFound
27
27
  from lima2.common.progress_counter import ProgressCounter, SingleCounter
28
28
  from lima2.common.state import RunState, State
29
29
  from lima2.common.types import FrameInfo
@@ -343,8 +343,17 @@ class Pipeline:
343
343
  def get_frame(
344
344
  self, frame_idx: int, source: str, uuid: str | UUID = "current"
345
345
  ) -> Frame | SparseFrame | SmxSparseFrame:
346
- """Fetch a frame directly from a receiver device."""
347
- fidx, rcv_url = self.lookup(frame_idx=frame_idx, uuid=uuid)
346
+ """Fetch a frame directly from a receiver device.
347
+
348
+ Raises:
349
+ ValueError: Invalid frame source.
350
+ RuntimeError: The frame isn't available.
351
+ """
352
+ try:
353
+ fidx, rcv_url = self.lookup(frame_idx=frame_idx, uuid=uuid)
354
+ except Lima2LookupError as e:
355
+ raise RuntimeError(f"Can't find {source} {frame_idx}: {e}") from None
356
+
348
357
  class_name = self.pipeline(uuid=uuid)["type"]
349
358
  try:
350
359
  pipeline_info = pipelines.by_name[class_name]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lima2-client
3
- Version: 4.1.2
3
+ Version: 4.1.3
4
4
  Summary: The Python client library of the Lima2 system
5
5
  Author: BCU (ESRF)
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes