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.
- {lima2_client-4.1.2/src/lima2_client.egg-info → lima2_client-4.1.3}/PKG-INFO +1 -1
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/services.py +12 -3
- {lima2_client-4.1.2 → lima2_client-4.1.3/src/lima2_client.egg-info}/PKG-INFO +1 -1
- {lima2_client-4.1.2 → lima2_client-4.1.3}/LICENSE +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/README.md +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/pyproject.toml +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/setup.cfg +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/exceptions.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/py.typed +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/session.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/client/shell.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/dense_frame.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/exception.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/smx_sparse_frame.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/sparse_frame.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/devencoded/structured_array.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/exceptions.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/pipelines.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/progress_counter.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/py.typed +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/state.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/common/types.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/acquisition.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/acquisition_system.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/detector.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/failing.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/legacy.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/master_file.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/pipeline.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/reduced_data.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/smx.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/processing/xpcs.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/py.typed +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/container.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/control.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/processing.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/receiver.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/tango/utils.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/topology.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/utils.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/acquisition.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark_generators/__init__.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/benchmark_generators/rois.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/cli.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/detector.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/main.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/pipeline.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/utils.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2/conductor/webservice/webapp.py +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/SOURCES.txt +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/dependency_links.txt +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/entry_points.txt +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/requires.txt +0 -0
- {lima2_client-4.1.2 → lima2_client-4.1.3}/src/lima2_client.egg-info/top_level.txt +0 -0
|
@@ -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
|
-
|
|
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]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|