mxcubecore 1.345.0__py3-none-any.whl → 1.347.0__py3-none-any.whl

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.
@@ -76,10 +76,31 @@ class AbstractDetector(HardwareObject):
76
76
  self._roi_mode = 0
77
77
  self._images_per_file = 0
78
78
  self._roi_modes_list = []
79
+ self._exposure_time_limits = (None, None)
79
80
 
80
81
  self._threshold_energy = None
81
82
  self._distance_motor_hwobj = None
82
83
 
84
+ self._width = None # [pixel]
85
+ self._height = None # [pixel]
86
+ self._metadata = {}
87
+
88
+ def init(self):
89
+ """Initialise some common parameters"""
90
+ super().init()
91
+
92
+ self._metadata = self.get_property("beam", {})
93
+
94
+ self._images_per_file = self.get_property("images_per_file", 100)
95
+
96
+ self._distance_motor_hwobj = self.get_object_by_role("detector_distance")
97
+
98
+ self._roi_modes_list = ast.literal_eval(self.get_property("roiModes", "()"))
99
+
100
+ self._pixel_size = (self.get_property("px"), self.get_property("py"))
101
+ self._width = self.get_property("width")
102
+ self._height = self.get_property("height")
103
+
83
104
  min_exp_time = self.get_property("minimum_exposure_time", None)
84
105
  max_exp_time = self.get_property("maximum_exposure_time", None)
85
106
 
@@ -102,26 +123,6 @@ class AbstractDetector(HardwareObject):
102
123
  max_exp_time,
103
124
  )
104
125
 
105
- self._width = None # [pixel]
106
- self._height = None # [pixel]
107
- self._metadata = {}
108
-
109
- def init(self):
110
- """Initialise some common parameters"""
111
- super().init()
112
-
113
- self._metadata = self.get_property("beam", {})
114
-
115
- self._images_per_file = self.get_property("images_per_file", 100)
116
-
117
- self._distance_motor_hwobj = self.get_object_by_role("detector_distance")
118
-
119
- self._roi_modes_list = ast.literal_eval(self.get_property("roiModes", "()"))
120
-
121
- self._pixel_size = (self.get_property("px"), self.get_property("py"))
122
- self._width = self.get_property("width")
123
- self._height = self.get_property("height")
124
-
125
126
  def force_emit_signals(self):
126
127
  """Emit all hardware object signals."""
127
128
  self.emit("detectorRoiModeChanged", (self._roi_mode,))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mxcubecore
3
- Version: 1.345.0
3
+ Version: 1.347.0
4
4
  Summary: Core libraries for the MXCuBE application
5
5
  License: LGPL-3.0-or-later
6
6
  Keywords: mxcube,mxcube3,mxcubecore
@@ -345,7 +345,7 @@ mxcubecore/HardwareObjects/abstract/AbstractAuthenticator.py,sha256=F5ONnre9GEcg
345
345
  mxcubecore/HardwareObjects/abstract/AbstractBeam.py,sha256=Fvz5K3ov0Glsw8bO2oXiYbkFMK9L8CX4gldJg73lkr0,10389
346
346
  mxcubecore/HardwareObjects/abstract/AbstractCharacterisation.py,sha256=knGIC9GVSY_mJfcpMpU9qP8OfaIngasGEc8PIVFsr_4,4990
347
347
  mxcubecore/HardwareObjects/abstract/AbstractCollect.py,sha256=L9xyT1IgtiRCIR303Nw9fe_TN7azKcLKMGtvCN7de_0,33360
348
- mxcubecore/HardwareObjects/abstract/AbstractDetector.py,sha256=p3pblv8Qu6_SASiz7fi6H8kzcFERuaJwhf--eb1hy_c,11511
348
+ mxcubecore/HardwareObjects/abstract/AbstractDetector.py,sha256=oLUrZuMjj3uujyODqXgBuxNl_6WieBv5MFHfyQN7c64,11561
349
349
  mxcubecore/HardwareObjects/abstract/AbstractEnergy.py,sha256=zG6tICqBdWcEMz8gGh7DFvP6CHz5xNlaRdcG4Y8tFps,4553
350
350
  mxcubecore/HardwareObjects/abstract/AbstractEnergyScan.py,sha256=OnUXHBNm5kt7Lud0UmReZzs9Jv4d1cCJTlB4JRlvBOc,6066
351
351
  mxcubecore/HardwareObjects/abstract/AbstractFlux.py,sha256=1RbuFdD8QsRDwGj94mz4PffoiElgDV5OZUxjyTCYieA,3442
@@ -465,8 +465,8 @@ mxcubecore/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
465
465
  mxcubecore/utils/conversion.py,sha256=G1bk2Mi2ZwGbZa5pEeiFaKWxhSVXVGqu1L9_SioyUOk,4513
466
466
  mxcubecore/utils/qt_import.py,sha256=hQkBVZLUDZtktX7DSyoH88GAK_mK9Ghlsj4k9pFJeAQ,14415
467
467
  mxcubecore/utils/units.py,sha256=2D1QlTwe8eSs2UYRm4VVxSTosZZHeM-Pfw9KlcLbDAg,1251
468
- mxcubecore-1.345.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
469
- mxcubecore-1.345.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
470
- mxcubecore-1.345.0.dist-info/METADATA,sha256=BpE5mnHq5oWJdGfoiCkHyNOCZBNVXZk0dqMfVXfFa2A,4262
471
- mxcubecore-1.345.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
472
- mxcubecore-1.345.0.dist-info/RECORD,,
468
+ mxcubecore-1.347.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
469
+ mxcubecore-1.347.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
470
+ mxcubecore-1.347.0.dist-info/METADATA,sha256=-gcVr5Xa_Fz1vbqZ5MXmSYJISRBphGUtNRKc3kPfxt4,4262
471
+ mxcubecore-1.347.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
472
+ mxcubecore-1.347.0.dist-info/RECORD,,