lima2.client 2.0rc2__tar.gz → 2.0.2__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 (47) hide show
  1. {lima2_client-2.0rc2/src/lima2.client.egg-info → lima2_client-2.0.2}/PKG-INFO +1 -1
  2. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/detector.py +6 -6
  3. {lima2_client-2.0rc2 → lima2_client-2.0.2/src/lima2.client.egg-info}/PKG-INFO +1 -1
  4. {lima2_client-2.0rc2 → lima2_client-2.0.2}/LICENSE +0 -0
  5. {lima2_client-2.0rc2 → lima2_client-2.0.2}/README.md +0 -0
  6. {lima2_client-2.0rc2 → lima2_client-2.0.2}/pyproject.toml +0 -0
  7. {lima2_client-2.0rc2 → lima2_client-2.0.2}/setup.cfg +0 -0
  8. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/__init__.py +0 -0
  9. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/channel.py +0 -0
  10. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/client.py +0 -0
  11. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/convert.py +0 -0
  12. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/__init__.py +0 -0
  13. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/dense_frame.py +0 -0
  14. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/exception.py +0 -0
  15. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/sparse_frame.py +0 -0
  16. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/sparse_frame_with_background.py +0 -0
  17. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/devencoded/structured_array.py +0 -0
  18. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/pipeline.py +0 -0
  19. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/pipelines/__init__.py +0 -0
  20. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/pipelines/legacy.py +0 -0
  21. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/pipelines/smx.py +0 -0
  22. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/pipelines/xpcs.py +0 -0
  23. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/progress_counter.py +0 -0
  24. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/py.typed +0 -0
  25. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/shell.py +0 -0
  26. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/state_machine.py +0 -0
  27. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/topology.py +0 -0
  28. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/client/utils.py +0 -0
  29. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/server/__init__.py +0 -0
  30. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/server/control.py +0 -0
  31. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/server/receiver.py +0 -0
  32. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2/server/timer.py +0 -0
  33. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2.client.egg-info/SOURCES.txt +0 -0
  34. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2.client.egg-info/dependency_links.txt +0 -0
  35. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2.client.egg-info/entry_points.txt +0 -0
  36. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2.client.egg-info/requires.txt +0 -0
  37. {lima2_client-2.0rc2 → lima2_client-2.0.2}/src/lima2.client.egg-info/top_level.txt +0 -0
  38. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_client.py +0 -0
  39. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_detector.py +0 -0
  40. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_import.py +0 -0
  41. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_pipeline.py +0 -0
  42. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_pipelines.py +0 -0
  43. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_progress_counter.py +0 -0
  44. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_state_machine.py +0 -0
  45. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_timer.py +0 -0
  46. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_topology.py +0 -0
  47. {lima2_client-2.0rc2 → lima2_client-2.0.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lima2.client
3
- Version: 2.0rc2
3
+ Version: 2.0.2
4
4
  Summary: Python client library for Lima2 detector
5
5
  Home-page: https://gitlab.esrf.fr/limagroup/lima2-client
6
6
  Author: BCU (ESRF)
@@ -68,12 +68,6 @@ class Detector:
68
68
  # Preconditions
69
69
  if not recv_devs:
70
70
  raise ValueError("Must provide at least one receiver")
71
- elif len(recv_devs) > 1:
72
- rank_order = [d.recv_rank for d in recv_devs]
73
- if not all([r == i for i, r in enumerate(rank_order)]):
74
- raise ValueError(
75
- f"Receiver MPI rank order does not match client order: {rank_order}"
76
- )
77
71
 
78
72
  self.__ctrl = ctrl_dev
79
73
  self.__recvs = list(recv_devs)
@@ -85,6 +79,12 @@ class Detector:
85
79
  "Failed to ping Tango servers (are the devices running?)"
86
80
  ) from e
87
81
 
82
+ rank_order = [d.recv_rank for d in recv_devs]
83
+ if not all([r == i for i, r in enumerate(rank_order)]):
84
+ raise ValueError(
85
+ f"Receiver MPI rank order does not match client order: {rank_order}"
86
+ )
87
+
88
88
  self.__params_schema = None
89
89
  self.__fsm = fsm.StateMachine(self.__ctrl, self.__recvs)
90
90
  self.__try_sync_hard()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lima2.client
3
- Version: 2.0rc2
3
+ Version: 2.0.2
4
4
  Summary: Python client library for Lima2 detector
5
5
  Home-page: https://gitlab.esrf.fr/limagroup/lima2-client
6
6
  Author: BCU (ESRF)
File without changes
File without changes
File without changes