mat3ra-esse 2025.6.5.post0__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 (37) 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/material/builders/single_material/two_dimensional/slab/selector_parameters.py +1 -1
  5. mat3ra/esse/models/material/reusable/slab/termination.py +1 -1
  6. mat3ra/esse/models/material/reusable/slab_configuration_with_termination.py +1 -1
  7. mat3ra/esse/models/material/reusable/stack/slab_in_stack.py +1 -1
  8. mat3ra/esse/models/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.py +2 -2
  9. mat3ra/esse/models/materials_category/multi_material/interfaces/configuration.py +1 -1
  10. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab.py +428 -15
  11. mat3ra/esse/models/materials_category_components/entities/auxiliary/two_dimensional/termination.py +1 -1
  12. mat3ra/esse/models/materials_category_components/entities/core/two_dimensional/vacuum.py +526 -2
  13. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_non_uniform.py +14 -14
  14. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_uniform.py +14 -14
  15. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/supercell.py +14 -14
  16. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers.py +1 -1
  17. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique.py +1 -1
  18. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated.py +1 -1
  19. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/slab_unit_cell.py +428 -15
  20. mat3ra/esse/models/materials_category_components/operations/core/combinations/merge.py +413 -0
  21. mat3ra/esse/models/materials_category_components/operations/core/combinations/stack.py +427 -14
  22. mat3ra/esse/models/materials_category_components/operations/core/combinations/stack_component.py +427 -14
  23. mat3ra/esse/models/properties_directory/non_scalar/phonon_dispersions.py +2 -2
  24. mat3ra/esse/models/properties_directory/non_scalar/phonon_dos.py +2 -2
  25. mat3ra/esse/models/properties_directory/non_scalar/total_energy_contributions.py +50 -50
  26. mat3ra/esse/models/properties_directory/non_scalar/vibrational_spectrum.py +2 -2
  27. mat3ra/esse/models/properties_directory/scalar/reaction_energy_barrier.py +2 -2
  28. mat3ra/esse/models/properties_directory/scalar/surface_energy.py +2 -2
  29. mat3ra/esse/models/properties_directory/scalar/total_energy.py +2 -2
  30. mat3ra/esse/models/properties_directory/scalar/valence_band_offset.py +2 -2
  31. mat3ra/esse/models/properties_directory/scalar/zero_point_energy.py +2 -2
  32. mat3ra/esse/models/properties_directory/structural/molecular_pattern.py +4 -4
  33. {mat3ra_esse-2025.6.5.post0.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/METADATA +1 -1
  34. {mat3ra_esse-2025.6.5.post0.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/RECORD +37 -37
  35. {mat3ra_esse-2025.6.5.post0.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/WHEEL +0 -0
  36. {mat3ra_esse-2025.6.5.post0.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/licenses/LICENSE.md +0 -0
  37. {mat3ra_esse-2025.6.5.post0.dist-info → mat3ra_esse-2025.6.14.post0.dist-info}/top_level.txt +0 -0
@@ -131,13 +131,13 @@ class Value(Enum):
131
131
  Og = "Og"
132
132
 
133
133
 
134
- class Value35(Enum):
134
+ class Value41(Enum):
135
135
  X = "X"
136
136
  Vac = "Vac"
137
137
 
138
138
 
139
139
  class AtomicElementSchema(BaseModel):
140
- value: Union[Value, Value35]
140
+ value: Union[Value, Value41]
141
141
  """
142
142
  All elements, including extra elements
143
143
  """
@@ -285,30 +285,30 @@ class VolumeSchema(BaseModel):
285
285
  value: float
286
286
 
287
287
 
288
- class Name142(Enum):
288
+ class Name166(Enum):
289
289
  density = "density"
290
290
 
291
291
 
292
- class Units75(Enum):
292
+ class Units84(Enum):
293
293
  g_cm_3 = "g/cm^3"
294
294
 
295
295
 
296
296
  class DensitySchema(BaseModel):
297
297
  name: Literal["1#-datamodel-code-generator-#-object-#-special-#"]
298
- units: Optional[Units75] = None
298
+ units: Optional[Units84] = None
299
299
  value: float
300
300
 
301
301
 
302
- class Units76(Enum):
302
+ class Units85(Enum):
303
303
  angstrom = "angstrom"
304
304
 
305
305
 
306
306
  class ScalarSchema(BaseModel):
307
- units: Optional[Units76] = None
307
+ units: Optional[Units85] = None
308
308
  value: float
309
309
 
310
310
 
311
- class Name143(Enum):
311
+ class Name167(Enum):
312
312
  symmetry = "symmetry"
313
313
 
314
314
 
@@ -328,7 +328,7 @@ class SymmetrySchema(BaseModel):
328
328
  name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
329
329
 
330
330
 
331
- class Name144(Enum):
331
+ class Name168(Enum):
332
332
  elemental_ratio = "elemental_ratio"
333
333
 
334
334
 
@@ -341,7 +341,7 @@ class ElementalRatio(BaseModel):
341
341
  """
342
342
 
343
343
 
344
- class Name145(Enum):
344
+ class Name169(Enum):
345
345
  p_norm = "p-norm"
346
346
 
347
347
 
@@ -354,7 +354,7 @@ class PNorm(BaseModel):
354
354
  value: float
355
355
 
356
356
 
357
- class Name146(Enum):
357
+ class Name170(Enum):
358
358
  inchi = "inchi"
359
359
 
360
360
 
@@ -363,7 +363,7 @@ class InChIRepresentationSchema(BaseModel):
363
363
  value: str
364
364
 
365
365
 
366
- class Name147(Enum):
366
+ class Name171(Enum):
367
367
  inchi_key = "inchi_key"
368
368
 
369
369
 
@@ -442,7 +442,7 @@ class FileSourceSchema(BaseModel):
442
442
  """
443
443
 
444
444
 
445
- class Name148(Enum):
445
+ class Name172(Enum):
446
446
  default = "default"
447
447
  atomsTooClose = "atomsTooClose"
448
448
  atomsOverlap = "atomsOverlap"
@@ -455,7 +455,7 @@ class Severity(Enum):
455
455
 
456
456
 
457
457
  class MaterialConsistencyCheckSchema(BaseModel):
458
- name: Name148
458
+ name: Name172
459
459
  """
460
460
  Name of the consistency check that is performed, which is listed in an enum.
461
461
  """
@@ -536,6 +536,415 @@ class AxisEnum(Enum):
536
536
  z = "z"
537
537
 
538
538
 
539
+ class Value42(Enum):
540
+ H = "H"
541
+ He = "He"
542
+ Li = "Li"
543
+ Be = "Be"
544
+ B = "B"
545
+ C = "C"
546
+ N = "N"
547
+ O = "O"
548
+ F = "F"
549
+ Ne = "Ne"
550
+ Na = "Na"
551
+ Mg = "Mg"
552
+ Al = "Al"
553
+ Si = "Si"
554
+ P = "P"
555
+ S = "S"
556
+ Cl = "Cl"
557
+ Ar = "Ar"
558
+ K = "K"
559
+ Ca = "Ca"
560
+ Sc = "Sc"
561
+ Ti = "Ti"
562
+ V = "V"
563
+ Cr = "Cr"
564
+ Mn = "Mn"
565
+ Fe = "Fe"
566
+ Co = "Co"
567
+ Ni = "Ni"
568
+ Cu = "Cu"
569
+ Zn = "Zn"
570
+ Ga = "Ga"
571
+ Ge = "Ge"
572
+ As = "As"
573
+ Se = "Se"
574
+ Br = "Br"
575
+ Kr = "Kr"
576
+ Rb = "Rb"
577
+ Sr = "Sr"
578
+ Y = "Y"
579
+ Zr = "Zr"
580
+ Nb = "Nb"
581
+ Mo = "Mo"
582
+ Tc = "Tc"
583
+ Ru = "Ru"
584
+ Rh = "Rh"
585
+ Pd = "Pd"
586
+ Ag = "Ag"
587
+ Cd = "Cd"
588
+ In = "In"
589
+ Sn = "Sn"
590
+ Sb = "Sb"
591
+ Te = "Te"
592
+ I = "I"
593
+ Xe = "Xe"
594
+ Cs = "Cs"
595
+ Ba = "Ba"
596
+ La = "La"
597
+ Ce = "Ce"
598
+ Pr = "Pr"
599
+ Nd = "Nd"
600
+ Pm = "Pm"
601
+ Sm = "Sm"
602
+ Eu = "Eu"
603
+ Gd = "Gd"
604
+ Tb = "Tb"
605
+ Dy = "Dy"
606
+ Ho = "Ho"
607
+ Er = "Er"
608
+ Tm = "Tm"
609
+ Yb = "Yb"
610
+ Lu = "Lu"
611
+ Hf = "Hf"
612
+ Ta = "Ta"
613
+ W = "W"
614
+ Re = "Re"
615
+ Os = "Os"
616
+ Ir = "Ir"
617
+ Pt = "Pt"
618
+ Au = "Au"
619
+ Hg = "Hg"
620
+ Tl = "Tl"
621
+ Pb = "Pb"
622
+ Bi = "Bi"
623
+ Po = "Po"
624
+ At = "At"
625
+ Rn = "Rn"
626
+ Fr = "Fr"
627
+ Ra = "Ra"
628
+ Ac = "Ac"
629
+ Th = "Th"
630
+ Pa = "Pa"
631
+ U = "U"
632
+ Np = "Np"
633
+ Pu = "Pu"
634
+ Am = "Am"
635
+ Cm = "Cm"
636
+ Bk = "Bk"
637
+ Cf = "Cf"
638
+ Es = "Es"
639
+ Fm = "Fm"
640
+ Md = "Md"
641
+ No = "No"
642
+ Lr = "Lr"
643
+ Rf = "Rf"
644
+ Db = "Db"
645
+ Sg = "Sg"
646
+ Bh = "Bh"
647
+ Hs = "Hs"
648
+ Mt = "Mt"
649
+ Ds = "Ds"
650
+ Rg = "Rg"
651
+ Cn = "Cn"
652
+ Nh = "Nh"
653
+ Fl = "Fl"
654
+ Mc = "Mc"
655
+ Lv = "Lv"
656
+ Ts = "Ts"
657
+ Og = "Og"
658
+
659
+
660
+ class Value43(Enum):
661
+ X = "X"
662
+ Vac = "Vac"
663
+
664
+
665
+ class AtomicElementSchema17(BaseModel):
666
+ value: Union[Value42, Value43]
667
+ """
668
+ All elements, including extra elements
669
+ """
670
+ id: int
671
+ """
672
+ integer id of this entry
673
+ """
674
+
675
+
676
+ class BasisSchema15(BaseModel):
677
+ elements: List[AtomicElementSchema17] = Field(..., title="atomic elements schema")
678
+ """
679
+ atomic elements schema
680
+ """
681
+ coordinates: List[AtomicCoordinateSchema] = Field(..., title="atomic coordinates schema")
682
+ """
683
+ atomic coordinates schema
684
+ """
685
+ units: Optional[BasisUnitsEnum] = Field("crystal", title="basis units enum")
686
+ labels: Optional[List[AtomicLabelSchema]] = Field(None, title="atomic labels schema")
687
+ """
688
+ atomic labels schema
689
+ """
690
+
691
+
692
+ class LatticeVectorsSchema15(BaseModel):
693
+ a: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
694
+ b: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
695
+ c: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
696
+ alat: Optional[float] = 1
697
+ """
698
+ lattice parameter for fractional coordinates
699
+ """
700
+ units: Optional[LatticeVectorsUnitsEnum] = Field("angstrom", title="lattice vectors units enum")
701
+
702
+
703
+ class LatticeUnitsSchema16(BaseModel):
704
+ length: Optional[LatticeUnitsLengthEnum] = Field("angstrom", title="lattice units length enum")
705
+ angle: Optional[LatticeUnitsAngleEnum] = Field("degree", title="lattice units angle enum")
706
+
707
+
708
+ class LatticeSchema15(BaseModel):
709
+ a: float
710
+ """
711
+ length of the first lattice vector
712
+ """
713
+ b: float
714
+ """
715
+ length of the second lattice vector
716
+ """
717
+ c: float
718
+ """
719
+ length of the third lattice vector
720
+ """
721
+ alpha: float
722
+ """
723
+ angle between first and second lattice vector
724
+ """
725
+ beta: float
726
+ """
727
+ angle between second and third lattice vector
728
+ """
729
+ gamma: float
730
+ """
731
+ angle between first and third lattice vector
732
+ """
733
+ vectors: Optional[LatticeVectorsSchema15] = Field(None, title="lattice vectors schema")
734
+ type: Optional[LatticeTypeEnum] = Field("TRI", title="lattice type enum")
735
+ units: Optional[LatticeUnitsSchema16] = Field(
736
+ default_factory=lambda: LatticeUnitsSchema16.model_validate({"length": "angstrom", "angle": "degree"}),
737
+ title="Lattice units schema",
738
+ )
739
+
740
+
741
+ class Name173(Enum):
742
+ volume = "volume"
743
+
744
+
745
+ class Units86(Enum):
746
+ angstrom_3 = "angstrom^3"
747
+
748
+
749
+ class VolumeSchema15(BaseModel):
750
+ name: Literal["0#-datamodel-code-generator-#-object-#-special-#"]
751
+ units: Optional[Units86] = None
752
+ value: float
753
+
754
+
755
+ class Name174(Enum):
756
+ density = "density"
757
+
758
+
759
+ class Units87(Enum):
760
+ g_cm_3 = "g/cm^3"
761
+
762
+
763
+ class DensitySchema16(BaseModel):
764
+ name: Literal["1#-datamodel-code-generator-#-object-#-special-#"]
765
+ units: Optional[Units87] = None
766
+ value: float
767
+
768
+
769
+ class Units88(Enum):
770
+ angstrom = "angstrom"
771
+
772
+
773
+ class ScalarSchema17(BaseModel):
774
+ units: Optional[Units88] = None
775
+ value: float
776
+
777
+
778
+ class Name175(Enum):
779
+ symmetry = "symmetry"
780
+
781
+
782
+ class SymmetrySchema15(BaseModel):
783
+ pointGroupSymbol: Optional[str] = None
784
+ """
785
+ point group symbol in Schoenflies notation
786
+ """
787
+ spaceGroupSymbol: Optional[str] = None
788
+ """
789
+ space group symbol in Hermann–Mauguin notation
790
+ """
791
+ tolerance: Optional[ScalarSchema17] = Field(None, title="scalar schema")
792
+ """
793
+ tolerance used for symmetry calculation
794
+ """
795
+ name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
796
+
797
+
798
+ class Name176(Enum):
799
+ elemental_ratio = "elemental_ratio"
800
+
801
+
802
+ class ElementalRatio16(BaseModel):
803
+ name: Literal["3#-datamodel-code-generator-#-object-#-special-#"]
804
+ value: confloat(ge=0.0, le=1.0)
805
+ element: Optional[str] = None
806
+ """
807
+ the element this ratio is for
808
+ """
809
+
810
+
811
+ class Name177(Enum):
812
+ p_norm = "p-norm"
813
+
814
+
815
+ class PNorm16(BaseModel):
816
+ name: Literal["4#-datamodel-code-generator-#-object-#-special-#"]
817
+ degree: Optional[int] = None
818
+ """
819
+ degree of the dimensionality of the norm
820
+ """
821
+ value: float
822
+
823
+
824
+ class Name178(Enum):
825
+ inchi = "inchi"
826
+
827
+
828
+ class InChIRepresentationSchema16(BaseModel):
829
+ name: Literal["5#-datamodel-code-generator-#-object-#-special-#"]
830
+ value: str
831
+
832
+
833
+ class Name179(Enum):
834
+ inchi_key = "inchi_key"
835
+
836
+
837
+ class InChIKeyRepresentationSchema16(BaseModel):
838
+ name: Literal["6#-datamodel-code-generator-#-object-#-special-#"]
839
+ value: str
840
+
841
+
842
+ class DerivedPropertiesSchema16(
843
+ RootModel[
844
+ Union[
845
+ VolumeSchema15,
846
+ DensitySchema16,
847
+ SymmetrySchema15,
848
+ ElementalRatio16,
849
+ PNorm16,
850
+ InChIRepresentationSchema16,
851
+ InChIKeyRepresentationSchema16,
852
+ ]
853
+ ]
854
+ ):
855
+ root: Union[
856
+ VolumeSchema15,
857
+ DensitySchema16,
858
+ SymmetrySchema15,
859
+ ElementalRatio16,
860
+ PNorm16,
861
+ InChIRepresentationSchema16,
862
+ InChIKeyRepresentationSchema16,
863
+ ] = Field(..., discriminator="name")
864
+
865
+
866
+ class Name180(Enum):
867
+ default = "default"
868
+ atomsTooClose = "atomsTooClose"
869
+ atomsOverlap = "atomsOverlap"
870
+
871
+
872
+ class MaterialConsistencyCheckSchema15(BaseModel):
873
+ name: Name180
874
+ """
875
+ Name of the consistency check that is performed, which is listed in an enum.
876
+ """
877
+ key: str
878
+ """
879
+ Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
880
+ """
881
+ severity: Severity
882
+ """
883
+ Severity level of the problem, which is used in UI to differentiate.
884
+ """
885
+ message: str
886
+ """
887
+ Message generated by the consistency check describing the problem.
888
+ """
889
+
890
+
891
+ class CrystalSchema12(BaseModel):
892
+ formula: Optional[str] = None
893
+ """
894
+ reduced chemical formula
895
+ """
896
+ unitCellFormula: Optional[str] = None
897
+ """
898
+ chemical formula based on the number of atoms of each element in the supercell
899
+ """
900
+ basis: BasisSchema15 = Field(..., title="basis schema")
901
+ lattice: LatticeSchema15 = Field(..., title="lattice schema")
902
+ derivedProperties: Optional[List[DerivedPropertiesSchema16]] = Field(None, title="derived properties schema")
903
+ external: Optional[DatabaseSourceSchema] = Field(None, title="database source schema")
904
+ """
905
+ information about a database source
906
+ """
907
+ src: Optional[FileSourceSchema] = Field(None, title="file source schema")
908
+ """
909
+ file source with the information inside
910
+ """
911
+ scaledHash: Optional[str] = None
912
+ """
913
+ Hash string for a scaled structure with lattice vector a set to 1 (eg. for materials under pressure).
914
+ """
915
+ icsdId: Optional[int] = None
916
+ """
917
+ Corresponding ICSD id of the material
918
+ """
919
+ isNonPeriodic: Optional[bool] = None
920
+ """
921
+ Whether to work in the finite molecular picture (usually with atomic orbital basis)
922
+ """
923
+ consistencyChecks: Optional[List[MaterialConsistencyCheckSchema15]] = None
924
+ field_id: Optional[str] = Field(None, alias="_id")
925
+ """
926
+ entity identity
927
+ """
928
+ slug: Optional[str] = None
929
+ """
930
+ entity slug
931
+ """
932
+ systemName: Optional[str] = None
933
+ schemaVersion: Optional[str] = "2022.8.16"
934
+ """
935
+ entity's schema version. Used to distinct between different schemas.
936
+ """
937
+ name: Optional[str] = None
938
+ """
939
+ entity name
940
+ """
941
+ isDefault: Optional[bool] = False
942
+ """
943
+ Identifies that entity is defaultable
944
+ """
945
+ metadata: Optional[Dict[str, Any]] = None
946
+
947
+
539
948
  class VacuumConfigurationSchema(BaseModel):
540
949
  direction: AxisEnum = Field(..., title="Axis Enum")
541
950
  """
@@ -545,6 +954,10 @@ class VacuumConfigurationSchema(BaseModel):
545
954
  """
546
955
  Size of the vacuum slab in angstroms
547
956
  """
957
+ crystal: CrystalSchema12 = Field(..., title="Crystal Schema")
958
+ """
959
+ A crystal structure, referencing the base material schema
960
+ """
548
961
 
549
962
 
550
963
  class StackSchema(BaseModel):