mintmatter 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.
- mintmatter/__init__.py +219 -0
- mintmatter/_core.py +1202 -0
- mintmatter/_geometry.py +731 -0
- mintmatter/_render3d.py +1004 -0
- mintmatter/_style.py +756 -0
- mintmatter/_text.py +424 -0
- mintmatter/advanced.py +1098 -0
- mintmatter/agent.py +1041 -0
- mintmatter/audit.py +198 -0
- mintmatter/battery.py +1356 -0
- mintmatter/catalysis.py +513 -0
- mintmatter/cli.py +486 -0
- mintmatter/crystallography.py +220 -0
- mintmatter/diffraction.py +442 -0
- mintmatter/dynamics.py +1034 -0
- mintmatter/eds.py +762 -0
- mintmatter/electrochem.py +825 -0
- mintmatter/electronic.py +393 -0
- mintmatter/examples.py +803 -0
- mintmatter/fix.py +122 -0
- mintmatter/insitu.py +624 -0
- mintmatter/io/__init__.py +143 -0
- mintmatter/io/_elements.py +103 -0
- mintmatter/io/_errors.py +28 -0
- mintmatter/io/adapters.py +71 -0
- mintmatter/io/cif.py +449 -0
- mintmatter/io/datasets.py +319 -0
- mintmatter/io/echem.py +211 -0
- mintmatter/io/jcamp.py +216 -0
- mintmatter/io/patterns.py +184 -0
- mintmatter/io/tiff.py +89 -0
- mintmatter/io/vasp_xyz.py +206 -0
- mintmatter/journals.py +620 -0
- mintmatter/kinetics.py +717 -0
- mintmatter/mcp.py +458 -0
- mintmatter/microscopy.py +502 -0
- mintmatter/ml.py +836 -0
- mintmatter/mlip.py +222 -0
- mintmatter/periodic.py +289 -0
- mintmatter/phase.py +855 -0
- mintmatter/review.py +1275 -0
- mintmatter/rules/__init__.py +145 -0
- mintmatter/rules/_base.py +407 -0
- mintmatter/rules/battery.py +96 -0
- mintmatter/rules/crosspanel.py +449 -0
- mintmatter/rules/diffraction.py +219 -0
- mintmatter/rules/electrochem.py +167 -0
- mintmatter/rules/electronic.py +86 -0
- mintmatter/rules/general.py +171 -0
- mintmatter/rules/microscopy.py +240 -0
- mintmatter/rules/parity.py +98 -0
- mintmatter/rules/spectroscopy.py +182 -0
- mintmatter/rules/thermo.py +68 -0
- mintmatter/schema.py +264 -0
- mintmatter/slides.py +337 -0
- mintmatter/spectroscopy.py +742 -0
- mintmatter/structures.py +2132 -0
- mintmatter/thermo.py +963 -0
- mintmatter/xas.py +891 -0
- mintmatter-0.1.0.dist-info/METADATA +309 -0
- mintmatter-0.1.0.dist-info/RECORD +64 -0
- mintmatter-0.1.0.dist-info/WHEEL +4 -0
- mintmatter-0.1.0.dist-info/entry_points.txt +8 -0
- mintmatter-0.1.0.dist-info/licenses/LICENSE +21 -0
mintmatter/__init__.py
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"""mintmatter: journal-grade materials and chemistry figures built on mintfig.
|
|
2
|
+
|
|
3
|
+
Every converted builder is a registered, data-carrying mintfig panel kind
|
|
4
|
+
(``matter.xrd`` ...): its spec round-trips through JSON (``mint.load``, ``mint.edit``),
|
|
5
|
+
its facts are computed from the data (:func:`facts`), and its text and line sizes follow
|
|
6
|
+
the target, so ``mm.render(..., journal="nature", columns="single")`` is an exact 89 mm
|
|
7
|
+
figure. Importing this package registers the kinds (mintfig also imports it on demand
|
|
8
|
+
through the ``mintfig.panels`` entry point).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
__version__ = "0.1.0"
|
|
14
|
+
|
|
15
|
+
from ._core import (
|
|
16
|
+
Fact,
|
|
17
|
+
MatterCtx,
|
|
18
|
+
data,
|
|
19
|
+
facts,
|
|
20
|
+
kind_arguments,
|
|
21
|
+
matter_kind,
|
|
22
|
+
matter_kinds,
|
|
23
|
+
matter_panel,
|
|
24
|
+
rebuild,
|
|
25
|
+
)
|
|
26
|
+
from ._geometry import (
|
|
27
|
+
Bonds,
|
|
28
|
+
Polyhedron,
|
|
29
|
+
View,
|
|
30
|
+
best_view,
|
|
31
|
+
complete_boundary,
|
|
32
|
+
find_polyhedra,
|
|
33
|
+
guess_bonds,
|
|
34
|
+
nearest_zone_axis,
|
|
35
|
+
reduced_formula,
|
|
36
|
+
supercell,
|
|
37
|
+
zone_axis_view,
|
|
38
|
+
)
|
|
39
|
+
from ._text import chem, parse_space_group, space_group
|
|
40
|
+
from .advanced import arrhenius, ashby, chem_space, operando_contour
|
|
41
|
+
from .agent import auto, edit, figure, inspect, load_spec
|
|
42
|
+
from .audit import check_chem, check_matter
|
|
43
|
+
from .battery import cycling, dqdv, gcd, rate_capability
|
|
44
|
+
from .catalysis import reaction_profile, volcano
|
|
45
|
+
from .crystallography import Reflection, bragg_positions
|
|
46
|
+
from .diffraction import xrd
|
|
47
|
+
from .dynamics import msd, phonon, rdf
|
|
48
|
+
from .eds import eds_map, line_profile
|
|
49
|
+
from .electrochem import cv, nyquist
|
|
50
|
+
from .electronic import band_dos
|
|
51
|
+
from .fix import fix
|
|
52
|
+
from .insitu import pattern_stack
|
|
53
|
+
from .io import Echem, Image, Impedance, Pattern, SpaceGroup, Spectrum, Structure, read
|
|
54
|
+
from .journals import (
|
|
55
|
+
JOURNAL_ALIASES,
|
|
56
|
+
MANUSCRIPT_STYLE,
|
|
57
|
+
MATTER_JOURNALS,
|
|
58
|
+
JournalProfile,
|
|
59
|
+
Manuscript,
|
|
60
|
+
caption_for,
|
|
61
|
+
get_journal,
|
|
62
|
+
panel_legend,
|
|
63
|
+
panel_legends,
|
|
64
|
+
render,
|
|
65
|
+
)
|
|
66
|
+
from .kinetics import lsv, tafel
|
|
67
|
+
from .microscopy import micrograph
|
|
68
|
+
from .ml import learning_curve, parity_density
|
|
69
|
+
from .mlip import parity
|
|
70
|
+
from .periodic import periodic_table
|
|
71
|
+
from .phase import phase_diagram, pourbaix
|
|
72
|
+
from .review import review, review_brief, review_sheet, review_text
|
|
73
|
+
from .rules import rule_table
|
|
74
|
+
from .schema import schema
|
|
75
|
+
from .slides import SLIDE_TARGETS, slide_regions
|
|
76
|
+
from .spectroscopy import spectrum, xps
|
|
77
|
+
from .structures import (
|
|
78
|
+
crystal,
|
|
79
|
+
from_ase,
|
|
80
|
+
from_pymatgen,
|
|
81
|
+
molecule,
|
|
82
|
+
molecule3d,
|
|
83
|
+
validate_molecule_2d,
|
|
84
|
+
)
|
|
85
|
+
from .thermo import convex_hull, isotherm, ternary
|
|
86
|
+
from .xas import exafs, xanes
|
|
87
|
+
|
|
88
|
+
__all__ = [
|
|
89
|
+
"JOURNAL_ALIASES",
|
|
90
|
+
"MANUSCRIPT_STYLE",
|
|
91
|
+
"MATTER_JOURNALS",
|
|
92
|
+
"SLIDE_TARGETS",
|
|
93
|
+
"Bonds",
|
|
94
|
+
"Echem",
|
|
95
|
+
"Fact",
|
|
96
|
+
"Image",
|
|
97
|
+
"Impedance",
|
|
98
|
+
"JournalProfile",
|
|
99
|
+
"Manuscript",
|
|
100
|
+
"MatterCtx",
|
|
101
|
+
"Pattern",
|
|
102
|
+
"Polyhedron",
|
|
103
|
+
"Reflection",
|
|
104
|
+
"SpaceGroup",
|
|
105
|
+
"Spectrum",
|
|
106
|
+
"Structure",
|
|
107
|
+
"View",
|
|
108
|
+
"__version__",
|
|
109
|
+
"arrhenius",
|
|
110
|
+
"ashby",
|
|
111
|
+
"auto",
|
|
112
|
+
"band_dos",
|
|
113
|
+
"best_view",
|
|
114
|
+
"bragg_positions",
|
|
115
|
+
"caption_for",
|
|
116
|
+
"check_chem",
|
|
117
|
+
"check_matter",
|
|
118
|
+
"chem",
|
|
119
|
+
"chem_space",
|
|
120
|
+
"complete_boundary",
|
|
121
|
+
"convex_hull",
|
|
122
|
+
"crystal",
|
|
123
|
+
"cv",
|
|
124
|
+
"cycling",
|
|
125
|
+
"data",
|
|
126
|
+
"dqdv",
|
|
127
|
+
"edit",
|
|
128
|
+
"eds_map",
|
|
129
|
+
"exafs",
|
|
130
|
+
"facts",
|
|
131
|
+
"figure",
|
|
132
|
+
"find_polyhedra",
|
|
133
|
+
"fix",
|
|
134
|
+
"from_ase",
|
|
135
|
+
"from_pymatgen",
|
|
136
|
+
"gcd",
|
|
137
|
+
"get_journal",
|
|
138
|
+
"guess_bonds",
|
|
139
|
+
"inspect",
|
|
140
|
+
"isotherm",
|
|
141
|
+
"kind_arguments",
|
|
142
|
+
"learning_curve",
|
|
143
|
+
"line_profile",
|
|
144
|
+
"load_spec",
|
|
145
|
+
"lsv",
|
|
146
|
+
"matter_kind",
|
|
147
|
+
"matter_kinds",
|
|
148
|
+
"matter_panel",
|
|
149
|
+
"micrograph",
|
|
150
|
+
"molecule",
|
|
151
|
+
"molecule3d",
|
|
152
|
+
"msd",
|
|
153
|
+
"nearest_zone_axis",
|
|
154
|
+
"nyquist",
|
|
155
|
+
"operando_contour",
|
|
156
|
+
"panel_legend",
|
|
157
|
+
"panel_legends",
|
|
158
|
+
"parity",
|
|
159
|
+
"parity_density",
|
|
160
|
+
"parse_space_group",
|
|
161
|
+
"pattern_stack",
|
|
162
|
+
"periodic_table",
|
|
163
|
+
"phase_diagram",
|
|
164
|
+
"phonon",
|
|
165
|
+
"pourbaix",
|
|
166
|
+
"rate_capability",
|
|
167
|
+
"rdf",
|
|
168
|
+
"reaction_profile",
|
|
169
|
+
"read",
|
|
170
|
+
"rebuild",
|
|
171
|
+
"reduced_formula",
|
|
172
|
+
"render",
|
|
173
|
+
"review",
|
|
174
|
+
"review_brief",
|
|
175
|
+
"review_sheet",
|
|
176
|
+
"review_text",
|
|
177
|
+
"rule_table",
|
|
178
|
+
"schema",
|
|
179
|
+
"slide_regions",
|
|
180
|
+
"space_group",
|
|
181
|
+
"spectrum",
|
|
182
|
+
"supercell",
|
|
183
|
+
"tafel",
|
|
184
|
+
"ternary",
|
|
185
|
+
"validate_molecule_2d",
|
|
186
|
+
"volcano",
|
|
187
|
+
"xanes",
|
|
188
|
+
"xps",
|
|
189
|
+
"xrd",
|
|
190
|
+
"zone_axis_view",
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
# The demonstration builders moved to mintmatter.examples. They stay reachable as
|
|
195
|
+
# mm.build_* (the gallery uses them) but are not part of the public API.
|
|
196
|
+
_EXAMPLES = frozenset(
|
|
197
|
+
{
|
|
198
|
+
"build_aspirin_esp_2d_data",
|
|
199
|
+
"build_c60_fullerene",
|
|
200
|
+
"build_caffeine_3d",
|
|
201
|
+
"build_dual_atom_ni_fe_n6_data",
|
|
202
|
+
"build_gc_basepair_3d",
|
|
203
|
+
"build_layered_licoo2",
|
|
204
|
+
"build_mof5_cage",
|
|
205
|
+
"build_oseltamivir_2d_data",
|
|
206
|
+
"build_perovskite_supercell",
|
|
207
|
+
"build_rubpy3_3d",
|
|
208
|
+
"build_twisted_bilayer_graphene",
|
|
209
|
+
"octahedron_faces",
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
def __getattr__(name: str): # module-level lazy attribute (PEP 562)
|
|
215
|
+
if name in _EXAMPLES:
|
|
216
|
+
from . import examples
|
|
217
|
+
|
|
218
|
+
return getattr(examples, name)
|
|
219
|
+
raise AttributeError(f"module 'mintmatter' has no attribute {name!r}")
|