mxcubecore 1.400.0__py3-none-any.whl → 1.401.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/ESRFXRFSpectrum.py +14 -12
- {mxcubecore-1.400.0.dist-info → mxcubecore-1.401.0.dist-info}/METADATA +1 -1
- {mxcubecore-1.400.0.dist-info → mxcubecore-1.401.0.dist-info}/RECORD +6 -6
- {mxcubecore-1.400.0.dist-info → mxcubecore-1.401.0.dist-info}/COPYING +0 -0
- {mxcubecore-1.400.0.dist-info → mxcubecore-1.401.0.dist-info}/COPYING.LESSER +0 -0
- {mxcubecore-1.400.0.dist-info → mxcubecore-1.401.0.dist-info}/WHEEL +0 -0
|
@@ -63,7 +63,7 @@ class ESRFXRFSpectrum(AbstractXRFSpectrum):
|
|
|
63
63
|
def __init__(self, name):
|
|
64
64
|
super().__init__(name)
|
|
65
65
|
self.cfgfile = None
|
|
66
|
-
self.
|
|
66
|
+
self.config_fit = None
|
|
67
67
|
self.ctrl_hwobj = None
|
|
68
68
|
self.mcafit = None
|
|
69
69
|
self.default_erange = None
|
|
@@ -77,7 +77,7 @@ class ESRFXRFSpectrum(AbstractXRFSpectrum):
|
|
|
77
77
|
"cfgfile",
|
|
78
78
|
"/users/blissadm/local/beamline_configuration/misc/15keV.cfg",
|
|
79
79
|
)
|
|
80
|
-
self.
|
|
80
|
+
self.config_fit = ConfigDict.ConfigDict()
|
|
81
81
|
self.mcafit = ClassMcaTheory.McaTheory(self.cfgfile)
|
|
82
82
|
self.default_erange = literal_eval(
|
|
83
83
|
self.get_property("default_energy_range", "[2.0, 15.0]"),
|
|
@@ -147,22 +147,24 @@ class ESRFXRFSpectrum(AbstractXRFSpectrum):
|
|
|
147
147
|
if self.cfgfile != cfgfile:
|
|
148
148
|
self.cfgfile = cfgfile
|
|
149
149
|
change = True
|
|
150
|
-
self.
|
|
151
|
-
if "concentrations" not in self.
|
|
152
|
-
self.
|
|
150
|
+
self.config_fit.read(self.cfgfile)
|
|
151
|
+
if "concentrations" not in self.config_fit:
|
|
152
|
+
self.config_fit["concentrations"] = {}
|
|
153
153
|
change = True
|
|
154
|
-
if "attenuators" not in self.
|
|
155
|
-
self.
|
|
154
|
+
if "attenuators" not in self.config_fit:
|
|
155
|
+
self.config_fit["attenuators"] = {
|
|
156
|
+
"Matrix": [1, "Water", 1.0, 0.01, 45.0, 45.0]
|
|
157
|
+
}
|
|
156
158
|
change = True
|
|
157
159
|
if "flux" in config:
|
|
158
|
-
self.
|
|
160
|
+
self.config_fit["concentrations"]["flux"] = float(config["flux"])
|
|
159
161
|
change = True
|
|
160
162
|
if "time" in config:
|
|
161
|
-
self.
|
|
163
|
+
self.config_fit["concentrations"]["time"] = float(config["time"])
|
|
162
164
|
change = True
|
|
163
165
|
|
|
164
166
|
if change:
|
|
165
|
-
self.mcafit.configure(self.
|
|
167
|
+
self.mcafit.configure(self.config_fit)
|
|
166
168
|
|
|
167
169
|
def spectrum_analyse(
|
|
168
170
|
self,
|
|
@@ -207,8 +209,8 @@ class ESRFXRFSpectrum(AbstractXRFSpectrum):
|
|
|
207
209
|
ydata = data[1]
|
|
208
210
|
|
|
209
211
|
try:
|
|
210
|
-
xmin = self.
|
|
211
|
-
xmax = self.
|
|
212
|
+
xmin = self.config_fit["fit"]["xmin"]
|
|
213
|
+
xmax = self.config_fit["fit"]["xmax"]
|
|
212
214
|
except KeyError:
|
|
213
215
|
xmin = data[0][0]
|
|
214
216
|
xmax = data[0][-1]
|
|
@@ -149,7 +149,7 @@ mxcubecore/HardwareObjects/ESRF/ESRFPhotonFlux.py,sha256=LljzIpsJYlH1hS_z9yfYjQb
|
|
|
149
149
|
mxcubecore/HardwareObjects/ESRF/ESRFSC3.py,sha256=GoSntiorSYcbJT5z0jfJ-6-_OMlW74Bm6xPCeF7iLGw,9248
|
|
150
150
|
mxcubecore/HardwareObjects/ESRF/ESRFSession.py,sha256=KnZ__trc7GE2eTpNTQ8B7ex1XQ4aRbq0cZHS7hZKRm0,4324
|
|
151
151
|
mxcubecore/HardwareObjects/ESRF/ESRFSmallXrayCentring.py,sha256=YJFMtb3VxHchxTWi_pqrEz3ML1YunoYLkAseDZqF1JA,3617
|
|
152
|
-
mxcubecore/HardwareObjects/ESRF/ESRFXRFSpectrum.py,sha256=
|
|
152
|
+
mxcubecore/HardwareObjects/ESRF/ESRFXRFSpectrum.py,sha256=3bFdXCGhykA9Uv5vjJEG8GU-6Qz1MGie0QpYyuHzzwg,12295
|
|
153
153
|
mxcubecore/HardwareObjects/ESRF/ID232BeamDefiner.py,sha256=4Piso4ftMDSBw3rZJpjoJtU-ARkxVa1Vy49BybleCyY,5030
|
|
154
154
|
mxcubecore/HardwareObjects/ESRF/ID29HutchTrigger.py,sha256=czfwz-v7T8NhfoKw0LES_f3qUSopgavFZI9yFA4Kw2M,2939
|
|
155
155
|
mxcubecore/HardwareObjects/ESRF/ID30A3BeamDefiner.py,sha256=V7gn4JTYhzG0ajeJwjR68MbJuDt26mHaNROHhd1Z0QI,3996
|
|
@@ -467,8 +467,8 @@ mxcubecore/utils/conversion.py,sha256=G1bk2Mi2ZwGbZa5pEeiFaKWxhSVXVGqu1L9_SioyUO
|
|
|
467
467
|
mxcubecore/utils/qt_import.py,sha256=DobjYIAhrixXoOH9oaus1-PsW5hSAI4nIyPp06Izw4U,14719
|
|
468
468
|
mxcubecore/utils/tango.py,sha256=vwEVrIrWKEFaeaJUz3xbaC7XWHY8ZeJ-pfcSrTfZPIE,2114
|
|
469
469
|
mxcubecore/utils/units.py,sha256=Gh7ovTUN00XBMUoyDG5W7akCx1pROL-M6pK2z1ouemg,1361
|
|
470
|
-
mxcubecore-1.
|
|
471
|
-
mxcubecore-1.
|
|
472
|
-
mxcubecore-1.
|
|
473
|
-
mxcubecore-1.
|
|
474
|
-
mxcubecore-1.
|
|
470
|
+
mxcubecore-1.401.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
|
|
471
|
+
mxcubecore-1.401.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
472
|
+
mxcubecore-1.401.0.dist-info/METADATA,sha256=E7JwugqJOkZxShS7dS_tuqKds8hev_p0n-EbBhZbv9c,4259
|
|
473
|
+
mxcubecore-1.401.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
474
|
+
mxcubecore-1.401.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|