orGUI 1.1.2__tar.gz → 1.3.0__tar.gz
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.
- {orgui-1.1.2 → orgui-1.3.0}/PKG-INFO +6 -5
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/PKG-INFO +6 -5
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/SOURCES.txt +19 -11
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/requires.txt +1 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/__init__.py +3 -3
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/ArrayTableDialog.py +4 -4
- orgui-1.3.0/orgui/app/QHKLDialog.py +114 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/QReflectionSelector.py +7 -6
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/QScanSelector.py +389 -22
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/QUBCalculator.py +150 -20
- orgui-1.3.0/orgui/app/_roi_sum_accel.py +69 -0
- orgui-1.3.0/orgui/app/bgroi.py +370 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/database.py +82 -25
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/orGUI.py +823 -320
- orgui-1.3.0/orgui/app/peak1Dintegr.py +2187 -0
- orgui-1.3.0/orgui/app/qutils.py +368 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/backends.py +24 -49
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/beamline/P212_tools.py +25 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/beamline/__init__.py +4 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/beamline/fio_reader.py +4 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/beamline/id31_tools.py +51 -5
- orgui-1.3.0/orgui/backend/scans.py +159 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/udefaults.py +4 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/universalScanLoader.py +19 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/util.py +4 -4
- orgui-1.3.0/orgui/datautils/xrayutils/CTRcalc.py +884 -0
- orgui-1.3.0/orgui/datautils/xrayutils/CTRfilm.py +903 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/CTRopt.py +34 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/CTRplotutil.py +4 -4
- orgui-1.1.2/orgui/datautils/xrayutils/CTRcalc.py → orgui-1.3.0/orgui/datautils/xrayutils/CTRuc.py +381 -1456
- orgui-1.3.0/orgui/datautils/xrayutils/CTRutil.py +530 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/DetectorCalibration.py +14 -10
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/HKLVlieg.py +118 -19
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/ReciprocalNavigation.py +4 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/__init__.py +4 -4
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/test/test_DetectorCalibration.py +24 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/main.py +26 -2
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/__init__.py +12 -2
- orgui-1.3.0/orgui/resources/icons/anchor-ROI.png +0 -0
- orgui-1.3.0/orgui/resources/icons/anchor-ROI.svg +104 -0
- orgui-1.3.0/orgui/resources/icons/document-nx-new.png +0 -0
- orgui-1.3.0/orgui/resources/icons/document-nx-new.svg +178 -0
- orgui-1.3.0/orgui/resources/icons/incident_corrections.png +0 -0
- orgui-1.3.0/orgui/resources/icons/incident_corrections.svg +441 -0
- orgui-1.3.0/orgui/resources/icons/intersect_s1.png +0 -0
- orgui-1.3.0/orgui/resources/icons/intersect_s1.svg +88 -0
- orgui-1.3.0/orgui/resources/icons/intersect_s2.png +0 -0
- orgui-1.3.0/orgui/resources/icons/intersect_s2.svg +88 -0
- orgui-1.3.0/orgui/resources/icons/logo_v1.png +0 -0
- orgui-1.3.0/orgui/resources/icons/logo_v1.svg +197 -0
- {orgui-1.1.2 → orgui-1.3.0}/pyproject.toml +3 -4
- orgui-1.1.2/orgui/app/qutils.py +0 -51
- orgui-1.1.2/orgui/backend/scans.py +0 -95
- orgui-1.1.2/orgui/resources/icons/diffractometer_v2.png +0 -0
- orgui-1.1.2/orgui/resources/icons/diffractometer_v2.svg +0 -1212
- orgui-1.1.2/orgui/resources/icons/diffractometer_v3.svg +0 -1226
- orgui-1.1.2/orgui/resources/icons/diffractometer_v3_norm.svg +0 -968
- orgui-1.1.2/orgui/resources/icons/diffractometer_v3_opt.svg +0 -5627
- {orgui-1.1.2 → orgui-1.3.0}/LICENSE +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/README.rst +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/dependency_links.txt +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/entry_points.txt +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orGUI.egg-info/top_level.txt +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/app/__init__.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/__init__.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/backend/beamline/ID31DiffractLinTilt.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/__init__.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/_CTRcalc_accel.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/element_data.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/test/__init__.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/test/test_CTRcalc.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/test/test_HKLcalc.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Fe3O4(100).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt100.bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt100_small.bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt110.bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt111.bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt310.bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/Pt3O4(100).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/PtO(001).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/PtO(010).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/PtO(100).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/__init__.py +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/datautils/xrayutils/unitcells/a-PtO2(0001).bul +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/alpha.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/alpha.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/diffractometer_v3.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/disable-image.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/disable-image.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/document-nx-open.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/document-nx-open.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/document-nx-save.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/document-nx-save.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-all-link.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-all-link.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-horizontal-link.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-horizontal-link.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-no-link.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-no-link.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-view.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/lattice-view.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/logo.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/logo.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/max_image.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/max_image.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/max_image2.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/max_image2.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/orguiicon.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/orguiicon.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search-image.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search-image.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search-reflection.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search-reflection.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/search.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/select-image.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/select-image.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/set-reflection.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/set-reflection.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/sum_image.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/sum_image.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/sum_image2.png +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/orgui/resources/icons/sum_image2.svg +0 -0
- {orgui-1.1.2 → orgui-1.3.0}/setup.cfg +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: orGUI
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: orGUI: Orientation and Integration with 2D detectors
|
|
5
5
|
Author-email: Timo Fuchs <tfuchs@cornell.edu>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: Environment :: Win32 (MS Windows)
|
|
9
9
|
Classifier: Environment :: X11 Applications :: Qt
|
|
10
10
|
Classifier: Intended Audience :: End Users/Desktop
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
13
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
14
|
Classifier: Operating System :: Microsoft :: Windows
|
|
16
15
|
Classifier: Operating System :: POSIX
|
|
@@ -21,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
|
21
20
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
22
21
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
23
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.8
|
|
25
24
|
Description-Content-Type: text/x-rst
|
|
26
25
|
License-File: LICENSE
|
|
27
26
|
Requires-Dist: numpy>=1.12
|
|
@@ -43,6 +42,8 @@ Provides-Extra: full
|
|
|
43
42
|
Requires-Dist: qtconsole; extra == "full"
|
|
44
43
|
Requires-Dist: ase; extra == "full"
|
|
45
44
|
Requires-Dist: numba; extra == "full"
|
|
45
|
+
Requires-Dist: PyOpenGL; extra == "full"
|
|
46
|
+
Dynamic: license-file
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
orGUI: Orientation and Integration with 2D detectors
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: orGUI
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: orGUI: Orientation and Integration with 2D detectors
|
|
5
5
|
Author-email: Timo Fuchs <tfuchs@cornell.edu>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: Environment :: Win32 (MS Windows)
|
|
9
9
|
Classifier: Environment :: X11 Applications :: Qt
|
|
10
10
|
Classifier: Intended Audience :: End Users/Desktop
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
13
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
14
|
Classifier: Operating System :: Microsoft :: Windows
|
|
16
15
|
Classifier: Operating System :: POSIX
|
|
@@ -21,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
|
21
20
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
22
21
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
23
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.8
|
|
25
24
|
Description-Content-Type: text/x-rst
|
|
26
25
|
License-File: LICENSE
|
|
27
26
|
Requires-Dist: numpy>=1.12
|
|
@@ -43,6 +42,8 @@ Provides-Extra: full
|
|
|
43
42
|
Requires-Dist: qtconsole; extra == "full"
|
|
44
43
|
Requires-Dist: ase; extra == "full"
|
|
45
44
|
Requires-Dist: numba; extra == "full"
|
|
45
|
+
Requires-Dist: PyOpenGL; extra == "full"
|
|
46
|
+
Dynamic: license-file
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
orGUI: Orientation and Integration with 2D detectors
|
|
@@ -9,19 +9,17 @@ orGUI.egg-info/requires.txt
|
|
|
9
9
|
orGUI.egg-info/top_level.txt
|
|
10
10
|
orgui/__init__.py
|
|
11
11
|
orgui/main.py
|
|
12
|
-
orgui.egg-info/PKG-INFO
|
|
13
|
-
orgui.egg-info/SOURCES.txt
|
|
14
|
-
orgui.egg-info/dependency_links.txt
|
|
15
|
-
orgui.egg-info/entry_points.txt
|
|
16
|
-
orgui.egg-info/requires.txt
|
|
17
|
-
orgui.egg-info/top_level.txt
|
|
18
12
|
orgui/app/ArrayTableDialog.py
|
|
13
|
+
orgui/app/QHKLDialog.py
|
|
19
14
|
orgui/app/QReflectionSelector.py
|
|
20
15
|
orgui/app/QScanSelector.py
|
|
21
16
|
orgui/app/QUBCalculator.py
|
|
22
17
|
orgui/app/__init__.py
|
|
18
|
+
orgui/app/_roi_sum_accel.py
|
|
19
|
+
orgui/app/bgroi.py
|
|
23
20
|
orgui/app/database.py
|
|
24
21
|
orgui/app/orGUI.py
|
|
22
|
+
orgui/app/peak1Dintegr.py
|
|
25
23
|
orgui/app/qutils.py
|
|
26
24
|
orgui/backend/__init__.py
|
|
27
25
|
orgui/backend/backends.py
|
|
@@ -36,8 +34,11 @@ orgui/backend/beamline/id31_tools.py
|
|
|
36
34
|
orgui/datautils/__init__.py
|
|
37
35
|
orgui/datautils/util.py
|
|
38
36
|
orgui/datautils/xrayutils/CTRcalc.py
|
|
37
|
+
orgui/datautils/xrayutils/CTRfilm.py
|
|
39
38
|
orgui/datautils/xrayutils/CTRopt.py
|
|
40
39
|
orgui/datautils/xrayutils/CTRplotutil.py
|
|
40
|
+
orgui/datautils/xrayutils/CTRuc.py
|
|
41
|
+
orgui/datautils/xrayutils/CTRutil.py
|
|
41
42
|
orgui/datautils/xrayutils/DetectorCalibration.py
|
|
42
43
|
orgui/datautils/xrayutils/HKLVlieg.py
|
|
43
44
|
orgui/datautils/xrayutils/ReciprocalNavigation.py
|
|
@@ -63,18 +64,23 @@ orgui/datautils/xrayutils/unitcells/a-PtO2(0001).bul
|
|
|
63
64
|
orgui/resources/__init__.py
|
|
64
65
|
orgui/resources/icons/alpha.png
|
|
65
66
|
orgui/resources/icons/alpha.svg
|
|
66
|
-
orgui/resources/icons/
|
|
67
|
-
orgui/resources/icons/
|
|
67
|
+
orgui/resources/icons/anchor-ROI.png
|
|
68
|
+
orgui/resources/icons/anchor-ROI.svg
|
|
68
69
|
orgui/resources/icons/diffractometer_v3.png
|
|
69
|
-
orgui/resources/icons/diffractometer_v3.svg
|
|
70
|
-
orgui/resources/icons/diffractometer_v3_norm.svg
|
|
71
|
-
orgui/resources/icons/diffractometer_v3_opt.svg
|
|
72
70
|
orgui/resources/icons/disable-image.png
|
|
73
71
|
orgui/resources/icons/disable-image.svg
|
|
72
|
+
orgui/resources/icons/document-nx-new.png
|
|
73
|
+
orgui/resources/icons/document-nx-new.svg
|
|
74
74
|
orgui/resources/icons/document-nx-open.png
|
|
75
75
|
orgui/resources/icons/document-nx-open.svg
|
|
76
76
|
orgui/resources/icons/document-nx-save.png
|
|
77
77
|
orgui/resources/icons/document-nx-save.svg
|
|
78
|
+
orgui/resources/icons/incident_corrections.png
|
|
79
|
+
orgui/resources/icons/incident_corrections.svg
|
|
80
|
+
orgui/resources/icons/intersect_s1.png
|
|
81
|
+
orgui/resources/icons/intersect_s1.svg
|
|
82
|
+
orgui/resources/icons/intersect_s2.png
|
|
83
|
+
orgui/resources/icons/intersect_s2.svg
|
|
78
84
|
orgui/resources/icons/lattice-all-link.png
|
|
79
85
|
orgui/resources/icons/lattice-all-link.svg
|
|
80
86
|
orgui/resources/icons/lattice-horizontal-link.png
|
|
@@ -85,6 +91,8 @@ orgui/resources/icons/lattice-view.png
|
|
|
85
91
|
orgui/resources/icons/lattice-view.svg
|
|
86
92
|
orgui/resources/icons/logo.png
|
|
87
93
|
orgui/resources/icons/logo.svg
|
|
94
|
+
orgui/resources/icons/logo_v1.png
|
|
95
|
+
orgui/resources/icons/logo_v1.svg
|
|
88
96
|
orgui/resources/icons/max_image.png
|
|
89
97
|
orgui/resources/icons/max_image.svg
|
|
90
98
|
orgui/resources/icons/max_image2.png
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# /*##########################################################################
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2020-
|
|
4
|
+
# Copyright (c) 2020-2025 Timo Fuchs
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
|
|
27
27
|
"""
|
|
28
28
|
__author__ = "Timo Fuchs"
|
|
29
|
-
__copyright__ = "Copyright 2020-
|
|
29
|
+
__copyright__ = "Copyright 2020-2025 Timo Fuchs"
|
|
30
30
|
__credits__ = []
|
|
31
31
|
__license__ = "MIT License"
|
|
32
|
-
__version__ = "1.
|
|
32
|
+
__version__ = "1.3.0"
|
|
33
33
|
__maintainer__ = "Timo Fuchs"
|
|
34
34
|
__email__ = "tfuchs@cornell.edu"
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# /*##########################################################################
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2020-
|
|
4
|
+
# Copyright (c) 2020-2025 Timo Fuchs
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
#
|
|
24
24
|
# ###########################################################################*/
|
|
25
25
|
__author__ = "Timo Fuchs"
|
|
26
|
-
__copyright__ = "Copyright 2020-
|
|
26
|
+
__copyright__ = "Copyright 2020-2025 Timo Fuchs"
|
|
27
27
|
__license__ = "MIT License"
|
|
28
|
-
__version__ = "1.
|
|
28
|
+
__version__ = "1.3.0"
|
|
29
29
|
__maintainer__ = "Timo Fuchs"
|
|
30
|
-
__email__ = "
|
|
30
|
+
__email__ = "tfuchs@cornell.edu"
|
|
31
31
|
|
|
32
32
|
import numpy as np
|
|
33
33
|
import os
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# /*##########################################################################
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2020-2025 Timo Fuchs
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
# THE SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
# ###########################################################################*/
|
|
25
|
+
__author__ = "Timo Fuchs"
|
|
26
|
+
__copyright__ = "Copyright 2020-2025 Timo Fuchs"
|
|
27
|
+
__license__ = "MIT License"
|
|
28
|
+
__version__ = "1.3.0"
|
|
29
|
+
__maintainer__ = "Timo Fuchs"
|
|
30
|
+
__email__ = "tfuchs@cornell.edu"
|
|
31
|
+
|
|
32
|
+
from silx.gui import qt
|
|
33
|
+
from . import qutils
|
|
34
|
+
import numpy as np
|
|
35
|
+
from contextlib import contextmanager
|
|
36
|
+
|
|
37
|
+
@contextmanager
|
|
38
|
+
def blockSignals(qobjects):
|
|
39
|
+
try:
|
|
40
|
+
for obj in qobjects:
|
|
41
|
+
obj.blockSignals(True)
|
|
42
|
+
yield
|
|
43
|
+
for obj in qobjects:
|
|
44
|
+
obj.blockSignals(False)
|
|
45
|
+
except TypeError:
|
|
46
|
+
qobject.blockSignals(True)
|
|
47
|
+
yield
|
|
48
|
+
qobject.blockSignals(False)
|
|
49
|
+
|
|
50
|
+
class HKLDialog(qt.QDialog):
|
|
51
|
+
sigHKLchanged = qt.pyqtSignal(np.ndarray)
|
|
52
|
+
|
|
53
|
+
def __init__(self, msg='', title='' ,parent=None):
|
|
54
|
+
qt.QDialog.__init__(self, parent)
|
|
55
|
+
self.savedParams = np.array([0.,0.,0.])
|
|
56
|
+
layout = qt.QVBoxLayout()
|
|
57
|
+
self.setWindowTitle(title)
|
|
58
|
+
|
|
59
|
+
hkl_layout = qt.QHBoxLayout()
|
|
60
|
+
|
|
61
|
+
self.hkl_editors = [qt.QDoubleSpinBox() for i in range(3)]
|
|
62
|
+
[h.setRange(-20000,20000) for h in self.hkl_editors]
|
|
63
|
+
[h.setDecimals(3) for h in self.hkl_editors]
|
|
64
|
+
[h.setValue(0.) for h in self.hkl_editors]
|
|
65
|
+
for editor, lbll in zip(self.hkl_editors, ["H:", "K:", "L:"]):
|
|
66
|
+
hkl_layout.addWidget(qt.QLabel(lbll))
|
|
67
|
+
hkl_layout.addWidget(editor)
|
|
68
|
+
editor.valueChanged.connect(self._onAnyHKLChanged)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
self.label = qt.QLabel()
|
|
72
|
+
self.label.setText(msg)
|
|
73
|
+
|
|
74
|
+
buttons = qt.QDialogButtonBox(qt.QDialogButtonBox.Ok | qt.QDialogButtonBox.Cancel | qt.QDialogButtonBox.Reset)
|
|
75
|
+
buttons.button(qt.QDialogButtonBox.Ok).clicked.connect(self.accept)
|
|
76
|
+
buttons.button(qt.QDialogButtonBox.Cancel).clicked.connect(self.onCancel)
|
|
77
|
+
buttons.button(qt.QDialogButtonBox.Reset).clicked.connect(self.resetParameters)
|
|
78
|
+
|
|
79
|
+
layout.addWidget(self.label)
|
|
80
|
+
layout.addLayout(hkl_layout)
|
|
81
|
+
layout.addWidget(buttons)
|
|
82
|
+
self.setLayout(layout)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _onAnyHKLChanged(self):
|
|
86
|
+
self.sigHKLchanged.emit(self.get_hkl())
|
|
87
|
+
|
|
88
|
+
def get_hkl(self):
|
|
89
|
+
return np.array([h.value() for h in self.hkl_editors])
|
|
90
|
+
|
|
91
|
+
def set_hkl(self, hkl):
|
|
92
|
+
assert len(hkl) == 3
|
|
93
|
+
with blockSignals(self.hkl_editors):
|
|
94
|
+
for h, e in zip(hkl, self.hkl_editors):
|
|
95
|
+
e.setValue(h)
|
|
96
|
+
self.sigHKLchanged.emit(self.get_hkl())
|
|
97
|
+
|
|
98
|
+
def showEvent(self, event):
|
|
99
|
+
if event.spontaneous():
|
|
100
|
+
super().showEvent(event)
|
|
101
|
+
else:
|
|
102
|
+
self.savedParams = self.get_hkl()
|
|
103
|
+
super().showEvent(event)
|
|
104
|
+
|
|
105
|
+
#def hideEvent(self, event):
|
|
106
|
+
# self.sigHide.emit()
|
|
107
|
+
# super().hideEvent(event)
|
|
108
|
+
|
|
109
|
+
def resetParameters(self):
|
|
110
|
+
self.set_hkl(self.savedParams)
|
|
111
|
+
|
|
112
|
+
def onCancel(self):
|
|
113
|
+
self.resetParameters()
|
|
114
|
+
self.reject()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# /*##########################################################################
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2020-
|
|
4
|
+
# Copyright (c) 2020-2025 Timo Fuchs
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
#
|
|
24
24
|
# ###########################################################################*/
|
|
25
25
|
__author__ = "Timo Fuchs"
|
|
26
|
-
__copyright__ = "Copyright 2020-
|
|
26
|
+
__copyright__ = "Copyright 2020-2025 Timo Fuchs"
|
|
27
27
|
__license__ = "MIT License"
|
|
28
|
-
__version__ = "1.
|
|
28
|
+
__version__ = "1.3.0"
|
|
29
29
|
__maintainer__ = "Timo Fuchs"
|
|
30
|
-
__email__ = "
|
|
30
|
+
__email__ = "tfuchs@cornell.edu"
|
|
31
31
|
|
|
32
32
|
import sys
|
|
33
33
|
import traceback
|
|
@@ -38,6 +38,7 @@ from .ArrayTableDialog import ArrayEditWidget
|
|
|
38
38
|
from collections import OrderedDict
|
|
39
39
|
from dataclasses import dataclass, field
|
|
40
40
|
from typing import ClassVar
|
|
41
|
+
import copy
|
|
41
42
|
|
|
42
43
|
import numpy as np
|
|
43
44
|
from ..datautils.xrayutils import HKLVlieg
|
|
@@ -305,7 +306,7 @@ class QReflectionSelector(qt.QSplitter):
|
|
|
305
306
|
else:
|
|
306
307
|
self.setReflections([])
|
|
307
308
|
except Exception:
|
|
308
|
-
qt.QMessageBox.critical(self,"Cannot read reflections", "Cannot read
|
|
309
|
+
qt.QMessageBox.critical(self,"Cannot read reflections", "Cannot read reflections %s" % traceback.format_exc())
|
|
309
310
|
return
|
|
310
311
|
|
|
311
312
|
def clearPlotRefReflections(self):
|
|
@@ -326,7 +327,7 @@ class QReflectionSelector(qt.QSplitter):
|
|
|
326
327
|
|
|
327
328
|
|
|
328
329
|
def redrawRefReflections(self):
|
|
329
|
-
self.setReflections(self.reflections)
|
|
330
|
+
self.setReflections(copy.deepcopy(self.reflections))
|
|
330
331
|
|
|
331
332
|
def setReflections(self,refls):
|
|
332
333
|
self.clearPlotRefReflections()
|