mxcubecore 1.390.0__py3-none-any.whl → 1.392.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.

@@ -27,7 +27,7 @@ class ESRFSession(Session.Session):
27
27
  archive_base_directory, archive_folder
28
28
  )
29
29
 
30
- def get_full_path(self, subdir: str, tag: str) -> Tuple[str, str]:
30
+ def get_full_paths(self, subdir: str, tag: str) -> Tuple[str, str]:
31
31
  """
32
32
  Returns the full path to both image and processed data.
33
33
  The path(s) returned will follow the convention:
@@ -610,6 +610,22 @@ class GenericDiffractometer(HardwareObject):
610
610
  """
611
611
  return self.motor_hwobj_dict.get("phiz")
612
612
 
613
+ @property
614
+ def zoom(self):
615
+ """zoom motor object
616
+
617
+ NBNB TBD This is supposedly now living in AbstractSampleView,
618
+ And the property was removed in an earlier PR (20251021, 15:24 Elmir Jagudin)
619
+ BUT 1) there does not seem to be any mechanism to set it from config there
620
+ 2) it is configured on the diffractometer according to available config files
621
+ 3) accessing diffractometer.zoom is all through the code
622
+ This needs global refactoring, but meanwhile this property should remain
623
+
624
+ Returns:
625
+ AbstractActuator
626
+ """
627
+ return self.motor_hwobj_dict.get("zoom")
628
+
613
629
  def is_ready(self):
614
630
  """
615
631
  Detects if device is ready
@@ -1310,7 +1310,8 @@ class SampleCentred(Payload):
1310
1310
  self._wavelengths = tuple((data_model.wavelengths[0],))
1311
1311
  # if data_model.wftype != "diffractcal":
1312
1312
  # self._detectorSetting = data_model.detector_setting
1313
- self._detectorSetting = data_model.detector_setting
1313
+ if data_model.wftype != "diffractcal":
1314
+ self._detectorSetting = data_model.detector_setting
1314
1315
 
1315
1316
  @property
1316
1317
  def imageWidth(self):
@@ -844,6 +844,7 @@ class GphlWorkflow(HardwareObject):
844
844
  HWR.beamline.gphl_connection.open_connection()
845
845
 
846
846
  if data_model.wftype == "transcal":
847
+ self._workflow_queue = gevent.queue.Queue()
847
848
  return
848
849
  elif data_model.automation_mode:
849
850
  params = data_model.auto_acq_parameters[0]
@@ -325,31 +325,30 @@ class ICATLIMS(AbstractLims):
325
325
  self.__get_sample_information_by(sample_sheet_id)
326
326
  )
327
327
  if sample_information is not None:
328
- if len(HWR.beamline.session.get_full_path("", "")) > 0:
329
- destination_folder = (
330
- HWR.beamline.session.get_base_process_directory()
331
- )
332
- msg = "Download restource: "
333
- msg += f"sample_sheet_id={sample_sheet_id} "
334
- msg += f"destination_folder={destination_folder}"
335
- logger.debug(msg)
336
- downloads = self._download_resources(
337
- sample_sheet_id,
338
- sample_information.resources,
339
- destination_folder,
340
- sample_name,
341
- )
342
- msg = f"downloaded {len(downloads)} resources"
343
- logger.debug(msg)
344
- if len(downloads) > 0:
345
- try:
346
- self.__add_download_path_to_processing_plan(
347
- processing_plan, downloads
348
- )
349
- except RuntimeError:
350
- logger.exception(
351
- "Failed __add_download_path_to_processing_plan"
352
- )
328
+ destination_folder = (
329
+ HWR.beamline.session.get_base_process_directory()
330
+ )
331
+ msg = "Download resource: "
332
+ msg += f"sample_sheet_id={sample_sheet_id} "
333
+ msg += f"destination_folder={destination_folder}"
334
+ logger.debug(msg)
335
+ downloads = self._download_resources(
336
+ sample_sheet_id,
337
+ sample_information.resources,
338
+ destination_folder,
339
+ sample_name,
340
+ )
341
+ msg = f"downloaded {len(downloads)} resources"
342
+ logger.debug(msg)
343
+ if len(downloads) > 0:
344
+ try:
345
+ self.__add_download_path_to_processing_plan(
346
+ processing_plan, downloads
347
+ )
348
+ except RuntimeError:
349
+ logger.exception(
350
+ "Failed __add_download_path_to_processing_plan"
351
+ )
353
352
 
354
353
  processing_plan = {
355
354
  item["key"]: item["value"] for item in processing_plan
@@ -106,9 +106,9 @@ def queue_update_result(server_hwobj, node_id, html_report):
106
106
  return result
107
107
 
108
108
 
109
- def queue_get_full_path(server_hwobj, subdir, tag):
109
+ def queue_get_full_paths(server_hwobj, subdir, tag):
110
110
  """ """
111
- return HWR.beamline.session.get_full_path(subdir, tag)
111
+ return HWR.beamline.session.get_full_paths(subdir, tag)
112
112
 
113
113
 
114
114
  def queue_get_model_code(server_hwobj):
@@ -262,7 +262,7 @@ class Session(HardwareObject):
262
262
 
263
263
  return f"{directory}/"
264
264
 
265
- def get_full_path(self, subdir: str = "", tag: str = "") -> Tuple[str, str]:
265
+ def get_full_paths(self, subdir: str = "", tag: str = "") -> Tuple[str, str]:
266
266
  """
267
267
  Returns the full path to both image and processed data.
268
268
  The path(s) returned will follow the convention:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mxcubecore
3
- Version: 1.390.0
3
+ Version: 1.392.0
4
4
  Summary: Core libraries for the MXCuBE application
5
5
  License: LGPL-3.0-or-later
6
6
  Keywords: mxcube,mxcube3,mxcubecore
@@ -147,7 +147,7 @@ mxcubecore/HardwareObjects/ESRF/ESRFMetadataManagerClient.py,sha256=bGFsp6EjU1Xb
147
147
  mxcubecore/HardwareObjects/ESRF/ESRFMultiCollect.py,sha256=38eXiTn0o3u_hcG5vuZSY-jkySRZkXOAgMH5OuRqIF4,22937
148
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
- mxcubecore/HardwareObjects/ESRF/ESRFSession.py,sha256=iIcJUM0cVlwJdqNZo-L7IY_S2KYHQXPQPupbv4JoAkk,4323
150
+ mxcubecore/HardwareObjects/ESRF/ESRFSession.py,sha256=KnZ__trc7GE2eTpNTQ8B7ex1XQ4aRbq0cZHS7hZKRm0,4324
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/ID232BeamDefiner.py,sha256=4Piso4ftMDSBw3rZJpjoJtU-ARkxVa1Vy49BybleCyY,5030
@@ -180,11 +180,11 @@ mxcubecore/HardwareObjects/ExporterMotor.py,sha256=7XjyUcymJjJM7YVyteBxjLutgfSuT
180
180
  mxcubecore/HardwareObjects/ExporterNState.py,sha256=BH9jkRoud4bHLiflj_1mgDL0Y-LmMjesfTtTGr7EzJ0,6129
181
181
  mxcubecore/HardwareObjects/FlexHCD.py,sha256=NqfBabwNH466WmHZH--UIFZf7XEZkN7QEjO6iXsLq1g,23394
182
182
  mxcubecore/HardwareObjects/FlexHCDMaintenance.py,sha256=0fPa-gdp_BNYwz2RawpS-2L99zsuabg8Oc5R8RIRGA8,5008
183
- mxcubecore/HardwareObjects/GenericDiffractometer.py,sha256=H8zILWvAQ7eznrMz-lfSAdHgBvpu06YtGwAth6-htmI,50027
183
+ mxcubecore/HardwareObjects/GenericDiffractometer.py,sha256=YsvCraZ1Oa-JVQYTqH-MdpBICrYdeGZIsEEHvpZhBqE,50671
184
184
  mxcubecore/HardwareObjects/Gphl/CollectEmulator.py,sha256=iiH6EblDwEMdxl44BswHJEwK-6qjsG3tXfdq9kO2j74,13015
185
- mxcubecore/HardwareObjects/Gphl/GphlMessages.py,sha256=3WSBmUGLka4gilfwpqXyc4SJMlOt9y2sRNrOiE0-DaM,35759
185
+ mxcubecore/HardwareObjects/Gphl/GphlMessages.py,sha256=wUjow_8HeDbxhRPVTzUB6dpJeN8oOEgFdKzRJTtNovE,35810
186
186
  mxcubecore/HardwareObjects/Gphl/GphlQueueEntry.py,sha256=Rwu6YL8U4knibWI9yOXBoUVuayL6O0rHQWQuEP2Hu_g,2309
187
- mxcubecore/HardwareObjects/Gphl/GphlWorkflow.py,sha256=vlNhXkP2Ob-bvOuRY5rYVTSgZ8ZULrSQYYhtSS9V4fA,132177
187
+ mxcubecore/HardwareObjects/Gphl/GphlWorkflow.py,sha256=jd-JZxcFgn4p60VZBPDZzPUuCo2q05M6iM-mA9uXDfc,132233
188
188
  mxcubecore/HardwareObjects/Gphl/GphlWorkflowConnection.py,sha256=s6B8BdgU6IYeGxi69QqJiM-ZUu34c-ZlaX3S5yRl4wo,50316
189
189
  mxcubecore/HardwareObjects/Gphl/Transcal2MiniKappa.py,sha256=Dzf05WSRC5vtOOluZ69f5xZrr6BmT7ITu-OfrKMqemc,9777
190
190
  mxcubecore/HardwareObjects/Gphl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -196,7 +196,7 @@ mxcubecore/HardwareObjects/GrobMotor.py,sha256=l5A9Us_ceLXlhEF6RNwyXQsI56fJiobWh
196
196
  mxcubecore/HardwareObjects/GrobSampleChanger.py,sha256=LMetcL45fWrwP4C8rtENrEDNydelLpJ77SD1JC5C3go,8113
197
197
  mxcubecore/HardwareObjects/Harvester.py,sha256=0TYUXmz-Pmfd7Dhz7ToUGHzJRuJmnga8-4BK4B0KGQA,26524
198
198
  mxcubecore/HardwareObjects/HarvesterMaintenance.py,sha256=8s4yHDEFG-C1WYyW_RlwrFPSpc8o5hGi14aQuFQFrHs,9405
199
- mxcubecore/HardwareObjects/ICATLIMS.py,sha256=YMlha9sg6U1EWSiKZ1Uy8fbud9XdfYNH9-oHESwPD34,54814
199
+ mxcubecore/HardwareObjects/ICATLIMS.py,sha256=AaCIqI54DtwV8y82_a3aJbbQ3EFUfG26JBi0l94nM2U,54641
200
200
  mxcubecore/HardwareObjects/ISARAMaint.py,sha256=I8LHXK6wCfzixsxWmmcqWlrdaL3AOX91XmVeAwT7GPk,8959
201
201
  mxcubecore/HardwareObjects/LNLS/EPICSActuator.py,sha256=3dDj6aXyTz03m8osdA6udq_a4bch-KNcUMrXSNvbG5Q,2587
202
202
  mxcubecore/HardwareObjects/LNLS/EPICSMotor.py,sha256=lRTc1t32rJKNTIcnKCECrqo2m9BhlYvLq9NWg4Y0w0Q,3576
@@ -252,7 +252,7 @@ mxcubecore/HardwareObjects/MotorWPositions.py,sha256=QDX8yF8KTTh75e4H-k0f1AaavGi
252
252
  mxcubecore/HardwareObjects/MotorsNPosition.py,sha256=TvxC4yiAVzu962x7I1ZdqoUXihI6JsP37ifpNOiRqZ4,8636
253
253
  mxcubecore/HardwareObjects/MultiplePositions.py,sha256=03L8P4q2-4JnsczLO95L9ASUkQ3bmBb5PewUdBIGH4I,11661
254
254
  mxcubecore/HardwareObjects/NState.py,sha256=GKjlPEbc7XsTGjI228ESl61CwYFz6pbBXYrUVmG0i64,1772
255
- mxcubecore/HardwareObjects/Native/__init__.py,sha256=vamSkuv4qx2u7uizZ2TXWB6Rz3meil72WOiSNT2YF7w,4198
255
+ mxcubecore/HardwareObjects/Native/__init__.py,sha256=gq9QKYuZXqDzNPomA4PBu-cxhP-_9jD9qYxlcPsQKdw,4200
256
256
  mxcubecore/HardwareObjects/ObjectsController.py,sha256=Oh5G7yqdlcv5TAQzu0myRFAdmnhM1OFnI-auGzlTzxY,697
257
257
  mxcubecore/HardwareObjects/PlateManipulator.py,sha256=OMe33zhhVy0RO8_iTVsnKfDrRP27SqcqUynECRgH1vY,24734
258
258
  mxcubecore/HardwareObjects/PlateManipulatorMaintenance.py,sha256=-bZ4gvFo4-ept0VSeDZLsDGGTQU4GSWgbYJU_lJ6VNc,3313
@@ -312,7 +312,7 @@ mxcubecore/HardwareObjects/SampleStage.py,sha256=GykGZfus7B_0qeHvMT7pU0MZ8CBjVaA
312
312
  mxcubecore/HardwareObjects/SampleView.py,sha256=zTgn15AXgzKw0RtxQCl-sLqwqTWyJGgPsiJ8FPQfJZY,19418
313
313
  mxcubecore/HardwareObjects/SardanaMotor.py,sha256=-A7-45LzGV_Ghpzta8yDsJGw-RCZpVnc77Bk_96iOzc,7470
314
314
  mxcubecore/HardwareObjects/SecureXMLRpcRequestHandler.py,sha256=cpcSYcKU25_mBENUJ1oFBual9NRdg0VPnBhbTdYghGY,4215
315
- mxcubecore/HardwareObjects/Session.py,sha256=P6VjQPJPDwrTWjqRkolkh0wwJFr7p81ROJ_GnqYLDH8,13076
315
+ mxcubecore/HardwareObjects/Session.py,sha256=33HneK_kzF91QVClblYlL6tD42WwGnv4ue-u0Sc5Owk,13077
316
316
  mxcubecore/HardwareObjects/SimpleHTML.py,sha256=OOGN4ljwn2QtM9ZESDUHSTYvj7xsOOlMyrYs6p2XVDU,9175
317
317
  mxcubecore/HardwareObjects/SpecMotor.py,sha256=J-92iDpbUK7Odm1ZBMF3ywUtCR3q-9_-s8AfyWkJ-us,2134
318
318
  mxcubecore/HardwareObjects/SpecMotorWPositions.py,sha256=yHvb-iNTMIGrGPXi1EZD1X3XUwDz0FmbpsU22UZeHi8,3818
@@ -467,8 +467,8 @@ mxcubecore/utils/conversion.py,sha256=G1bk2Mi2ZwGbZa5pEeiFaKWxhSVXVGqu1L9_SioyUO
467
467
  mxcubecore/utils/qt_import.py,sha256=0lPmqok_oYQZ059kJCq7RWdg490T8YKyRvoZGyWDy4M,14486
468
468
  mxcubecore/utils/tango.py,sha256=vwEVrIrWKEFaeaJUz3xbaC7XWHY8ZeJ-pfcSrTfZPIE,2114
469
469
  mxcubecore/utils/units.py,sha256=Gh7ovTUN00XBMUoyDG5W7akCx1pROL-M6pK2z1ouemg,1361
470
- mxcubecore-1.390.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
471
- mxcubecore-1.390.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
472
- mxcubecore-1.390.0.dist-info/METADATA,sha256=XaujJyIEQcdICz8jo7vzzvabSnlwrQpY2pL3z5ePvhE,4259
473
- mxcubecore-1.390.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
474
- mxcubecore-1.390.0.dist-info/RECORD,,
470
+ mxcubecore-1.392.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
471
+ mxcubecore-1.392.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
472
+ mxcubecore-1.392.0.dist-info/METADATA,sha256=FTGKtaM_FSJyBNuEo7HzrZwgsBeD7WWQBjLQixJY5RI,4259
473
+ mxcubecore-1.392.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
474
+ mxcubecore-1.392.0.dist-info/RECORD,,