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