mat3ra-esse 2025.5.17.post2__py3-none-any.whl → 2025.6.14.post0__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 mat3ra-esse might be problematic. Click here for more details.

Files changed (78) hide show
  1. mat3ra/esse/data/examples.py +1 -1
  2. mat3ra/esse/data/schemas.py +1 -1
  3. mat3ra/esse/models/apse/file/applications/espresso/7.2/pw_x.py +6 -6
  4. mat3ra/esse/models/apse/materials/builders/slab/pymatgen/parameters.py +3 -3
  5. mat3ra/esse/models/core/primitive/array_of_3_integers.py +13 -0
  6. mat3ra/esse/models/core/reusable/coordinate_conditions/__init__.py +29 -1
  7. mat3ra/esse/models/core/reusable/energy.py +2 -2
  8. mat3ra/esse/models/element.py +6 -6
  9. mat3ra/esse/models/material/__init__.py +14 -14
  10. mat3ra/esse/models/material/builders/single_material/two_dimensional/slab/selector_parameters.py +1 -1
  11. mat3ra/esse/models/material/reusable/slab/termination.py +1 -1
  12. mat3ra/esse/models/material/reusable/slab_configuration_with_termination.py +1 -1
  13. mat3ra/esse/models/material/reusable/stack/slab_in_stack.py +1 -1
  14. mat3ra/esse/models/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.py +2 -2
  15. mat3ra/esse/models/materials_category/multi_material/interfaces/configuration.py +1 -1
  16. mat3ra/esse/models/materials_category/pristine_structures/three_dimensional/__init__.py +3 -0
  17. mat3ra/esse/models/materials_category/pristine_structures/three_dimensional/ideal_crystal.py +530 -0
  18. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/__init__.py +3 -0
  19. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab.py +1143 -0
  20. mat3ra/esse/models/materials_category_components/entities/auxiliary/three_dimensional/__init__.py +3 -0
  21. mat3ra/esse/models/materials_category_components/entities/auxiliary/three_dimensional/supercell_matrix_3d.py +27 -0
  22. mat3ra/esse/models/materials_category_components/entities/auxiliary/two_dimensional/__init__.py +3 -0
  23. mat3ra/esse/models/materials_category_components/entities/auxiliary/two_dimensional/miller_indices.py +16 -0
  24. mat3ra/esse/models/materials_category_components/entities/auxiliary/two_dimensional/supercell_matrix_2d.py +25 -0
  25. mat3ra/esse/models/materials_category_components/entities/auxiliary/two_dimensional/termination.py +144 -0
  26. mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/__init__.py +3 -0
  27. mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/crystal_site.py +13 -0
  28. mat3ra/esse/models/materials_category_components/entities/core/three_dimensional/__init__.py +3 -0
  29. mat3ra/esse/models/materials_category_components/entities/core/three_dimensional/crystal.py +530 -0
  30. mat3ra/esse/models/materials_category_components/entities/core/three_dimensional/void.py +32 -0
  31. mat3ra/esse/models/materials_category_components/entities/core/two_dimensional/__init__.py +3 -0
  32. mat3ra/esse/models/materials_category_components/entities/core/two_dimensional/vacuum.py +551 -0
  33. mat3ra/esse/models/materials_category_components/entities/core/zero_dimensional/__init__.py +3 -0
  34. mat3ra/esse/models/materials_category_components/entities/core/zero_dimensional/atom.py +134 -0
  35. mat3ra/esse/models/materials_category_components/entities/reusable/__init__.py +3 -0
  36. mat3ra/esse/models/materials_category_components/entities/reusable/repetitions.py +25 -0
  37. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/__init__.py +3 -0
  38. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_non_uniform.py +544 -0
  39. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_uniform.py +541 -0
  40. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/supercell.py +542 -0
  41. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/__init__.py +3 -0
  42. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers.py +683 -0
  43. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique.py +683 -0
  44. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated.py +687 -0
  45. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/crystal_lattice_planes.py +545 -0
  46. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/slab_unit_cell.py +1130 -0
  47. mat3ra/esse/models/materials_category_components/operations/core/combinations/__init__.py +3 -0
  48. mat3ra/esse/models/materials_category_components/operations/core/combinations/merge.py +996 -0
  49. mat3ra/esse/models/materials_category_components/operations/core/combinations/stack.py +968 -0
  50. mat3ra/esse/models/materials_category_components/operations/core/combinations/stack_component.py +967 -0
  51. mat3ra/esse/models/materials_category_components/operations/core/modifications/__init__.py +3 -0
  52. mat3ra/esse/models/materials_category_components/operations/core/modifications/repeat.py +27 -0
  53. mat3ra/esse/models/materials_category_components/operations/core/modifications/strain.py +19 -0
  54. mat3ra/esse/models/properties_directory/derived_properties.py +11 -11
  55. mat3ra/esse/models/properties_directory/non_scalar/average_potential_profile.py +2 -2
  56. mat3ra/esse/models/properties_directory/non_scalar/band_structure.py +2 -2
  57. mat3ra/esse/models/properties_directory/non_scalar/density_of_states.py +2 -2
  58. mat3ra/esse/models/properties_directory/non_scalar/phonon_dispersions.py +2 -2
  59. mat3ra/esse/models/properties_directory/non_scalar/phonon_dos.py +2 -2
  60. mat3ra/esse/models/properties_directory/non_scalar/total_energy_contributions.py +50 -50
  61. mat3ra/esse/models/properties_directory/non_scalar/vibrational_spectrum.py +2 -2
  62. mat3ra/esse/models/properties_directory/scalar/electron_affinity.py +2 -2
  63. mat3ra/esse/models/properties_directory/scalar/fermi_energy.py +2 -2
  64. mat3ra/esse/models/properties_directory/scalar/formation_energy.py +2 -2
  65. mat3ra/esse/models/properties_directory/scalar/ionization_potential.py +2 -2
  66. mat3ra/esse/models/properties_directory/scalar/reaction_energy_barrier.py +2 -2
  67. mat3ra/esse/models/properties_directory/scalar/surface_energy.py +2 -2
  68. mat3ra/esse/models/properties_directory/scalar/total_energy.py +2 -2
  69. mat3ra/esse/models/properties_directory/scalar/valence_band_offset.py +2 -2
  70. mat3ra/esse/models/properties_directory/scalar/zero_point_energy.py +2 -2
  71. mat3ra/esse/models/properties_directory/structural/basis/__init__.py +2 -2
  72. mat3ra/esse/models/properties_directory/structural/molecular_pattern.py +4 -4
  73. mat3ra/esse/models/properties_directory/workflow/convergence/ionic.py +2 -2
  74. {mat3ra_esse-2025.5.17.post2.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/METADATA +1 -1
  75. {mat3ra_esse-2025.5.17.post2.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/RECORD +78 -39
  76. {mat3ra_esse-2025.5.17.post2.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/WHEEL +1 -1
  77. {mat3ra_esse-2025.5.17.post2.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/licenses/LICENSE.md +0 -0
  78. {mat3ra_esse-2025.5.17.post2.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,551 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: materials_category_components/entities/core/two_dimensional/vacuum.json
3
+ # version: 0.28.5
4
+
5
+ from __future__ import annotations
6
+
7
+ from enum import Enum
8
+ from typing import Any, Dict, List, Literal, Optional, Union
9
+
10
+ from pydantic import BaseModel, Field, RootModel, confloat, conint
11
+
12
+
13
+ class AxisEnum(Enum):
14
+ x = "x"
15
+ y = "y"
16
+ z = "z"
17
+
18
+
19
+ class Value(Enum):
20
+ H = "H"
21
+ He = "He"
22
+ Li = "Li"
23
+ Be = "Be"
24
+ B = "B"
25
+ C = "C"
26
+ N = "N"
27
+ O = "O"
28
+ F = "F"
29
+ Ne = "Ne"
30
+ Na = "Na"
31
+ Mg = "Mg"
32
+ Al = "Al"
33
+ Si = "Si"
34
+ P = "P"
35
+ S = "S"
36
+ Cl = "Cl"
37
+ Ar = "Ar"
38
+ K = "K"
39
+ Ca = "Ca"
40
+ Sc = "Sc"
41
+ Ti = "Ti"
42
+ V = "V"
43
+ Cr = "Cr"
44
+ Mn = "Mn"
45
+ Fe = "Fe"
46
+ Co = "Co"
47
+ Ni = "Ni"
48
+ Cu = "Cu"
49
+ Zn = "Zn"
50
+ Ga = "Ga"
51
+ Ge = "Ge"
52
+ As = "As"
53
+ Se = "Se"
54
+ Br = "Br"
55
+ Kr = "Kr"
56
+ Rb = "Rb"
57
+ Sr = "Sr"
58
+ Y = "Y"
59
+ Zr = "Zr"
60
+ Nb = "Nb"
61
+ Mo = "Mo"
62
+ Tc = "Tc"
63
+ Ru = "Ru"
64
+ Rh = "Rh"
65
+ Pd = "Pd"
66
+ Ag = "Ag"
67
+ Cd = "Cd"
68
+ In = "In"
69
+ Sn = "Sn"
70
+ Sb = "Sb"
71
+ Te = "Te"
72
+ I = "I"
73
+ Xe = "Xe"
74
+ Cs = "Cs"
75
+ Ba = "Ba"
76
+ La = "La"
77
+ Ce = "Ce"
78
+ Pr = "Pr"
79
+ Nd = "Nd"
80
+ Pm = "Pm"
81
+ Sm = "Sm"
82
+ Eu = "Eu"
83
+ Gd = "Gd"
84
+ Tb = "Tb"
85
+ Dy = "Dy"
86
+ Ho = "Ho"
87
+ Er = "Er"
88
+ Tm = "Tm"
89
+ Yb = "Yb"
90
+ Lu = "Lu"
91
+ Hf = "Hf"
92
+ Ta = "Ta"
93
+ W = "W"
94
+ Re = "Re"
95
+ Os = "Os"
96
+ Ir = "Ir"
97
+ Pt = "Pt"
98
+ Au = "Au"
99
+ Hg = "Hg"
100
+ Tl = "Tl"
101
+ Pb = "Pb"
102
+ Bi = "Bi"
103
+ Po = "Po"
104
+ At = "At"
105
+ Rn = "Rn"
106
+ Fr = "Fr"
107
+ Ra = "Ra"
108
+ Ac = "Ac"
109
+ Th = "Th"
110
+ Pa = "Pa"
111
+ U = "U"
112
+ Np = "Np"
113
+ Pu = "Pu"
114
+ Am = "Am"
115
+ Cm = "Cm"
116
+ Bk = "Bk"
117
+ Cf = "Cf"
118
+ Es = "Es"
119
+ Fm = "Fm"
120
+ Md = "Md"
121
+ No = "No"
122
+ Lr = "Lr"
123
+ Rf = "Rf"
124
+ Db = "Db"
125
+ Sg = "Sg"
126
+ Bh = "Bh"
127
+ Hs = "Hs"
128
+ Mt = "Mt"
129
+ Ds = "Ds"
130
+ Rg = "Rg"
131
+ Cn = "Cn"
132
+ Nh = "Nh"
133
+ Fl = "Fl"
134
+ Mc = "Mc"
135
+ Lv = "Lv"
136
+ Ts = "Ts"
137
+ Og = "Og"
138
+
139
+
140
+ class Value55(Enum):
141
+ X = "X"
142
+ Vac = "Vac"
143
+
144
+
145
+ class AtomicElementSchema(BaseModel):
146
+ value: Union[Value, Value55]
147
+ """
148
+ All elements, including extra elements
149
+ """
150
+ id: int
151
+ """
152
+ integer id of this entry
153
+ """
154
+
155
+
156
+ class AtomicCoordinateSchema(BaseModel):
157
+ value: List[float] = Field(..., max_length=3, min_length=3, title="coordinate 3d schema")
158
+ """
159
+ value of this entry
160
+ """
161
+ id: int
162
+ """
163
+ integer id of this entry
164
+ """
165
+
166
+
167
+ class BasisUnitsEnum(Enum):
168
+ crystal = "crystal"
169
+ cartesian = "cartesian"
170
+
171
+
172
+ class AtomicLabelSchema(BaseModel):
173
+ value: Union[Union[int, str, float], conint(ge=1, le=9)]
174
+ """
175
+ value of this entry
176
+ """
177
+ id: int
178
+ """
179
+ integer id of this entry
180
+ """
181
+
182
+
183
+ class BasisSchema(BaseModel):
184
+ elements: List[AtomicElementSchema] = Field(..., title="atomic elements schema")
185
+ """
186
+ atomic elements schema
187
+ """
188
+ coordinates: List[AtomicCoordinateSchema] = Field(..., title="atomic coordinates schema")
189
+ """
190
+ atomic coordinates schema
191
+ """
192
+ units: Optional[BasisUnitsEnum] = Field("crystal", title="basis units enum")
193
+ labels: Optional[List[AtomicLabelSchema]] = Field(None, title="atomic labels schema")
194
+ """
195
+ atomic labels schema
196
+ """
197
+
198
+
199
+ class LatticeVectorsUnitsEnum(Enum):
200
+ angstrom = "angstrom"
201
+ bohr = "bohr"
202
+
203
+
204
+ class LatticeVectorsSchema(BaseModel):
205
+ a: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
206
+ b: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
207
+ c: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
208
+ alat: Optional[float] = 1
209
+ """
210
+ lattice parameter for fractional coordinates
211
+ """
212
+ units: Optional[LatticeVectorsUnitsEnum] = Field("angstrom", title="lattice vectors units enum")
213
+
214
+
215
+ class LatticeTypeEnum(Enum):
216
+ CUB = "CUB"
217
+ BCC = "BCC"
218
+ FCC = "FCC"
219
+ TET = "TET"
220
+ MCL = "MCL"
221
+ ORC = "ORC"
222
+ ORCC = "ORCC"
223
+ ORCF = "ORCF"
224
+ ORCI = "ORCI"
225
+ HEX = "HEX"
226
+ BCT = "BCT"
227
+ TRI = "TRI"
228
+ MCLC = "MCLC"
229
+ RHL = "RHL"
230
+
231
+
232
+ class LatticeUnitsLengthEnum(Enum):
233
+ angstrom = "angstrom"
234
+ bohr = "bohr"
235
+
236
+
237
+ class LatticeUnitsAngleEnum(Enum):
238
+ degree = "degree"
239
+ radian = "radian"
240
+
241
+
242
+ class LatticeUnitsSchema(BaseModel):
243
+ length: Optional[LatticeUnitsLengthEnum] = Field("angstrom", title="lattice units length enum")
244
+ angle: Optional[LatticeUnitsAngleEnum] = Field("degree", title="lattice units angle enum")
245
+
246
+
247
+ class LatticeSchema(BaseModel):
248
+ a: float
249
+ """
250
+ length of the first lattice vector
251
+ """
252
+ b: float
253
+ """
254
+ length of the second lattice vector
255
+ """
256
+ c: float
257
+ """
258
+ length of the third lattice vector
259
+ """
260
+ alpha: float
261
+ """
262
+ angle between first and second lattice vector
263
+ """
264
+ beta: float
265
+ """
266
+ angle between second and third lattice vector
267
+ """
268
+ gamma: float
269
+ """
270
+ angle between first and third lattice vector
271
+ """
272
+ vectors: Optional[LatticeVectorsSchema] = Field(None, title="lattice vectors schema")
273
+ type: Optional[LatticeTypeEnum] = Field("TRI", title="lattice type enum")
274
+ units: Optional[LatticeUnitsSchema] = Field(
275
+ default_factory=lambda: LatticeUnitsSchema.model_validate({"length": "angstrom", "angle": "degree"}),
276
+ title="Lattice units schema",
277
+ )
278
+
279
+
280
+ class Name(Enum):
281
+ volume = "volume"
282
+
283
+
284
+ class Units(Enum):
285
+ angstrom_3 = "angstrom^3"
286
+
287
+
288
+ class VolumeSchema(BaseModel):
289
+ name: Literal["0#-datamodel-code-generator-#-object-#-special-#"]
290
+ units: Optional[Units] = None
291
+ value: float
292
+
293
+
294
+ class Name241(Enum):
295
+ density = "density"
296
+
297
+
298
+ class Units113(Enum):
299
+ g_cm_3 = "g/cm^3"
300
+
301
+
302
+ class DensitySchema(BaseModel):
303
+ name: Literal["1#-datamodel-code-generator-#-object-#-special-#"]
304
+ units: Optional[Units113] = None
305
+ value: float
306
+
307
+
308
+ class Units114(Enum):
309
+ angstrom = "angstrom"
310
+
311
+
312
+ class ScalarSchema(BaseModel):
313
+ units: Optional[Units114] = None
314
+ value: float
315
+
316
+
317
+ class Name242(Enum):
318
+ symmetry = "symmetry"
319
+
320
+
321
+ class SymmetrySchema(BaseModel):
322
+ pointGroupSymbol: Optional[str] = None
323
+ """
324
+ point group symbol in Schoenflies notation
325
+ """
326
+ spaceGroupSymbol: Optional[str] = None
327
+ """
328
+ space group symbol in Hermann–Mauguin notation
329
+ """
330
+ tolerance: Optional[ScalarSchema] = Field(None, title="scalar schema")
331
+ """
332
+ tolerance used for symmetry calculation
333
+ """
334
+ name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
335
+
336
+
337
+ class Name243(Enum):
338
+ elemental_ratio = "elemental_ratio"
339
+
340
+
341
+ class ElementalRatio(BaseModel):
342
+ name: Literal["3#-datamodel-code-generator-#-object-#-special-#"]
343
+ value: confloat(ge=0.0, le=1.0)
344
+ element: Optional[str] = None
345
+ """
346
+ the element this ratio is for
347
+ """
348
+
349
+
350
+ class Name244(Enum):
351
+ p_norm = "p-norm"
352
+
353
+
354
+ class PNorm(BaseModel):
355
+ name: Literal["4#-datamodel-code-generator-#-object-#-special-#"]
356
+ degree: Optional[int] = None
357
+ """
358
+ degree of the dimensionality of the norm
359
+ """
360
+ value: float
361
+
362
+
363
+ class Name245(Enum):
364
+ inchi = "inchi"
365
+
366
+
367
+ class InChIRepresentationSchema(BaseModel):
368
+ name: Literal["5#-datamodel-code-generator-#-object-#-special-#"]
369
+ value: str
370
+
371
+
372
+ class Name246(Enum):
373
+ inchi_key = "inchi_key"
374
+
375
+
376
+ class InChIKeyRepresentationSchema(BaseModel):
377
+ name: Literal["6#-datamodel-code-generator-#-object-#-special-#"]
378
+ value: str
379
+
380
+
381
+ class DerivedPropertiesSchema(
382
+ RootModel[
383
+ Union[
384
+ VolumeSchema,
385
+ DensitySchema,
386
+ SymmetrySchema,
387
+ ElementalRatio,
388
+ PNorm,
389
+ InChIRepresentationSchema,
390
+ InChIKeyRepresentationSchema,
391
+ ]
392
+ ]
393
+ ):
394
+ root: Union[
395
+ VolumeSchema,
396
+ DensitySchema,
397
+ SymmetrySchema,
398
+ ElementalRatio,
399
+ PNorm,
400
+ InChIRepresentationSchema,
401
+ InChIKeyRepresentationSchema,
402
+ ] = Field(..., discriminator="name")
403
+
404
+
405
+ class DatabaseSourceSchema(BaseModel):
406
+ id: Union[str, float]
407
+ """
408
+ ID string for the materials uploaded from a third party source inside the third party source. For materialsproject.org an example ID is mp-32
409
+ """
410
+ source: str
411
+ """
412
+ Third party source name, e.g. materials project, 2dmatpedia, ICSD, etc.
413
+ """
414
+ origin: bool
415
+ """
416
+ Deprecated. To be removed. A flag that is true when material is initially imported from a third party * (as opposed to being independently designed from scratch).
417
+ """
418
+ data: Optional[Dict[str, Any]] = None
419
+ """
420
+ Original response from external source.
421
+ """
422
+ doi: Optional[str] = None
423
+ """
424
+ Digital Object Identifier, e.g. 10.1088/0953-8984/25/10/105506
425
+ """
426
+ url: Optional[str] = None
427
+ """
428
+ The URL of the original record, e.g. https://next-gen.materialsproject.org/materials/mp-48; ToDo: update to use URI type per https://json-schema.org/understanding-json-schema/reference/string#resource-identifiers
429
+ """
430
+
431
+
432
+ class FileSourceSchema(BaseModel):
433
+ extension: Optional[str] = None
434
+ """
435
+ file extension
436
+ """
437
+ filename: str
438
+ """
439
+ file name without extension
440
+ """
441
+ text: str
442
+ """
443
+ file content as raw text
444
+ """
445
+ hash: str
446
+ """
447
+ MD5 hash based on file content
448
+ """
449
+
450
+
451
+ class Name247(Enum):
452
+ default = "default"
453
+ atomsTooClose = "atomsTooClose"
454
+ atomsOverlap = "atomsOverlap"
455
+
456
+
457
+ class Severity(Enum):
458
+ info = "info"
459
+ warning = "warning"
460
+ error = "error"
461
+
462
+
463
+ class MaterialConsistencyCheckSchema(BaseModel):
464
+ name: Name247
465
+ """
466
+ Name of the consistency check that is performed, which is listed in an enum.
467
+ """
468
+ key: str
469
+ """
470
+ Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
471
+ """
472
+ severity: Severity
473
+ """
474
+ Severity level of the problem, which is used in UI to differentiate.
475
+ """
476
+ message: str
477
+ """
478
+ Message generated by the consistency check describing the problem.
479
+ """
480
+
481
+
482
+ class CrystalSchema(BaseModel):
483
+ formula: Optional[str] = None
484
+ """
485
+ reduced chemical formula
486
+ """
487
+ unitCellFormula: Optional[str] = None
488
+ """
489
+ chemical formula based on the number of atoms of each element in the supercell
490
+ """
491
+ basis: BasisSchema = Field(..., title="basis schema")
492
+ lattice: LatticeSchema = Field(..., title="lattice schema")
493
+ derivedProperties: Optional[List[DerivedPropertiesSchema]] = Field(None, title="derived properties schema")
494
+ external: Optional[DatabaseSourceSchema] = Field(None, title="database source schema")
495
+ """
496
+ information about a database source
497
+ """
498
+ src: Optional[FileSourceSchema] = Field(None, title="file source schema")
499
+ """
500
+ file source with the information inside
501
+ """
502
+ scaledHash: Optional[str] = None
503
+ """
504
+ Hash string for a scaled structure with lattice vector a set to 1 (eg. for materials under pressure).
505
+ """
506
+ icsdId: Optional[int] = None
507
+ """
508
+ Corresponding ICSD id of the material
509
+ """
510
+ isNonPeriodic: Optional[bool] = None
511
+ """
512
+ Whether to work in the finite molecular picture (usually with atomic orbital basis)
513
+ """
514
+ consistencyChecks: Optional[List[MaterialConsistencyCheckSchema]] = None
515
+ field_id: Optional[str] = Field(None, alias="_id")
516
+ """
517
+ entity identity
518
+ """
519
+ slug: Optional[str] = None
520
+ """
521
+ entity slug
522
+ """
523
+ systemName: Optional[str] = None
524
+ schemaVersion: Optional[str] = "2022.8.16"
525
+ """
526
+ entity's schema version. Used to distinct between different schemas.
527
+ """
528
+ name: Optional[str] = None
529
+ """
530
+ entity name
531
+ """
532
+ isDefault: Optional[bool] = False
533
+ """
534
+ Identifies that entity is defaultable
535
+ """
536
+ metadata: Optional[Dict[str, Any]] = None
537
+
538
+
539
+ class VacuumConfigurationSchema(BaseModel):
540
+ direction: AxisEnum = Field(..., title="Axis Enum")
541
+ """
542
+ Enum for axis types
543
+ """
544
+ size: Optional[confloat(ge=0.0)] = 10
545
+ """
546
+ Size of the vacuum slab in angstroms
547
+ """
548
+ crystal: CrystalSchema = Field(..., title="Crystal Schema")
549
+ """
550
+ A crystal structure, referencing the base material schema
551
+ """
@@ -0,0 +1,3 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: schema
3
+ # version: 0.28.5
@@ -0,0 +1,134 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: materials_category_components/entities/core/zero_dimensional/atom.json
3
+ # version: 0.28.5
4
+
5
+ from __future__ import annotations
6
+
7
+ from enum import Enum
8
+
9
+ from pydantic import BaseModel
10
+
11
+
12
+ class ChemicalElement(Enum):
13
+ H = "H"
14
+ He = "He"
15
+ Li = "Li"
16
+ Be = "Be"
17
+ B = "B"
18
+ C = "C"
19
+ N = "N"
20
+ O = "O"
21
+ F = "F"
22
+ Ne = "Ne"
23
+ Na = "Na"
24
+ Mg = "Mg"
25
+ Al = "Al"
26
+ Si = "Si"
27
+ P = "P"
28
+ S = "S"
29
+ Cl = "Cl"
30
+ Ar = "Ar"
31
+ K = "K"
32
+ Ca = "Ca"
33
+ Sc = "Sc"
34
+ Ti = "Ti"
35
+ V = "V"
36
+ Cr = "Cr"
37
+ Mn = "Mn"
38
+ Fe = "Fe"
39
+ Co = "Co"
40
+ Ni = "Ni"
41
+ Cu = "Cu"
42
+ Zn = "Zn"
43
+ Ga = "Ga"
44
+ Ge = "Ge"
45
+ As = "As"
46
+ Se = "Se"
47
+ Br = "Br"
48
+ Kr = "Kr"
49
+ Rb = "Rb"
50
+ Sr = "Sr"
51
+ Y = "Y"
52
+ Zr = "Zr"
53
+ Nb = "Nb"
54
+ Mo = "Mo"
55
+ Tc = "Tc"
56
+ Ru = "Ru"
57
+ Rh = "Rh"
58
+ Pd = "Pd"
59
+ Ag = "Ag"
60
+ Cd = "Cd"
61
+ In = "In"
62
+ Sn = "Sn"
63
+ Sb = "Sb"
64
+ Te = "Te"
65
+ I = "I"
66
+ Xe = "Xe"
67
+ Cs = "Cs"
68
+ Ba = "Ba"
69
+ La = "La"
70
+ Ce = "Ce"
71
+ Pr = "Pr"
72
+ Nd = "Nd"
73
+ Pm = "Pm"
74
+ Sm = "Sm"
75
+ Eu = "Eu"
76
+ Gd = "Gd"
77
+ Tb = "Tb"
78
+ Dy = "Dy"
79
+ Ho = "Ho"
80
+ Er = "Er"
81
+ Tm = "Tm"
82
+ Yb = "Yb"
83
+ Lu = "Lu"
84
+ Hf = "Hf"
85
+ Ta = "Ta"
86
+ W = "W"
87
+ Re = "Re"
88
+ Os = "Os"
89
+ Ir = "Ir"
90
+ Pt = "Pt"
91
+ Au = "Au"
92
+ Hg = "Hg"
93
+ Tl = "Tl"
94
+ Pb = "Pb"
95
+ Bi = "Bi"
96
+ Po = "Po"
97
+ At = "At"
98
+ Rn = "Rn"
99
+ Fr = "Fr"
100
+ Ra = "Ra"
101
+ Ac = "Ac"
102
+ Th = "Th"
103
+ Pa = "Pa"
104
+ U = "U"
105
+ Np = "Np"
106
+ Pu = "Pu"
107
+ Am = "Am"
108
+ Cm = "Cm"
109
+ Bk = "Bk"
110
+ Cf = "Cf"
111
+ Es = "Es"
112
+ Fm = "Fm"
113
+ Md = "Md"
114
+ No = "No"
115
+ Lr = "Lr"
116
+ Rf = "Rf"
117
+ Db = "Db"
118
+ Sg = "Sg"
119
+ Bh = "Bh"
120
+ Hs = "Hs"
121
+ Mt = "Mt"
122
+ Ds = "Ds"
123
+ Rg = "Rg"
124
+ Cn = "Cn"
125
+ Nh = "Nh"
126
+ Fl = "Fl"
127
+ Mc = "Mc"
128
+ Lv = "Lv"
129
+ Ts = "Ts"
130
+ Og = "Og"
131
+
132
+
133
+ class AtomSchema(BaseModel):
134
+ chemical_element: ChemicalElement
@@ -0,0 +1,3 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: schema
3
+ # version: 0.28.5
@@ -0,0 +1,25 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: materials_category_components/entities/reusable/repetitions.json
3
+ # version: 0.28.5
4
+
5
+ from __future__ import annotations
6
+
7
+ from typing import List, Optional
8
+
9
+ from pydantic import Field, RootModel, conint
10
+
11
+
12
+ class CrystalRepetitionsSchemaItem(RootModel[conint(ge=1)]):
13
+ root: conint(ge=1)
14
+
15
+
16
+ class CrystalRepetitionsSchema(RootModel[Optional[List[CrystalRepetitionsSchemaItem]]]):
17
+ root: Optional[List[CrystalRepetitionsSchemaItem]] = Field(
18
+ default_factory=lambda: [CrystalRepetitionsSchemaItem.model_validate(v) for v in [1, 1, 1]],
19
+ max_length=3,
20
+ min_length=3,
21
+ title="Crystal Repetitions Schema",
22
+ )
23
+ """
24
+ Number of unit cells to repeat in each direction for a crystal structure.
25
+ """