mxcubecore 1.373.0__py3-none-any.whl → 1.375.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.
Potentially problematic release.
This version of mxcubecore might be problematic. Click here for more details.
- mxcubecore/HardwareObjects/ESRF/ESRFPhotonFlux.py +6 -4
- mxcubecore/HardwareObjects/ESRF/ID232BeamDefiner.py +4 -6
- mxcubecore/HardwareObjects/ESRF/ID30A3BeamDefiner.py +3 -3
- {mxcubecore-1.373.0.dist-info → mxcubecore-1.375.0.dist-info}/METADATA +1 -1
- {mxcubecore-1.373.0.dist-info → mxcubecore-1.375.0.dist-info}/RECORD +8 -8
- {mxcubecore-1.373.0.dist-info → mxcubecore-1.375.0.dist-info}/COPYING +0 -0
- {mxcubecore-1.373.0.dist-info → mxcubecore-1.375.0.dist-info}/COPYING.LESSER +0 -0
- {mxcubecore-1.373.0.dist-info → mxcubecore-1.375.0.dist-info}/WHEEL +0 -0
|
@@ -50,7 +50,6 @@ class ESRFPhotonFlux(AbstractFlux):
|
|
|
50
50
|
self._flux_calc = None
|
|
51
51
|
self.counter_name = None
|
|
52
52
|
self.threshold = None
|
|
53
|
-
self.aperture = None
|
|
54
53
|
self.controller = None
|
|
55
54
|
|
|
56
55
|
def init(self):
|
|
@@ -111,13 +110,16 @@ class ESRFPhotonFlux(AbstractFlux):
|
|
|
111
110
|
calib = 0
|
|
112
111
|
|
|
113
112
|
factor = 1.0
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
try:
|
|
114
|
+
aperture = HWR.beamline.diffractometer.aperture
|
|
115
|
+
label = aperture.get_value().name
|
|
116
|
+
aperture_factor = aperture.get_factor(label)
|
|
117
117
|
if isinstance(aperture_factor, tuple):
|
|
118
118
|
factor = aperture_factor[0] + aperture_factor[1] * egy
|
|
119
119
|
else:
|
|
120
120
|
factor = float(aperture_factor)
|
|
121
|
+
except AttributeError:
|
|
122
|
+
factor = 1.0
|
|
121
123
|
|
|
122
124
|
counts = abs(counts * calib * factor)
|
|
123
125
|
if counts < self.threshold:
|
|
@@ -66,18 +66,16 @@ class ID232BeamDefiner(ESRFBeamDefiner):
|
|
|
66
66
|
def __init__(self, *args):
|
|
67
67
|
super().__init__(*args)
|
|
68
68
|
self.tf_cfg = {}
|
|
69
|
-
self.controller = None
|
|
70
69
|
self.tf1 = None
|
|
71
70
|
self.tf2 = None
|
|
72
71
|
|
|
73
72
|
def init(self):
|
|
74
73
|
"""Initialisation"""
|
|
75
74
|
super().init()
|
|
76
|
-
|
|
77
|
-
self.
|
|
78
|
-
self.
|
|
79
|
-
|
|
80
|
-
for beam_cfg in self.config:
|
|
75
|
+
controller = self.get_object_by_role("controller")
|
|
76
|
+
self.tf1 = getattr(controller, self.get_property("tf1"))
|
|
77
|
+
self.tf2 = getattr(controller, self.get_property("tf2"))
|
|
78
|
+
for beam_cfg in self.bd_config:
|
|
81
79
|
name = beam_cfg.get_property("name")
|
|
82
80
|
tf1 = [int(x) for x in beam_cfg.get_property("tf1").split()]
|
|
83
81
|
tf2 = [int(x) for x in beam_cfg.get_property("tf2").split()]
|
|
@@ -65,7 +65,7 @@ class ID30A3BeamDefiner(ESRFBeamDefiner):
|
|
|
65
65
|
|
|
66
66
|
self.controller = self.get_object_by_role("controller")
|
|
67
67
|
_dict = {}
|
|
68
|
-
for beam_cfg in self.
|
|
68
|
+
for beam_cfg in self.bd_config:
|
|
69
69
|
name = beam_cfg.get_property("name")
|
|
70
70
|
_ap_size = beam_cfg.get_property("aperture_size")
|
|
71
71
|
_aperture = self.controller.value_to_enum(_ap_size, idx=1)
|
|
@@ -96,8 +96,8 @@ class ID30A3BeamDefiner(ESRFBeamDefiner):
|
|
|
96
96
|
(str): Current beam size name.
|
|
97
97
|
"""
|
|
98
98
|
_aperture = self.controller.get_value()
|
|
99
|
-
for name in self.beam_config:
|
|
100
|
-
if
|
|
99
|
+
for name, val in self.beam_config.items():
|
|
100
|
+
if val[1] == _aperture:
|
|
101
101
|
return name
|
|
102
102
|
return "UNKNOWN"
|
|
103
103
|
|
|
@@ -145,16 +145,16 @@ mxcubecore/HardwareObjects/ESRF/ESRFEnergyScan.py,sha256=FztM1wCtbcqLWaCg34z-IPq
|
|
|
145
145
|
mxcubecore/HardwareObjects/ESRF/ESRFMD2SC3.py,sha256=jTbMmwp_HYFD8Vr6Hk-y1Hwi9UcSqsrbhGji7dfRpC4,1469
|
|
146
146
|
mxcubecore/HardwareObjects/ESRF/ESRFMetadataManagerClient.py,sha256=bGFsp6EjU1Xb8iujJ90Tph95F335rnKYvimYTwcp2bE,22122
|
|
147
147
|
mxcubecore/HardwareObjects/ESRF/ESRFMultiCollect.py,sha256=38eXiTn0o3u_hcG5vuZSY-jkySRZkXOAgMH5OuRqIF4,22937
|
|
148
|
-
mxcubecore/HardwareObjects/ESRF/ESRFPhotonFlux.py,sha256=
|
|
148
|
+
mxcubecore/HardwareObjects/ESRF/ESRFPhotonFlux.py,sha256=PXJJJO-GfxrTfpw5tgc_dHh5b5kyYbiq-zUXyG7_8tQ,3948
|
|
149
149
|
mxcubecore/HardwareObjects/ESRF/ESRFSC3.py,sha256=Mw2Lj_0w7TapaCesDxhRWSAY1PRG4DJCoLWgYdP_qV4,9545
|
|
150
150
|
mxcubecore/HardwareObjects/ESRF/ESRFSession.py,sha256=iIcJUM0cVlwJdqNZo-L7IY_S2KYHQXPQPupbv4JoAkk,4323
|
|
151
151
|
mxcubecore/HardwareObjects/ESRF/ESRFSmallXrayCentring.py,sha256=YJFMtb3VxHchxTWi_pqrEz3ML1YunoYLkAseDZqF1JA,3617
|
|
152
152
|
mxcubecore/HardwareObjects/ESRF/ESRFXRFSpectrum.py,sha256=4zN3F_VsmQWQVfNwIV9qcUlVLeB830FOl8I36y7xClc,12217
|
|
153
153
|
mxcubecore/HardwareObjects/ESRF/ID231EnergyScan.py,sha256=f6Loqqgl5E64-xACuK-6nF2sH9ftpwa7e1It0C1e-s4,1144
|
|
154
|
-
mxcubecore/HardwareObjects/ESRF/ID232BeamDefiner.py,sha256=
|
|
154
|
+
mxcubecore/HardwareObjects/ESRF/ID232BeamDefiner.py,sha256=4Piso4ftMDSBw3rZJpjoJtU-ARkxVa1Vy49BybleCyY,5030
|
|
155
155
|
mxcubecore/HardwareObjects/ESRF/ID29EnergyScan.py,sha256=9Nscojz8KonwWZltpIcRwH06RC2AtZKZGu-oEbMqLLg,2778
|
|
156
156
|
mxcubecore/HardwareObjects/ESRF/ID29HutchTrigger.py,sha256=vKLuCSuKcHQLvTysQ3r2PGlzY5FkVIDRZt5oOZd3cBE,2949
|
|
157
|
-
mxcubecore/HardwareObjects/ESRF/ID30A3BeamDefiner.py,sha256=
|
|
157
|
+
mxcubecore/HardwareObjects/ESRF/ID30A3BeamDefiner.py,sha256=V7gn4JTYhzG0ajeJwjR68MbJuDt26mHaNROHhd1Z0QI,3996
|
|
158
158
|
mxcubecore/HardwareObjects/ESRF/ID30BBeamDefiner.py,sha256=uZJ0szJFdGysZsgiaxxUYKq1nPVYwK4jZ3xMX74cwqU,5046
|
|
159
159
|
mxcubecore/HardwareObjects/ESRF/MD2MultiCollect.py,sha256=vJwZvNPu0MDUdN0NK_JrDBDChIcEUVmsoIOkwTqn7RQ,7980
|
|
160
160
|
mxcubecore/HardwareObjects/ESRF/OxfordCryostream.py,sha256=JA6Gkz3AChV3H5hlW6o-oTw9rllFN6VCq6_5QOKItdc,7339
|
|
@@ -469,8 +469,8 @@ mxcubecore/utils/conversion.py,sha256=G1bk2Mi2ZwGbZa5pEeiFaKWxhSVXVGqu1L9_SioyUO
|
|
|
469
469
|
mxcubecore/utils/qt_import.py,sha256=0lPmqok_oYQZ059kJCq7RWdg490T8YKyRvoZGyWDy4M,14486
|
|
470
470
|
mxcubecore/utils/tango.py,sha256=lAl7Su_GgyXFEEKZ1yu_2gU18wXHVaBbGR8RYcIOVYk,2100
|
|
471
471
|
mxcubecore/utils/units.py,sha256=Gh7ovTUN00XBMUoyDG5W7akCx1pROL-M6pK2z1ouemg,1361
|
|
472
|
-
mxcubecore-1.
|
|
473
|
-
mxcubecore-1.
|
|
474
|
-
mxcubecore-1.
|
|
475
|
-
mxcubecore-1.
|
|
476
|
-
mxcubecore-1.
|
|
472
|
+
mxcubecore-1.375.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
|
|
473
|
+
mxcubecore-1.375.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
474
|
+
mxcubecore-1.375.0.dist-info/METADATA,sha256=lBTQp0spEaVMOQ1zYROULm8XZKumWhEacg58cAuOTgo,4259
|
|
475
|
+
mxcubecore-1.375.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
476
|
+
mxcubecore-1.375.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|