xrdkit 0.1.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.
- xrdkit/__init__.py +226 -0
- xrdkit/broadening.py +1155 -0
- xrdkit/config.py +660 -0
- xrdkit/density.py +144 -0
- xrdkit/gsas2.py +915 -0
- xrdkit/gsas2_driver.py +2551 -0
- xrdkit/indexing.py +750 -0
- xrdkit/io.py +115 -0
- xrdkit/lattice.py +233 -0
- xrdkit/peaks.py +340 -0
- xrdkit/phases.py +494 -0
- xrdkit/plotting.py +1072 -0
- xrdkit/py.typed +0 -0
- xrdkit/sizestrain.py +539 -0
- xrdkit/structure.py +470 -0
- xrdkit-0.1.0.dist-info/METADATA +229 -0
- xrdkit-0.1.0.dist-info/RECORD +19 -0
- xrdkit-0.1.0.dist-info/WHEEL +4 -0
- xrdkit-0.1.0.dist-info/licenses/LICENSE +21 -0
xrdkit/__init__.py
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"""Reusable X-ray diffraction analysis toolkit for electroceramics research."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from xrdkit.broadening import (
|
|
6
|
+
BreadthModelFit,
|
|
7
|
+
BreadthModels,
|
|
8
|
+
BroadeningCorrection,
|
|
9
|
+
Caglioti,
|
|
10
|
+
ProfileFit,
|
|
11
|
+
correct_broadening,
|
|
12
|
+
doublet_gaps,
|
|
13
|
+
fit_breadth_models,
|
|
14
|
+
fit_caglioti,
|
|
15
|
+
fit_profile,
|
|
16
|
+
height_spread_breadth,
|
|
17
|
+
integral_breadth,
|
|
18
|
+
kalpha2_position,
|
|
19
|
+
pseudo_voigt,
|
|
20
|
+
pseudo_voigt_components,
|
|
21
|
+
pseudo_voigt_from_components,
|
|
22
|
+
split_pseudo_voigt,
|
|
23
|
+
)
|
|
24
|
+
from xrdkit.config import (
|
|
25
|
+
ConfigError,
|
|
26
|
+
check_composition,
|
|
27
|
+
load_config,
|
|
28
|
+
sample_settings,
|
|
29
|
+
validate_config,
|
|
30
|
+
wyckoff_multiplicity,
|
|
31
|
+
)
|
|
32
|
+
from xrdkit.density import (
|
|
33
|
+
ATOMIC_MASSES,
|
|
34
|
+
cell_volume,
|
|
35
|
+
formula_mass,
|
|
36
|
+
theoretical_density,
|
|
37
|
+
)
|
|
38
|
+
from xrdkit.gsas2 import (
|
|
39
|
+
Gsas2Error,
|
|
40
|
+
Gsas2Install,
|
|
41
|
+
accepted_stages,
|
|
42
|
+
build_refine_job,
|
|
43
|
+
failure_markdown,
|
|
44
|
+
find_gsas2,
|
|
45
|
+
gsas2_fwhm,
|
|
46
|
+
log_tail,
|
|
47
|
+
run_job,
|
|
48
|
+
stage_status,
|
|
49
|
+
stage_status_table,
|
|
50
|
+
stage_statuses,
|
|
51
|
+
standard_stages,
|
|
52
|
+
structure_edits,
|
|
53
|
+
summary_markdown,
|
|
54
|
+
write_instprm,
|
|
55
|
+
)
|
|
56
|
+
from xrdkit.indexing import (
|
|
57
|
+
TTB_CELL,
|
|
58
|
+
CellFit,
|
|
59
|
+
IndexedPeak,
|
|
60
|
+
Reflection,
|
|
61
|
+
TetragonalCell,
|
|
62
|
+
ZeroSearch,
|
|
63
|
+
estimate_zero_offset,
|
|
64
|
+
generate_reflections,
|
|
65
|
+
index_and_refine,
|
|
66
|
+
index_peaks,
|
|
67
|
+
indexed_to_csv,
|
|
68
|
+
indexing_summary,
|
|
69
|
+
refine_cell,
|
|
70
|
+
)
|
|
71
|
+
from xrdkit.io import XRDScan, read_xrdml
|
|
72
|
+
from xrdkit.lattice import LatticeFit, lattice_fit_to_dict, refine_lattice
|
|
73
|
+
from xrdkit.peaks import (
|
|
74
|
+
Peak,
|
|
75
|
+
exclude_kalpha2,
|
|
76
|
+
find_peaks,
|
|
77
|
+
flag_kalpha2,
|
|
78
|
+
peaks_to_csv,
|
|
79
|
+
)
|
|
80
|
+
from xrdkit.phases import (
|
|
81
|
+
CandidateMatch,
|
|
82
|
+
CodRecord,
|
|
83
|
+
ExplainedPeak,
|
|
84
|
+
SimulatedReflection,
|
|
85
|
+
cod_fetch,
|
|
86
|
+
cod_search,
|
|
87
|
+
match_candidate,
|
|
88
|
+
simulate_pattern,
|
|
89
|
+
write_cif_index,
|
|
90
|
+
)
|
|
91
|
+
from xrdkit.plotting import (
|
|
92
|
+
annotate_hkl,
|
|
93
|
+
apply_style,
|
|
94
|
+
mark_peaks,
|
|
95
|
+
plot_caglioti,
|
|
96
|
+
plot_pattern,
|
|
97
|
+
plot_rietveld,
|
|
98
|
+
plot_stacked,
|
|
99
|
+
save_figure,
|
|
100
|
+
)
|
|
101
|
+
from xrdkit.sizestrain import (
|
|
102
|
+
ComponentSizeStrain,
|
|
103
|
+
ResolutionLimit,
|
|
104
|
+
WilliamsonHall,
|
|
105
|
+
component_size_strain,
|
|
106
|
+
resolution_limit,
|
|
107
|
+
scherrer_size,
|
|
108
|
+
scherrer_size_integral,
|
|
109
|
+
williamson_hall,
|
|
110
|
+
)
|
|
111
|
+
from xrdkit.structure import (
|
|
112
|
+
Distance,
|
|
113
|
+
bond_lengths,
|
|
114
|
+
cell_contents,
|
|
115
|
+
composition_edits,
|
|
116
|
+
interatomic_distances,
|
|
117
|
+
metric_tensor,
|
|
118
|
+
site_setup,
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
try:
|
|
122
|
+
__version__ = version("xrdkit")
|
|
123
|
+
except PackageNotFoundError: # running from a source tree, not installed
|
|
124
|
+
__version__ = "0.0.0+unknown"
|
|
125
|
+
|
|
126
|
+
__all__ = [
|
|
127
|
+
"ATOMIC_MASSES",
|
|
128
|
+
"TTB_CELL",
|
|
129
|
+
"BreadthModelFit",
|
|
130
|
+
"BreadthModels",
|
|
131
|
+
"BroadeningCorrection",
|
|
132
|
+
"Caglioti",
|
|
133
|
+
"CandidateMatch",
|
|
134
|
+
"CellFit",
|
|
135
|
+
"CodRecord",
|
|
136
|
+
"ComponentSizeStrain",
|
|
137
|
+
"ConfigError",
|
|
138
|
+
"Distance",
|
|
139
|
+
"ExplainedPeak",
|
|
140
|
+
"Gsas2Error",
|
|
141
|
+
"Gsas2Install",
|
|
142
|
+
"IndexedPeak",
|
|
143
|
+
"LatticeFit",
|
|
144
|
+
"Peak",
|
|
145
|
+
"ProfileFit",
|
|
146
|
+
"Reflection",
|
|
147
|
+
"ResolutionLimit",
|
|
148
|
+
"SimulatedReflection",
|
|
149
|
+
"TetragonalCell",
|
|
150
|
+
"WilliamsonHall",
|
|
151
|
+
"XRDScan",
|
|
152
|
+
"ZeroSearch",
|
|
153
|
+
"__version__",
|
|
154
|
+
"accepted_stages",
|
|
155
|
+
"annotate_hkl",
|
|
156
|
+
"apply_style",
|
|
157
|
+
"bond_lengths",
|
|
158
|
+
"build_refine_job",
|
|
159
|
+
"cell_contents",
|
|
160
|
+
"cell_volume",
|
|
161
|
+
"check_composition",
|
|
162
|
+
"cod_fetch",
|
|
163
|
+
"cod_search",
|
|
164
|
+
"component_size_strain",
|
|
165
|
+
"composition_edits",
|
|
166
|
+
"correct_broadening",
|
|
167
|
+
"doublet_gaps",
|
|
168
|
+
"estimate_zero_offset",
|
|
169
|
+
"exclude_kalpha2",
|
|
170
|
+
"failure_markdown",
|
|
171
|
+
"find_gsas2",
|
|
172
|
+
"find_peaks",
|
|
173
|
+
"fit_breadth_models",
|
|
174
|
+
"fit_caglioti",
|
|
175
|
+
"fit_profile",
|
|
176
|
+
"flag_kalpha2",
|
|
177
|
+
"formula_mass",
|
|
178
|
+
"generate_reflections",
|
|
179
|
+
"gsas2_fwhm",
|
|
180
|
+
"height_spread_breadth",
|
|
181
|
+
"index_and_refine",
|
|
182
|
+
"index_peaks",
|
|
183
|
+
"indexed_to_csv",
|
|
184
|
+
"indexing_summary",
|
|
185
|
+
"integral_breadth",
|
|
186
|
+
"interatomic_distances",
|
|
187
|
+
"kalpha2_position",
|
|
188
|
+
"lattice_fit_to_dict",
|
|
189
|
+
"load_config",
|
|
190
|
+
"log_tail",
|
|
191
|
+
"mark_peaks",
|
|
192
|
+
"match_candidate",
|
|
193
|
+
"metric_tensor",
|
|
194
|
+
"peaks_to_csv",
|
|
195
|
+
"plot_caglioti",
|
|
196
|
+
"plot_pattern",
|
|
197
|
+
"plot_rietveld",
|
|
198
|
+
"plot_stacked",
|
|
199
|
+
"pseudo_voigt",
|
|
200
|
+
"pseudo_voigt_components",
|
|
201
|
+
"pseudo_voigt_from_components",
|
|
202
|
+
"read_xrdml",
|
|
203
|
+
"refine_cell",
|
|
204
|
+
"refine_lattice",
|
|
205
|
+
"resolution_limit",
|
|
206
|
+
"run_job",
|
|
207
|
+
"sample_settings",
|
|
208
|
+
"save_figure",
|
|
209
|
+
"scherrer_size",
|
|
210
|
+
"scherrer_size_integral",
|
|
211
|
+
"simulate_pattern",
|
|
212
|
+
"site_setup",
|
|
213
|
+
"split_pseudo_voigt",
|
|
214
|
+
"stage_status",
|
|
215
|
+
"stage_status_table",
|
|
216
|
+
"stage_statuses",
|
|
217
|
+
"standard_stages",
|
|
218
|
+
"structure_edits",
|
|
219
|
+
"summary_markdown",
|
|
220
|
+
"theoretical_density",
|
|
221
|
+
"validate_config",
|
|
222
|
+
"williamson_hall",
|
|
223
|
+
"write_cif_index",
|
|
224
|
+
"write_instprm",
|
|
225
|
+
"wyckoff_multiplicity",
|
|
226
|
+
]
|