pyTEMlib 0.2020.11.1__py3-none-any.whl → 0.2024.9.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 pyTEMlib might be problematic. Click here for more details.

Files changed (60) hide show
  1. pyTEMlib/__init__.py +11 -11
  2. pyTEMlib/animation.py +631 -0
  3. pyTEMlib/atom_tools.py +240 -245
  4. pyTEMlib/config_dir.py +57 -33
  5. pyTEMlib/core_loss_widget.py +658 -0
  6. pyTEMlib/crystal_tools.py +1255 -0
  7. pyTEMlib/diffraction_plot.py +756 -0
  8. pyTEMlib/dynamic_scattering.py +293 -0
  9. pyTEMlib/eds_tools.py +609 -0
  10. pyTEMlib/eels_dialog.py +749 -491
  11. pyTEMlib/{interactive_eels.py → eels_dialog_utilities.py} +1199 -1177
  12. pyTEMlib/eels_tools.py +2031 -1698
  13. pyTEMlib/file_tools.py +1276 -560
  14. pyTEMlib/file_tools_qt.py +193 -0
  15. pyTEMlib/graph_tools.py +1166 -450
  16. pyTEMlib/graph_viz.py +449 -0
  17. pyTEMlib/image_dialog.py +158 -0
  18. pyTEMlib/image_dlg.py +146 -232
  19. pyTEMlib/image_tools.py +1399 -1028
  20. pyTEMlib/info_widget.py +933 -0
  21. pyTEMlib/interactive_image.py +1 -226
  22. pyTEMlib/kinematic_scattering.py +1196 -0
  23. pyTEMlib/low_loss_widget.py +176 -0
  24. pyTEMlib/microscope.py +61 -81
  25. pyTEMlib/peak_dialog.py +1047 -410
  26. pyTEMlib/peak_dlg.py +286 -242
  27. pyTEMlib/probe_tools.py +653 -207
  28. pyTEMlib/sidpy_tools.py +153 -136
  29. pyTEMlib/simulation_tools.py +104 -87
  30. pyTEMlib/version.py +6 -3
  31. pyTEMlib/xrpa_x_sections.py +20972 -0
  32. {pyTEMlib-0.2020.11.1.dist-info → pyTEMlib-0.2024.9.0.dist-info}/LICENSE +21 -21
  33. pyTEMlib-0.2024.9.0.dist-info/METADATA +92 -0
  34. pyTEMlib-0.2024.9.0.dist-info/RECORD +37 -0
  35. {pyTEMlib-0.2020.11.1.dist-info → pyTEMlib-0.2024.9.0.dist-info}/WHEEL +5 -5
  36. {pyTEMlib-0.2020.11.1.dist-info → pyTEMlib-0.2024.9.0.dist-info}/entry_points.txt +0 -1
  37. pyTEMlib/KinsCat.py +0 -2758
  38. pyTEMlib/__version__.py +0 -2
  39. pyTEMlib/data/TEMlibrc +0 -68
  40. pyTEMlib/data/edges_db.csv +0 -189
  41. pyTEMlib/data/edges_db.pkl +0 -0
  42. pyTEMlib/data/fparam.txt +0 -103
  43. pyTEMlib/data/microscopes.csv +0 -7
  44. pyTEMlib/data/microscopes.xml +0 -167
  45. pyTEMlib/data/path.txt +0 -1
  46. pyTEMlib/defaults_parser.py +0 -90
  47. pyTEMlib/dm3_reader.py +0 -613
  48. pyTEMlib/edges_db.py +0 -76
  49. pyTEMlib/eels_dlg.py +0 -224
  50. pyTEMlib/hdf_utils.py +0 -483
  51. pyTEMlib/image_tools1.py +0 -2194
  52. pyTEMlib/info_dialog.py +0 -237
  53. pyTEMlib/info_dlg.py +0 -202
  54. pyTEMlib/nion_reader.py +0 -297
  55. pyTEMlib/nsi_reader.py +0 -170
  56. pyTEMlib/structure_tools.py +0 -316
  57. pyTEMlib/test.py +0 -2072
  58. pyTEMlib-0.2020.11.1.dist-info/METADATA +0 -20
  59. pyTEMlib-0.2020.11.1.dist-info/RECORD +0 -45
  60. {pyTEMlib-0.2020.11.1.dist-info → pyTEMlib-0.2024.9.0.dist-info}/top_level.txt +0 -0
pyTEMlib/eels_dlg.py DELETED
@@ -1,224 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- EELSDialog user interface definitions
4
- """
5
- from PyQt5 import QtCore, QtGui, QtWidgets
6
-
7
-
8
- class UiDialog(object):
9
- def __init__(self, dialog):
10
- dialog.setObjectName('Fit Composition Input')
11
- dialog.resize(371, 184)
12
-
13
- valid_float = QtGui.QDoubleValidator()
14
- valid_int = QtGui.QIntValidator()
15
- valid_int.setBottom(0)
16
-
17
- self.layout = QtWidgets.QGridLayout()
18
- self.layout.setVerticalSpacing(2)
19
-
20
- self.separator1 = QtWidgets.QLabel(dialog)
21
- self.separator1.setAutoFillBackground(True)
22
- palette = self.separator1.palette()
23
- palette.setColor(self.separator1.backgroundRole(), QtCore.Qt.blue)
24
- palette.setColor(self.separator1.foregroundRole(), QtCore.Qt.white)
25
- self.separator1.setAlignment(QtCore.Qt.AlignCenter)
26
- self.separator1.setMaximumHeight(50)
27
-
28
- self.separator1.setPalette(palette)
29
- row = 0
30
- ######################################################################
31
- self.separator1.setText("Fit Region")
32
- self.layout.addWidget(self.separator1, row, 0, 1, 4)
33
- ######################################################################
34
-
35
- name = 'fit_start'
36
-
37
- self.label1 = QtWidgets.QLabel('Fit Start:')
38
- self.edit1 = QtWidgets.QLineEdit('0')
39
- self.edit1.setValidator(valid_float)
40
- self.unit1 = QtWidgets.QLabel('eV')
41
- self.edit1.setObjectName(name+'_edit')
42
- self.unit1.setObjectName(name+'_units')
43
-
44
- row += 1
45
- self.layout.addWidget(self.label1, row, 0)
46
- self.layout.addWidget(self.edit1, row, 1)
47
- self.layout.addWidget(self.unit1, row, 2)
48
-
49
- name = 'fit_end'
50
-
51
- self.label2 = QtWidgets.QLabel('Fit End:')
52
- self.edit2 = QtWidgets.QLineEdit('0')
53
- self.edit2.setValidator(valid_float)
54
- self.unit2 = QtWidgets.QLabel('eV')
55
- self.edit2.setObjectName(name + '_edit')
56
- self.unit2.setObjectName(name + '_units')
57
-
58
- row += 1
59
- self.layout.addWidget(self.label2, row, 0)
60
- self.layout.addWidget(self.edit2, row, 1)
61
- self.layout.addWidget(self.unit2, row, 2)
62
-
63
- self.separator2 = QtWidgets.QLabel(dialog)
64
- self.separator2.setAutoFillBackground(True)
65
- self.separator2.setAlignment(QtCore.Qt.AlignCenter)
66
- self.separator2.setMaximumHeight(50)
67
- self.separator2.setPalette(palette)
68
-
69
- row += 1
70
- ######################################################################
71
- self.separator2.setText("Elements")
72
- self.layout.addWidget(self.separator2, row, 0, 1, 4)
73
- ######################################################################
74
-
75
- name = 'edge'
76
- self.label3 = QtWidgets.QLabel('Edge:')
77
- self.edge_list = ['Edge 1', 'Edge 2', 'Edge 3', 'Edge 4', 'Edge 5', 'Edge 6']
78
- self.list3 = QtWidgets.QComboBox()
79
- self.list3.setEditable(False)
80
- self.list3.addItems(self.edge_list)
81
- self.check3 = QtWidgets.QCheckBox("Regions")
82
-
83
- row += 1
84
- self.layout.addWidget(self.label3, row, 0)
85
- self.layout.addWidget(self.list3, row, 1)
86
- self.layout.addWidget(self.check3, row, 2)
87
-
88
- self.list3.setObjectName(name + '_list')
89
- self.check3.setObjectName(name + '_check')
90
-
91
- name = 'element'
92
-
93
- self.label4 = QtWidgets.QLabel('Z:')
94
- self.edit4 = QtWidgets.QLineEdit('1')
95
- self.unit4 = QtWidgets.QLabel('H')
96
- self.edit4.setObjectName(name + '_edit')
97
- self.unit4.setObjectName(name + '_name')
98
-
99
- row += 1
100
- self.layout.addWidget(self.label4, row, 0)
101
- self.layout.addWidget(self.edit4, row, 1)
102
- self.layout.addWidget(self.unit4, row, 2)
103
-
104
- name = 'symmetry'
105
- self.edge_sym = ['K1', 'L3', 'M5', 'M3', 'M1', 'N1', 'N3', 'N5', 'N7', 'O1', 'O3', 'O5']
106
-
107
- self.label5 = QtWidgets.QLabel('Symmetry:')
108
- self.list5 = QtWidgets.QComboBox()
109
- self.list5.setEditable(False)
110
- self.list5.addItems(self.edge_sym)
111
-
112
- self.x_sec_meth = ['XRPA', 'Hydrog.', 'H-S GOS']
113
- self.select5 = QtWidgets.QComboBox()
114
- self.select5.setEditable(False)
115
- self.select5.addItems(self.x_sec_meth)
116
-
117
- row += 1
118
- self.layout.addWidget(self.label5, row, 0)
119
- self.layout.addWidget(self.list5, row, 1)
120
- self.layout.addWidget(self.select5, row, 2)
121
-
122
- self.list5.setObjectName(name + '_list')
123
- self.select5.setObjectName(name + '_method')
124
-
125
- name = 'onset'
126
-
127
- self.label6 = QtWidgets.QLabel('Onset:')
128
- self.edit6 = QtWidgets.QLineEdit('0')
129
- self.edit6.setValidator(valid_float)
130
- self.unit6 = QtWidgets.QLabel('eV')
131
- self.edit6.setObjectName(name + '_edit')
132
- self.unit6.setObjectName(name + '_units')
133
-
134
- row += 1
135
- self.layout.addWidget(self.label6, row, 0)
136
- self.layout.addWidget(self.edit6, row, 1)
137
- self.layout.addWidget(self.unit6, row, 2)
138
-
139
- name = 'excl_start'
140
-
141
- self.label7 = QtWidgets.QLabel('Excl. Start:')
142
- self.edit7 = QtWidgets.QLineEdit('0')
143
- self.edit7.setValidator(valid_float)
144
- self.unit7 = QtWidgets.QLabel('eV')
145
- self.edit7.setObjectName(name + '_edit')
146
- self.unit7.setObjectName(name + '_units')
147
-
148
- row += 1
149
- self.layout.addWidget(self.label7, row, 0)
150
- self.layout.addWidget(self.edit7, row, 1)
151
- self.layout.addWidget(self.unit7, row, 2)
152
-
153
- name = 'excl_end'
154
-
155
- self.label8 = QtWidgets.QLabel('Excl. End:')
156
- self.edit8 = QtWidgets.QLineEdit('0')
157
- self.edit8.setValidator(valid_float)
158
- self.unit8 = QtWidgets.QLabel('eV')
159
- self.edit8.setObjectName(name + '_edit')
160
- self.unit8.setObjectName(name + '_units')
161
-
162
- row += 1
163
- self.layout.addWidget(self.label8, row, 0)
164
- self.layout.addWidget(self.edit8, row, 1)
165
- self.layout.addWidget(self.unit8, row, 2)
166
-
167
- name = 'multiplier'
168
-
169
- self.label9 = QtWidgets.QLabel('Multiplier:')
170
- self.edit9 = QtWidgets.QLineEdit('0')
171
- self.edit9.setValidator(valid_float)
172
- self.unit9 = QtWidgets.QLabel('a.u.')
173
- self.edit9.setObjectName(name + '_edit')
174
- self.unit9.setObjectName(name + '_units')
175
-
176
- row += 1
177
- self.layout.addWidget(self.label9, row, 0)
178
- self.layout.addWidget(self.edit9, row, 1)
179
- self.layout.addWidget(self.unit9, row, 2)
180
-
181
- self.separator3 = QtWidgets.QLabel(dialog)
182
- self.separator3.setAutoFillBackground(True)
183
- self.separator3.setAlignment(QtCore.Qt.AlignCenter)
184
- self.separator3.setMaximumHeight(50)
185
- self.separator3.setPalette(palette)
186
- ######################################################################
187
- self.separator3.setText("Other Fit Parameters")
188
-
189
- row += 1
190
- self.layout.addWidget(self.separator3, row, 0, 1, 4)
191
- ######################################################################
192
-
193
- self.check10 = QtWidgets.QCheckBox("Conv. LL")
194
- self.show_edges = QtWidgets.QCheckBox("Show Edges")
195
- self.select10 = QtWidgets.QCheckBox("Fit Comp.")
196
-
197
- row += 1
198
- self.layout.addWidget(self.check10, row, 0)
199
- self.layout.addWidget(self.show_edges, row, 1)
200
- self.layout.addWidget(self.select10, row, 2)
201
-
202
- self.check10.setObjectName('conv_ll')
203
- self.select10.setObjectName('fit_comp')
204
-
205
- row += 1
206
- self.progress = QtWidgets.QProgressBar()
207
- self.progress.setGeometry(0, 0, 300, 25)
208
- self.progress.setMaximum(100)
209
-
210
- self.do_all_button = QtWidgets.QPushButton('Do All', dialog)
211
-
212
- self.do_fit_button = QtWidgets.QPushButton('Fit Composition', dialog)
213
- self.do_fit_button.setCheckable(True)
214
-
215
- self.layout.addWidget(self.do_all_button, row, 0)
216
- self.layout.addWidget(self.progress, row, 1)
217
- self.layout.addWidget(self.do_fit_button, row, 2)
218
-
219
- dialog.setLayout(self.layout)
220
- dialog.setWindowTitle('Fit Composition Input')
221
-
222
- # self.buttonBox.accepted.connect(Dialog.accept)
223
- # self.buttonBox.rejected.connect(Dialog.reject)
224
- QtCore.QMetaObject.connectSlotsByName(dialog)