mxcubecore 1.341.0__py3-none-any.whl → 1.342.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.
@@ -24,6 +24,7 @@ Any object that inherits from TaskNode can be added to and handled by
24
24
  the QueueModel.
25
25
  """
26
26
 
27
+ import ast
27
28
  import copy
28
29
  import logging
29
30
  import os
@@ -1705,6 +1706,7 @@ class AcquisitionParameters(object):
1705
1706
  self.skip_existing_images = False
1706
1707
  self.detector_binning_mode = str()
1707
1708
  self.detector_roi_mode = str()
1709
+ self.detector_mode_list = self.get_detector_mode_list()
1708
1710
  self.induce_burn = False
1709
1711
  self.mesh_range = ()
1710
1712
  self.cell_counting = "zig-zag"
@@ -1753,6 +1755,7 @@ class AcquisitionParameters(object):
1753
1755
  "skip_existing_images": self.skip_existing_images,
1754
1756
  "detector_binning_mode": self.detector_binning_mode,
1755
1757
  "detector_roi_mode": self.detector_roi_mode,
1758
+ "detector_mode_list": self.detector_mode_list,
1756
1759
  "induce_burn": self.induce_burn,
1757
1760
  "mesh_range": self.mesh_range,
1758
1761
  "mesh_snapshot": self.mesh_snapshot,
@@ -1771,6 +1774,11 @@ class AcquisitionParameters(object):
1771
1774
  def copy(self):
1772
1775
  return copy.deepcopy(self)
1773
1776
 
1777
+ def get_detector_mode_list(self):
1778
+ return ast.literal_eval(
1779
+ HWR.beamline.detector.get_property("roi_mode_list", "[]")
1780
+ )
1781
+
1774
1782
 
1775
1783
  class XrayImagingParameters(object):
1776
1784
  def __init__(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mxcubecore
3
- Version: 1.341.0
3
+ Version: 1.342.0
4
4
  Summary: Core libraries for the MXCuBE application
5
5
  License: LGPL-3.0-or-later
6
6
  Keywords: mxcube,mxcube3,mxcubecore
@@ -444,7 +444,7 @@ mxcubecore/model/protocols/exporter.py,sha256=uY-O7lFlRKL8A0SWB_VRI22nAxq1KqIFmE
444
444
  mxcubecore/model/protocols/sardana.py,sha256=eeuqM0C4JU4mm1WPVqwAR52nWgWamJNh5KLnde_7Wqw,1260
445
445
  mxcubecore/model/protocols/tango.py,sha256=izmX-V_rKFmwYTJToWkyBONSZdEQsHVbi6CWHTBhBFs,2241
446
446
  mxcubecore/model/queue_model_enumerables.py,sha256=hSOp77Xn0wzUGDl5EaLtblr8ND9FXytqadtW40VFDcA,2330
447
- mxcubecore/model/queue_model_objects.py,sha256=05QWGFdJlLBoQuOFgcnE7Jv72zZElNEAMALIA3l7_UI,100464
447
+ mxcubecore/model/queue_model_objects.py,sha256=ooEdMEGO-jfuL0GVyKvwbcHiEjfeLvUcPW5b_XpgMuM,100750
448
448
  mxcubecore/protocols_config.py,sha256=0ujkNkTteeSvY3gNjsdhRzQw9FND2S8jNO_ZdrHNPR8,5703
449
449
  mxcubecore/queue_entry/__init__.py,sha256=fQLLDdLhLlRdV_pisyb9-G4dbqrGx_iroE4048p2sR8,4087
450
450
  mxcubecore/queue_entry/advanced_connector.py,sha256=l0GFbAu64p5mIwRL5ZEJOr08NXAdRvYLR-DXoN-DyUs,3177
@@ -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.341.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
469
- mxcubecore-1.341.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
470
- mxcubecore-1.341.0.dist-info/METADATA,sha256=QiP1KW6bLixc0er0-IlhH_BVw0XkhkKQTx4iiAhzrhU,4262
471
- mxcubecore-1.341.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
472
- mxcubecore-1.341.0.dist-info/RECORD,,
468
+ mxcubecore-1.342.0.dist-info/COPYING,sha256=u-Mc8zCecwyo4YoP8UulmzCiZZ_MmCLROd_NBtOcRj0,35148
469
+ mxcubecore-1.342.0.dist-info/COPYING.LESSER,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
470
+ mxcubecore-1.342.0.dist-info/METADATA,sha256=3WwGYbWufoChUInGV1A1Mr_aQ-9hQWujYeipivkL86s,4262
471
+ mxcubecore-1.342.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
472
+ mxcubecore-1.342.0.dist-info/RECORD,,