@mat3ra/made 2026.8.7-0 → 2026.8.18-0
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.
- package/dist/js/Material.d.ts +219 -0
- package/dist/js/Material.js +457 -0
- package/dist/js/basis/basis.d.ts +14 -9
- package/dist/js/basis/basis.js +15 -13
- package/dist/js/basis/constrained_basis.d.ts +9 -7
- package/dist/js/basis/constrained_basis.js +4 -4
- package/dist/js/generated/MaterialSchemaMixin.d.ts +5 -0
- package/dist/js/generated/MaterialSchemaMixin.js +69 -0
- package/dist/js/lattice/lattice.d.ts +4 -3
- package/dist/js/lattice/lattice.js +1 -2
- package/dist/js/made.d.ts +12 -12
- package/dist/js/made.js +38 -5
- package/dist/js/parsers/espresso.d.ts +2 -3
- package/dist/js/parsers/espresso.js +0 -1
- package/dist/js/parsers/native_format_parsers.d.ts +9 -8
- package/dist/js/parsers/native_format_parsers.js +6 -6
- package/dist/js/parsers/parsers.d.ts +6 -6
- package/dist/js/parsers/poscar.d.ts +5 -4
- package/dist/js/parsers/poscar.js +3 -2
- package/dist/js/parsers/xyz.d.ts +3 -5
- package/dist/js/parsers/xyz.js +3 -4
- package/dist/js/parsers/xyz_combinatorial_basis.js +3 -1
- package/dist/js/tools/basis.d.ts +1 -1
- package/dist/js/tools/index.d.ts +7 -7
- package/dist/js/tools/material.d.ts +1 -1
- package/dist/js/tools/material.js +8 -7
- package/dist/js/tools/supercell.d.ts +4 -5
- package/dist/js/tools/supercell.js +2 -4
- package/dist/js/tools/surface.d.ts +4 -4
- package/dist/js/tools/surface.js +2 -7
- package/package.json +12 -8
- package/.babelrc +0 -10
- package/.eslintrc.json +0 -11
- package/.gitattributes +0 -1
- package/.husky/post-checkout +0 -3
- package/.husky/post-commit +0 -3
- package/.husky/post-merge +0 -3
- package/.husky/pre-commit +0 -6
- package/.husky/pre-push +0 -3
- package/.mocharc.json +0 -5
- package/.pre-commit-config.yaml +0 -26
- package/.prettierignore +0 -2
- package/.prettierrc +0 -6
- package/AGENTS.md +0 -133
- package/MANIFEST.in +0 -1
- package/data/constants.json +0 -13
- package/data/reciprocal_paths.json +0 -111
- package/dist/js/material.d.ts +0 -169
- package/dist/js/material.js +0 -362
- package/images/made/tools/tools_diagram_general.png +0 -3
- package/images/made/tools/tools_diagram_interface.png +0 -3
- package/pyproject.toml +0 -123
- package/src/__init__.py +0 -0
- package/src/js/basis/basis.ts +0 -621
- package/src/js/basis/constrained_basis.ts +0 -114
- package/src/js/basis/coordinates.ts +0 -93
- package/src/js/basis/elements.ts +0 -24
- package/src/js/basis/helpers.ts +0 -20
- package/src/js/basis/labels.ts +0 -6
- package/src/js/cell/cell.ts +0 -150
- package/src/js/cell/conventional_cell.ts +0 -86
- package/src/js/cell/primitive_cell.ts +0 -166
- package/src/js/constants/molecule.ts +0 -18
- package/src/js/constants.ts +0 -4
- package/src/js/constraints/constraints.ts +0 -45
- package/src/js/lattice/lattice.ts +0 -306
- package/src/js/lattice/lattice_types.ts +0 -134
- package/src/js/lattice/reciprocal/lattice_reciprocal.ts +0 -193
- package/src/js/lattice/reciprocal/paths.ts +0 -39
- package/src/js/lattice/reciprocal/symmetry_points.ts +0 -886
- package/src/js/lattice/unit_cell.ts +0 -66
- package/src/js/made.ts +0 -62
- package/src/js/material.ts +0 -458
- package/src/js/parsers/cif.ts +0 -25
- package/src/js/parsers/errors.ts +0 -6
- package/src/js/parsers/espresso.ts +0 -30
- package/src/js/parsers/native_format_parsers.ts +0 -51
- package/src/js/parsers/parsers.ts +0 -13
- package/src/js/parsers/poscar.ts +0 -212
- package/src/js/parsers/xyz.ts +0 -187
- package/src/js/parsers/xyz_combinatorial_basis.ts +0 -265
- package/src/js/tools/basis.ts +0 -132
- package/src/js/tools/cell.ts +0 -41
- package/src/js/tools/index.ts +0 -11
- package/src/js/tools/material.ts +0 -62
- package/src/js/tools/supercell.ts +0 -88
- package/src/js/tools/surface.ts +0 -223
- package/src/py/__init__.py +0 -0
- package/src/py/mat3ra/__init__.py +0 -1
- package/src/py/mat3ra/made/__init__.py +0 -7
- package/src/py/mat3ra/made/basis/__init__.py +0 -255
- package/src/py/mat3ra/made/basis/coordinates.py +0 -43
- package/src/py/mat3ra/made/cell/__init__.py +0 -55
- package/src/py/mat3ra/made/cell/primitive_cell.py +0 -156
- package/src/py/mat3ra/made/data_helper.py +0 -5
- package/src/py/mat3ra/made/lattice.py +0 -195
- package/src/py/mat3ra/made/material.py +0 -134
- package/src/py/mat3ra/made/metadata.py +0 -45
- package/src/py/mat3ra/made/reciprocal/__init__.py +0 -5
- package/src/py/mat3ra/made/reciprocal/lattice_reciprocal.py +0 -147
- package/src/py/mat3ra/made/reciprocal/paths.py +0 -30
- package/src/py/mat3ra/made/reciprocal/symmetry_points.py +0 -385
- package/src/py/mat3ra/made/tools/README.md +0 -173
- package/src/py/mat3ra/made/tools/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/analyze/__init__.py +0 -31
- package/src/py/mat3ra/made/tools/analyze/basis/__init__.py +0 -3
- package/src/py/mat3ra/made/tools/analyze/basis/analyzer.py +0 -50
- package/src/py/mat3ra/made/tools/analyze/build_metadata_analyzer.py +0 -32
- package/src/py/mat3ra/made/tools/analyze/build_metadata_analyzer_factory.py +0 -31
- package/src/py/mat3ra/made/tools/analyze/coordination.py +0 -56
- package/src/py/mat3ra/made/tools/analyze/crystal_site/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/analyze/crystal_site/adatom_crystal_site_material_analyzer.py +0 -35
- package/src/py/mat3ra/made/tools/analyze/crystal_site/adatom_material_analyzer.py +0 -49
- package/src/py/mat3ra/made/tools/analyze/crystal_site/crystal_site_analyzer.py +0 -65
- package/src/py/mat3ra/made/tools/analyze/crystal_site/voronoi_crystal_site_analyzer.py +0 -47
- package/src/py/mat3ra/made/tools/analyze/enums.py +0 -33
- package/src/py/mat3ra/made/tools/analyze/fingerprint/__init__.py +0 -4
- package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/layered_fingerprint_along_axis.py +0 -83
- package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/unique_element_string_per_layer.py +0 -9
- package/src/py/mat3ra/made/tools/analyze/interface/__init__.py +0 -20
- package/src/py/mat3ra/made/tools/analyze/interface/commensurate.py +0 -156
- package/src/py/mat3ra/made/tools/analyze/interface/enums.py +0 -60
- package/src/py/mat3ra/made/tools/analyze/interface/grain_boundary.py +0 -80
- package/src/py/mat3ra/made/tools/analyze/interface/simple.py +0 -251
- package/src/py/mat3ra/made/tools/analyze/interface/twisted_nanoribbons.py +0 -91
- package/src/py/mat3ra/made/tools/analyze/interface/utils/__init__.py +0 -77
- package/src/py/mat3ra/made/tools/analyze/interface/utils/holders.py +0 -14
- package/src/py/mat3ra/made/tools/analyze/interface/utils/vector.py +0 -56
- package/src/py/mat3ra/made/tools/analyze/interface/zsl.py +0 -259
- package/src/py/mat3ra/made/tools/analyze/interface_material.py +0 -45
- package/src/py/mat3ra/made/tools/analyze/lattice/__init__.py +0 -2
- package/src/py/mat3ra/made/tools/analyze/lattice/analyzer.py +0 -126
- package/src/py/mat3ra/made/tools/analyze/lattice/helpers.py +0 -31
- package/src/py/mat3ra/made/tools/analyze/lattice_lines.py +0 -30
- package/src/py/mat3ra/made/tools/analyze/lattice_planes.py +0 -192
- package/src/py/mat3ra/made/tools/analyze/lattice_swap_analyzer.py +0 -105
- package/src/py/mat3ra/made/tools/analyze/material.py +0 -276
- package/src/py/mat3ra/made/tools/analyze/other.py +0 -434
- package/src/py/mat3ra/made/tools/analyze/rdf.py +0 -74
- package/src/py/mat3ra/made/tools/analyze/slab.py +0 -76
- package/src/py/mat3ra/made/tools/analyze/solid_solution_analyzer.py +0 -171
- package/src/py/mat3ra/made/tools/analyze/terrace.py +0 -105
- package/src/py/mat3ra/made/tools/analyze/utils.py +0 -162
- package/src/py/mat3ra/made/tools/bond_directions/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/bond_directions/bond_directions.py +0 -150
- package/src/py/mat3ra/made/tools/bond_directions/bond_directions_for_element_list.py +0 -7
- package/src/py/mat3ra/made/tools/bond_directions/bond_directions_templates_enum.py +0 -8
- package/src/py/mat3ra/made/tools/bond_directions/bond_directions_templates_for_element.py +0 -16
- package/src/py/mat3ra/made/tools/build/__init__.py +0 -25
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/helpers.py +0 -59
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/types.py +0 -26
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/utils.py +0 -139
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/__init__.py +0 -47
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/__init__.py +0 -11
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/build_parameters.py +0 -5
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/builder.py +0 -164
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/configuration.py +0 -48
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/helpers.py +0 -134
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/commensurate/__init__.py +0 -6
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/commensurate/helpers.py +0 -157
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/enums.py +0 -7
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/configuration.py +0 -13
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/helpers.py +0 -70
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/utils.py +0 -87
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/zsl/__init__.py +0 -6
- package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/zsl/helpers.py +0 -129
- package/src/py/mat3ra/made/tools/build/defective_structures/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/build_parameters.py +0 -12
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/builder.py +0 -17
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/configuration.py +0 -40
- package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/helpers.py +0 -82
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/__init__.py +0 -1
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/__init__.py +0 -9
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/builder.py +0 -37
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/configuration.py +0 -30
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/enums.py +0 -8
- package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/helpers.py +0 -76
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/builder.py +0 -11
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/configuration.py +0 -18
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/helpers.py +0 -137
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/types.py +0 -22
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/builder.py +0 -28
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/configuration.py +0 -55
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/helpers.py +0 -75
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/builder.py +0 -15
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/configuration.py +0 -16
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/helpers.py +0 -116
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/build_parameters.py +0 -10
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/builder.py +0 -30
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/configuration.py +0 -11
- package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/helpers.py +0 -78
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/builder.py +0 -31
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/configuration.py +0 -45
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/helpers.py +0 -80
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/__init__.py +0 -40
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/atom_placement_method_enum.py +0 -14
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/builder.py +0 -42
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/configuration.py +0 -27
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/complex_defect_type_enum.py +0 -5
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/factories.py +0 -69
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/helpers.py +0 -92
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/builder.py +0 -8
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/configuration.py +0 -29
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/helpers.py +0 -48
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/interstitial_placement_method_enum.py +0 -8
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/point_defect_type_enum.py +0 -8
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/builder.py +0 -6
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/configuration.py +0 -41
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/helpers.py +0 -43
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/substitution_placement_method_enum.py +0 -7
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/types.py +0 -24
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/builder.py +0 -19
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/configuration.py +0 -27
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/helpers.py +0 -42
- package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/vacancy_placement_method_enum.py +0 -7
- package/src/py/mat3ra/made/tools/build/pristine_structures/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/builder.py +0 -80
- package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/configurations.py +0 -22
- package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/helpers.py +0 -40
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/__init__.py +0 -29
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/build_parameters.py +0 -5
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/builders.py +0 -56
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/configuration.py +0 -33
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/helpers.py +0 -76
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/__init__.py +0 -11
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/build_parameters.py +0 -9
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/builders.py +0 -83
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/configuration.py +0 -35
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/helpers.py +0 -62
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/__init__.py +0 -9
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/build_parameters.py +0 -8
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/builder.py +0 -42
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/configuration.py +0 -99
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/helpers.py +0 -95
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/termination_utils.py +0 -14
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/utils.py +0 -61
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab_strained_supercell/builder.py +0 -22
- package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab_strained_supercell/configuration.py +0 -17
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/__init__.py +0 -19
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/analyzer.py +0 -86
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/builder.py +0 -54
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/configuration.py +0 -19
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/enums.py +0 -42
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/helpers.py +0 -127
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/builder.py +0 -33
- package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/configuration.py +0 -16
- package/src/py/mat3ra/made/tools/build/processed_structures/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/__init__.py +0 -9
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/coordination_based_passivation_material_analyzer.py +0 -112
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/passivation_material_analyzer.py +0 -16
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/surface_passivation_material_analyzer.py +0 -32
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/builder.py +0 -23
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/configuration.py +0 -31
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/enums.py +0 -7
- package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/helpers.py +0 -151
- package/src/py/mat3ra/made/tools/build_components/__init__.py +0 -10
- package/src/py/mat3ra/made/tools/build_components/entities/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/one_dimensional/miller_indices_2d.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/two_dimensional/miller_indices.py +0 -18
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/two_dimensional/termination.py +0 -33
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/__init__.py +0 -2
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/crystal_site.py +0 -24
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/crystal_site_list.py +0 -9
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/point_defect_site/builder.py +0 -32
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/point_defect_site/configuration.py +0 -14
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/builder.py +0 -29
- package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/configuration.py +0 -19
- package/src/py/mat3ra/made/tools/build_components/entities/core/two_dimensional/vacuum/builder.py +0 -48
- package/src/py/mat3ra/made/tools/build_components/entities/core/two_dimensional/vacuum/configuration.py +0 -17
- package/src/py/mat3ra/made/tools/build_components/entities/core/zero_dimensional/atom/builder.py +0 -25
- package/src/py/mat3ra/made/tools/build_components/entities/core/zero_dimensional/atom/configuration.py +0 -8
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/__init__.py +0 -16
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/base_configuration_pydantic.py +0 -5
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/base_single_builder.py +0 -87
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/build_parameters.py +0 -5
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/__init__.py +0 -4
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/builder.py +0 -46
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/configuration.py +0 -19
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/edge_types.py +0 -51
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/helpers.py +0 -58
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/__init__.py +0 -4
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/builder.py +0 -42
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/configuration.py +0 -21
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/configuration.py +0 -11
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/helpers.py +0 -38
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/__init__.py +0 -24
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/builder.py +0 -62
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/configuration.py +0 -14
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/helpers.py +0 -42
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/__init__.py +0 -7
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/builder.py +0 -39
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/configuration.py +0 -24
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/__init__.py +0 -10
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/builder.py +0 -36
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/configuration.py +0 -31
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/helpers.py +0 -80
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/zero_dimensional/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/entities/reusable/zero_dimensional/coordinates_shape_enum.py +0 -8
- package/src/py/mat3ra/made/tools/build_components/metadata/__init__.py +0 -2
- package/src/py/mat3ra/made/tools/build_components/metadata/build_metadata.py +0 -7
- package/src/py/mat3ra/made/tools/build_components/metadata/material_build_metadata.py +0 -35
- package/src/py/mat3ra/made/tools/build_components/metadata/material_with_build_metadata.py +0 -8
- package/src/py/mat3ra/made/tools/build_components/mixins/__init__.py +0 -2
- package/src/py/mat3ra/made/tools/build_components/mixins/convert_generated_items_ase_atoms_mixin.py +0 -8
- package/src/py/mat3ra/made/tools/build_components/mixins/convert_generated_items_pymatgen_structure_mixin.py +0 -8
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/__init__.py +0 -0
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/enums.py +0 -11
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/__init__.py +0 -6
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/build_parameters.py +0 -18
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/builder.py +0 -93
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/configuration.py +0 -20
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/stack/builder.py +0 -83
- package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/stack/configuration.py +0 -24
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/__init__.py +0 -15
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/build_parameters.py +0 -5
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/builders/base.py +0 -33
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/builders/isometric.py +0 -25
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/configuration.py +0 -24
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/__init__.py +0 -13
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/atomic_mass_dependent_function_holder.py +0 -32
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/function_holder.py +0 -80
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/maxwell_boltzmann.py +0 -39
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/perturbation_function_holder.py +0 -45
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/sine_wave_perturbation_function_holder.py +0 -29
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/helpers.py +0 -83
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/__init__.py +0 -5
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/builder.py +0 -25
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/configuration.py +0 -23
- package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/helpers.py +0 -49
- package/src/py/mat3ra/made/tools/build_components/utils.py +0 -44
- package/src/py/mat3ra/made/tools/calculate/__init__.py +0 -149
- package/src/py/mat3ra/made/tools/calculate/ase/__init__.py +0 -133
- package/src/py/mat3ra/made/tools/calculate/ase/constraints.py +0 -91
- package/src/py/mat3ra/made/tools/calculate/calculators/__init__.py +0 -4
- package/src/py/mat3ra/made/tools/calculate/calculators/interface_material_calculator.py +0 -70
- package/src/py/mat3ra/made/tools/calculate/calculators/interface_material_calculator_parameters.py +0 -14
- package/src/py/mat3ra/made/tools/calculate/calculators/material_calculator.py +0 -32
- package/src/py/mat3ra/made/tools/calculate/calculators/material_calculator_parameters.py +0 -17
- package/src/py/mat3ra/made/tools/calculate/interaction_functions.py +0 -23
- package/src/py/mat3ra/made/tools/convert/__init__.py +0 -286
- package/src/py/mat3ra/made/tools/convert/interface_parts_enum.py +0 -9
- package/src/py/mat3ra/made/tools/convert/utils.py +0 -96
- package/src/py/mat3ra/made/tools/entities/__init__.py +0 -5
- package/src/py/mat3ra/made/tools/entities/coordinate/__init__.py +0 -14
- package/src/py/mat3ra/made/tools/entities/coordinate/box_coordinate_condition.py +0 -15
- package/src/py/mat3ra/made/tools/entities/coordinate/coordinate_condition.py +0 -16
- package/src/py/mat3ra/made/tools/entities/coordinate/coordinate_functions.py +0 -158
- package/src/py/mat3ra/made/tools/entities/coordinate/cylinder_coordinate_condition.py +0 -17
- package/src/py/mat3ra/made/tools/entities/coordinate/plane_coordinate_condition.py +0 -14
- package/src/py/mat3ra/made/tools/entities/coordinate/sphere_coordinate_condition.py +0 -15
- package/src/py/mat3ra/made/tools/entities/coordinate/triangular_prism_coordinate_condition.py +0 -26
- package/src/py/mat3ra/made/tools/entities/termination_holder.py +0 -12
- package/src/py/mat3ra/made/tools/helpers.py +0 -168
- package/src/py/mat3ra/made/tools/modify.py +0 -627
- package/src/py/mat3ra/made/tools/operations/core/binary.py +0 -106
- package/src/py/mat3ra/made/tools/operations/core/unary.py +0 -170
- package/src/py/mat3ra/made/tools/operations/core/utils.py +0 -138
- package/src/py/mat3ra/made/tools/operations/reusable/unary.py +0 -53
- package/src/py/mat3ra/made/tools/optimize.py +0 -55
- package/src/py/mat3ra/made/tools/third_party.py +0 -69
- package/src/py/mat3ra/made/tools/utils.py +0 -182
- package/src/py/mat3ra/made/utils.py +0 -144
- package/tests/.gitattributes +0 -1
- package/tests/fixtures/AsGe-basis.json +0 -3
- package/tests/fixtures/C2H4-translated.json +0 -3
- package/tests/fixtures/C2H4.json +0 -3
- package/tests/fixtures/FeLiSi-basis.json +0 -3
- package/tests/fixtures/FeO.json +0 -3
- package/tests/fixtures/Ge2-basis.json +0 -3
- package/tests/fixtures/Graphene.json +0 -3
- package/tests/fixtures/Graphene.poscar +0 -3
- package/tests/fixtures/H2+H-final.json +0 -3
- package/tests/fixtures/H2+H-image.json +0 -3
- package/tests/fixtures/H2+H-initial.json +0 -3
- package/tests/fixtures/H2O.poscar +0 -3
- package/tests/fixtures/LiFeSi-basis-labels.json +0 -3
- package/tests/fixtures/LiFeSi-basis.json +0 -3
- package/tests/fixtures/Na.json +0 -3
- package/tests/fixtures/Na4Cl4-cartesian.json +0 -3
- package/tests/fixtures/Na4Cl4.json +0 -3
- package/tests/fixtures/Na4Cl4.poscar +0 -3
- package/tests/fixtures/Ni-hex.json +0 -3
- package/tests/fixtures/Ni-hex.poscar +0 -3
- package/tests/fixtures/OSi-basis.json +0 -3
- package/tests/fixtures/Si-hex.poscar +0 -3
- package/tests/fixtures/Si-pwscf.in +0 -3
- package/tests/fixtures/Si-slab.json +0 -3
- package/tests/fixtures/Si-supercell.json +0 -3
- package/tests/fixtures/Si2-basis-repeated.json +0 -3
- package/tests/fixtures/Si2-basis.json +0 -3
- package/tests/fixtures/Zr1H23Zr1H1.json +0 -3
- package/tests/fixtures/Zr1H23Zr1H1.poscar +0 -3
- package/tests/fixtures/atomic-constraints.json +0 -3
- package/tests/fixtures/hashes.json +0 -3
- package/tests/fixtures/si-slab-100.json +0 -3
- package/tests/fixtures/si-slab-111-0-vacuum.json +0 -3
- package/tests/fixtures/si-slab-111-0.5-vacuum-gamma-120.json +0 -3
- package/tests/fixtures/si-slab-111-0.5-vacuum-ratio.json +0 -3
- package/tests/fixtures/si-standata.json +0 -3
- package/tests/js/basis/basis.ts +0 -247
- package/tests/js/cell/cell.ts +0 -182
- package/tests/js/cell/primitive_cell.ts +0 -21
- package/tests/js/constraints/constraints.ts +0 -11
- package/tests/js/fixtures.ts +0 -120
- package/tests/js/lattice/lattice.ts +0 -43
- package/tests/js/lattice/lattice_reciprocal.ts +0 -104
- package/tests/js/material.test.ts +0 -42
- package/tests/js/parsers/espresso.ts +0 -15
- package/tests/js/parsers/native_formats.ts +0 -35
- package/tests/js/parsers/poscar.ts +0 -89
- package/tests/js/parsers/xyz.ts +0 -33
- package/tests/js/parsers/xyz_combinatorial_basis.ts +0 -156
- package/tests/js/setup.ts +0 -6
- package/tests/js/tools/basis.ts +0 -22
- package/tests/js/tools/supercell.ts +0 -58
- package/tests/js/tools/surface.ts +0 -115
- package/tests/py/conftest.py +0 -34
- package/tests/py/mat3ra/debug_utils.py +0 -75
- package/tests/py/unit/__init__.py +0 -0
- package/tests/py/unit/fixtures/__init__.py +0 -0
- package/tests/py/unit/fixtures/adatom.py +0 -60
- package/tests/py/unit/fixtures/bulk.py +0 -162
- package/tests/py/unit/fixtures/cuts.py +0 -118
- package/tests/py/unit/fixtures/grain_boundary.py +0 -875
- package/tests/py/unit/fixtures/interface/commensurate.py +0 -498
- package/tests/py/unit/fixtures/interface/gaas_dia.py +0 -837
- package/tests/py/unit/fixtures/interface/gr_ni_111_top_hcp.py +0 -123
- package/tests/py/unit/fixtures/interface/simple.py +0 -84
- package/tests/py/unit/fixtures/interface/twisted_nanoribbons.py +0 -131
- package/tests/py/unit/fixtures/interface/zsl.py +0 -756
- package/tests/py/unit/fixtures/island.py +0 -336
- package/tests/py/unit/fixtures/merge.py +0 -147
- package/tests/py/unit/fixtures/monolayer.py +0 -46
- package/tests/py/unit/fixtures/nanoparticle.py +0 -116
- package/tests/py/unit/fixtures/nanoribbon/__init__.py +0 -0
- package/tests/py/unit/fixtures/nanoribbon/armchair.py +0 -102
- package/tests/py/unit/fixtures/nanoribbon/nanoribbon.py +0 -145
- package/tests/py/unit/fixtures/nanoribbon/zigzag.py +0 -54
- package/tests/py/unit/fixtures/pair_defects.py +0 -41
- package/tests/py/unit/fixtures/passivated/nanoribbon.py +0 -69
- package/tests/py/unit/fixtures/passivated/slab.py +0 -58
- package/tests/py/unit/fixtures/point_defects.py +0 -158
- package/tests/py/unit/fixtures/slab.py +0 -606
- package/tests/py/unit/fixtures/strain.py +0 -42
- package/tests/py/unit/fixtures/supercell.py +0 -64
- package/tests/py/unit/fixtures/terrace.py +0 -70
- package/tests/py/unit/fixtures/thrid_party/ase_atoms.py +0 -13
- package/tests/py/unit/test_analyze_lattice_planes.py +0 -131
- package/tests/py/unit/test_cell.py +0 -104
- package/tests/py/unit/test_data_files.py +0 -68
- package/tests/py/unit/test_lattice.py +0 -103
- package/tests/py/unit/test_lattice_type_extended.py +0 -53
- package/tests/py/unit/test_material.py +0 -158
- package/tests/py/unit/test_operations.py +0 -126
- package/tests/py/unit/test_primitive_cell.py +0 -118
- package/tests/py/unit/test_reciprocal_lattice.py +0 -86
- package/tests/py/unit/test_reciprocal_paths.py +0 -64
- package/tests/py/unit/test_symmetry_points.py +0 -151
- package/tests/py/unit/test_tools_analyze.py +0 -219
- package/tests/py/unit/test_tools_analyze_basis.py +0 -105
- package/tests/py/unit/test_tools_analyze_interface.py +0 -223
- package/tests/py/unit/test_tools_analyze_interface_material.py +0 -63
- package/tests/py/unit/test_tools_analyze_interface_zsl.py +0 -187
- package/tests/py/unit/test_tools_analyze_lattice.py +0 -74
- package/tests/py/unit/test_tools_analyze_swap.py +0 -80
- package/tests/py/unit/test_tools_build.py +0 -158
- package/tests/py/unit/test_tools_build_defect/__init__.py +0 -0
- package/tests/py/unit/test_tools_build_defect/test_adatom.py +0 -84
- package/tests/py/unit/test_tools_build_defect/test_island.py +0 -45
- package/tests/py/unit/test_tools_build_defect/test_pair_defect.py +0 -84
- package/tests/py/unit/test_tools_build_defect/test_point_defect.py +0 -196
- package/tests/py/unit/test_tools_build_defect/test_slab_stack.py +0 -30
- package/tests/py/unit/test_tools_build_defect/test_solid_solution.py +0 -90
- package/tests/py/unit/test_tools_build_defect/test_terrace.py +0 -44
- package/tests/py/unit/test_tools_build_grain_boundary.py +0 -133
- package/tests/py/unit/test_tools_build_heterostructure.py +0 -46
- package/tests/py/unit/test_tools_build_interface.py +0 -292
- package/tests/py/unit/test_tools_build_interface_zsl.py +0 -263
- package/tests/py/unit/test_tools_build_maxwell_disorder.py +0 -123
- package/tests/py/unit/test_tools_build_metadata.py +0 -79
- package/tests/py/unit/test_tools_build_monolayer.py +0 -33
- package/tests/py/unit/test_tools_build_nanoparticle.py +0 -42
- package/tests/py/unit/test_tools_build_nanoribbon.py +0 -45
- package/tests/py/unit/test_tools_build_passivation.py +0 -85
- package/tests/py/unit/test_tools_build_perturbation.py +0 -103
- package/tests/py/unit/test_tools_build_slab.py +0 -382
- package/tests/py/unit/test_tools_build_strain.py +0 -36
- package/tests/py/unit/test_tools_build_supercell.py +0 -47
- package/tests/py/unit/test_tools_calculate.py +0 -67
- package/tests/py/unit/test_tools_convert.py +0 -174
- package/tests/py/unit/test_tools_modify.py +0 -248
- package/tests/py/unit/utils.py +0 -142
- package/tsconfig-transpile.json +0 -3
- package/tsconfig.json +0 -3
package/tests/py/conftest.py
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
## To avoid the following problem with spglib
|
|
2
|
-
# .venv-3.11.2/lib/python3.11/site-packages/spglib/spglib.py:115
|
|
3
|
-
# tests/py/unit/test_tools_build_defect.py::test_create_island
|
|
4
|
-
# tests/py/unit/test_tools_build_slab.py::test_build_slab
|
|
5
|
-
# /Users/mat3ra/code/GREEN/stack/lib/made/.venv-3.11.2/lib/python3.11/site-packages/spglib/spglib.py:115:
|
|
6
|
-
# DeprecationWarning: dict interface (SpglibDataset['rotations']) is deprecated.
|
|
7
|
-
# Use attribute interface ({self.__class__.__name__}.{key}) instead
|
|
8
|
-
# warnings.warn(
|
|
9
|
-
#
|
|
10
|
-
# -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
import warnings
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def pytest_configure(config):
|
|
17
|
-
warnings.filterwarnings("ignore", category=DeprecationWarning, module="spglib.*")
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_orig_warn = warnings.warn
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def custom_warn(message, category=None, *args, **kwargs):
|
|
24
|
-
# spglib emits DeprecationWarnings without using `stacklevel`,
|
|
25
|
-
# so pytest and warning filters can't suppress them properly.
|
|
26
|
-
# These warnings always appear to come from inside spglib itself.
|
|
27
|
-
# This patch intercepts `warnings.warn` to ignore only those specific messages.
|
|
28
|
-
|
|
29
|
-
if isinstance(message, str) and "SpglibDataset" in message and category is DeprecationWarning:
|
|
30
|
-
return # suppress
|
|
31
|
-
return _orig_warn(message, category, *args, **kwargs)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
warnings.warn = custom_warn
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import tempfile
|
|
3
|
-
import time
|
|
4
|
-
import webbrowser
|
|
5
|
-
|
|
6
|
-
# Use a default div id
|
|
7
|
-
default_div_id = "wave-div"
|
|
8
|
-
default_width = 1200
|
|
9
|
-
default_height = 1200
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def get_wave_html(div_id=default_div_id, width=default_width, height=default_height, title="Material"):
|
|
13
|
-
size = min(width, height) # Make it square using the smaller dimension
|
|
14
|
-
return f"""
|
|
15
|
-
<h2>{title}</h2>
|
|
16
|
-
<div id="{div_id}" style="width:{size}px; height:{size}px; border:1px solid #333;"></div>
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
def get_wave_js(material_json, div_id=default_div_id):
|
|
21
|
-
return (
|
|
22
|
-
f"""
|
|
23
|
-
const materialConfig = {material_json};
|
|
24
|
-
const container = document.getElementById('{div_id}');
|
|
25
|
-
"""
|
|
26
|
-
+ """
|
|
27
|
-
(async function() {
|
|
28
|
-
const module = await import('https://exabyte-io.github.io/wave.js/main.js');
|
|
29
|
-
window.renderThreeDEditor(materialConfig, container);
|
|
30
|
-
})();
|
|
31
|
-
document.head.insertAdjacentHTML(
|
|
32
|
-
'beforeend',
|
|
33
|
-
'<link rel="stylesheet" href="https://exabyte-io.github.io/wave.js/main.css"/>'
|
|
34
|
-
);
|
|
35
|
-
"""
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def debug_visualize_material(material, width=default_width, height=default_height, title="Material"):
|
|
40
|
-
"""
|
|
41
|
-
Generates a temporary HTML file that uses Wave.js to visualize the material,
|
|
42
|
-
and opens it in the default browser.
|
|
43
|
-
|
|
44
|
-
Call this function from the PyCharm debugger (e.g., via Evaluate Expression).
|
|
45
|
-
"""
|
|
46
|
-
# Convert your material to JSON.
|
|
47
|
-
# (Assuming material.to_json() returns a JSON-serializable object)
|
|
48
|
-
material_json = material.to_json()
|
|
49
|
-
title = material.name if hasattr(material, "name") else title
|
|
50
|
-
# Generate a unique div id so multiple calls don't conflict
|
|
51
|
-
div_id = f"wave-{int(time.time())}"
|
|
52
|
-
|
|
53
|
-
# Create HTML content that includes our working code
|
|
54
|
-
html_content = f"""
|
|
55
|
-
<!DOCTYPE html>
|
|
56
|
-
<html>
|
|
57
|
-
<head>
|
|
58
|
-
<meta charset="UTF-8">
|
|
59
|
-
<title>Wave.js Debug Viewer</title>
|
|
60
|
-
</head>
|
|
61
|
-
<body>
|
|
62
|
-
{get_wave_html(div_id, width, height, title)}
|
|
63
|
-
<script type="module">
|
|
64
|
-
{get_wave_js(material_json, div_id)}
|
|
65
|
-
</script>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
# Write the HTML to a temporary file and open it in the default browser
|
|
71
|
-
fd, file_path = tempfile.mkstemp(suffix=".html", prefix="wave_debug_")
|
|
72
|
-
with os.fdopen(fd, "w", encoding="utf-8") as f:
|
|
73
|
-
f.write(html_content)
|
|
74
|
-
|
|
75
|
-
webbrowser.open("file://" + file_path)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
SLAB_Si_3_ADATOMS = {
|
|
2
|
-
"name": "Si(001), termination Si_P4/mmm_2, Slab, C, N, Si Adatom",
|
|
3
|
-
"basis": {
|
|
4
|
-
"elements": [
|
|
5
|
-
{"id": 0, "value": "Si"},
|
|
6
|
-
{"id": 1, "value": "Si"},
|
|
7
|
-
{"id": 2, "value": "Si"},
|
|
8
|
-
{"id": 3, "value": "Si"},
|
|
9
|
-
{"id": 4, "value": "Si"},
|
|
10
|
-
{"id": 5, "value": "Si"},
|
|
11
|
-
{"id": 6, "value": "Si"},
|
|
12
|
-
{"id": 7, "value": "Si"},
|
|
13
|
-
{"id": 8, "value": "Si"},
|
|
14
|
-
{"id": 9, "value": "Si"},
|
|
15
|
-
{"id": 10, "value": "Si"},
|
|
16
|
-
{"id": 11, "value": "Si"},
|
|
17
|
-
{"id": 12, "value": "Si"},
|
|
18
|
-
{"id": 13, "value": "Si"},
|
|
19
|
-
{"id": 14, "value": "Si"},
|
|
20
|
-
{"id": 15, "value": "Si"},
|
|
21
|
-
{"id": 16, "value": "Si"},
|
|
22
|
-
{"id": 17, "value": "C"},
|
|
23
|
-
{"id": 18, "value": "N"},
|
|
24
|
-
],
|
|
25
|
-
"coordinates": [
|
|
26
|
-
{"id": 0, "value": [0.5, 0, 0.204677904]},
|
|
27
|
-
{"id": 1, "value": [0.25, 0.25, 0.136452118]},
|
|
28
|
-
{"id": 2, "value": [0.5, 0.5, 0.068226332]},
|
|
29
|
-
{"id": 3, "value": [0.25, 0.75, 5.46e-7]},
|
|
30
|
-
{"id": 4, "value": [0, 0, 0.068226332]},
|
|
31
|
-
{"id": 5, "value": [0.75, 0.25, 5.46e-7]},
|
|
32
|
-
{"id": 6, "value": [0, 0.5, 0.204677904]},
|
|
33
|
-
{"id": 7, "value": [0.75, 0.75, 0.136452118]},
|
|
34
|
-
{"id": 8, "value": [0.5, 0, 0.477581049]},
|
|
35
|
-
{"id": 9, "value": [0.25, 0.25, 0.409355263]},
|
|
36
|
-
{"id": 10, "value": [0.5, 0.5, 0.341129477]},
|
|
37
|
-
{"id": 11, "value": [0.25, 0.75, 0.272903691]},
|
|
38
|
-
{"id": 12, "value": [0, 0, 0.341129477]},
|
|
39
|
-
{"id": 13, "value": [0.75, 0.25, 0.272903691]},
|
|
40
|
-
{"id": 14, "value": [0, 0.5, 0.477581049]},
|
|
41
|
-
{"id": 15, "value": [0.75, 0.75, 0.409355263]},
|
|
42
|
-
{"id": 16, "value": [0.5, 0.5, 0.577390366]},
|
|
43
|
-
{"id": 17, "value": [0.25, 0.25, 0.552439285]},
|
|
44
|
-
{"id": 18, "value": [0.75, 0.75, 0.527488203]},
|
|
45
|
-
],
|
|
46
|
-
"units": "crystal",
|
|
47
|
-
"labels": [],
|
|
48
|
-
"constraints": [],
|
|
49
|
-
},
|
|
50
|
-
"lattice": {
|
|
51
|
-
"a": 5.468763846,
|
|
52
|
-
"b": 5.468763846,
|
|
53
|
-
"c": 20.03921150886921,
|
|
54
|
-
"alpha": 90,
|
|
55
|
-
"beta": 90,
|
|
56
|
-
"gamma": 90,
|
|
57
|
-
"units": {"length": "angstrom", "angle": "degree"},
|
|
58
|
-
"type": "TRI",
|
|
59
|
-
},
|
|
60
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict
|
|
2
|
-
|
|
3
|
-
from mat3ra.standata.materials import Materials
|
|
4
|
-
|
|
5
|
-
BULK_SrTiO3 = Materials.get_by_name_first_match("SrTiO3")
|
|
6
|
-
BULK_GRAPHITE = Materials.get_by_name_first_match("Graphite")
|
|
7
|
-
BULK_SiO2 = Materials.get_by_name_first_match("SiO2")
|
|
8
|
-
BULK_Hf2O_MCL = Materials.get_by_name_first_match("Hafnium IV Oxide, MCL")
|
|
9
|
-
BULK_TiN = Materials.get_by_name_first_match("TiN")
|
|
10
|
-
BULK_Ni_PRIMITIVE = Materials.get_by_name_first_match("Nickel")
|
|
11
|
-
BULK_GRAPHENE = Materials.get_by_name_first_match("Graphene")
|
|
12
|
-
|
|
13
|
-
BULK_Si_PRIMITIVE: Dict[str, Any] = {
|
|
14
|
-
"name": "Silicon FCC",
|
|
15
|
-
"basis": {
|
|
16
|
-
"constraints": [],
|
|
17
|
-
"coordinates": [{"id": 0, "value": [0.0, 0.0, 0.0]}, {"id": 1, "value": [0.25, 0.25, 0.25]}],
|
|
18
|
-
"elements": [{"id": 0, "value": "Si"}, {"id": 1, "value": "Si"}],
|
|
19
|
-
"labels": [],
|
|
20
|
-
"units": "crystal",
|
|
21
|
-
},
|
|
22
|
-
"lattice": {
|
|
23
|
-
"a": 3.867,
|
|
24
|
-
"alpha": 60.0,
|
|
25
|
-
"b": 3.867,
|
|
26
|
-
"beta": 60.0,
|
|
27
|
-
"c": 3.867,
|
|
28
|
-
"gamma": 60.0,
|
|
29
|
-
"type": "FCC",
|
|
30
|
-
"units": {"angle": "degree", "length": "angstrom"},
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
BULK_Si_PRIMITIVIZED = {
|
|
35
|
-
"metadata": {"build": [], "boundaryConditions": {"type": "pbc", "offset": 0}},
|
|
36
|
-
"name": "Si2",
|
|
37
|
-
"basis": {
|
|
38
|
-
"elements": [{"id": 0, "value": "Si"}, {"id": 1, "value": "Si"}],
|
|
39
|
-
"coordinates": [{"id": 0, "value": [0.5, 0.5, 0.5]}, {"id": 1, "value": [0.75, 0.75, 0.75]}],
|
|
40
|
-
"units": "crystal",
|
|
41
|
-
"labels": [],
|
|
42
|
-
"constraints": [],
|
|
43
|
-
},
|
|
44
|
-
"lattice": {
|
|
45
|
-
"a": 3.867,
|
|
46
|
-
"b": 3.867,
|
|
47
|
-
"c": 3.867,
|
|
48
|
-
"alpha": 60.0,
|
|
49
|
-
"beta": 60.0,
|
|
50
|
-
"gamma": 60.0,
|
|
51
|
-
"units": {"length": "angstrom", "angle": "degree"},
|
|
52
|
-
"type": "TRI",
|
|
53
|
-
},
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
BULK_Si_CONVENTIONAL: Dict[str, Any] = {
|
|
58
|
-
"name": "Si8",
|
|
59
|
-
"basis": {
|
|
60
|
-
"elements": [
|
|
61
|
-
{"id": 0, "value": "Si"},
|
|
62
|
-
{"id": 1, "value": "Si"},
|
|
63
|
-
{"id": 2, "value": "Si"},
|
|
64
|
-
{"id": 3, "value": "Si"},
|
|
65
|
-
{"id": 4, "value": "Si"},
|
|
66
|
-
{"id": 5, "value": "Si"},
|
|
67
|
-
{"id": 6, "value": "Si"},
|
|
68
|
-
{"id": 7, "value": "Si"},
|
|
69
|
-
],
|
|
70
|
-
"coordinates": [
|
|
71
|
-
{"id": 0, "value": [0.5, 0.0, 0.0]},
|
|
72
|
-
{"id": 1, "value": [0.25, 0.25, 0.75]},
|
|
73
|
-
{"id": 2, "value": [0.5, 0.5, 0.5]},
|
|
74
|
-
{"id": 3, "value": [0.25, 0.75, 0.25]},
|
|
75
|
-
{"id": 4, "value": [0.0, 0.0, 0.5]},
|
|
76
|
-
{"id": 5, "value": [0.75, 0.25, 0.25]},
|
|
77
|
-
{"id": 6, "value": [0.0, 0.5, 0.0]},
|
|
78
|
-
{"id": 7, "value": [0.75, 0.75, 0.75]},
|
|
79
|
-
],
|
|
80
|
-
"units": "crystal",
|
|
81
|
-
"constraints": [],
|
|
82
|
-
"labels": [],
|
|
83
|
-
},
|
|
84
|
-
"lattice": {
|
|
85
|
-
"a": 5.468763846,
|
|
86
|
-
"b": 5.468763846,
|
|
87
|
-
"c": 5.468763846,
|
|
88
|
-
"alpha": 90.0,
|
|
89
|
-
"beta": 90.0,
|
|
90
|
-
"gamma": 90.0,
|
|
91
|
-
"units": {"length": "angstrom", "angle": "degree"},
|
|
92
|
-
"type": "TRI",
|
|
93
|
-
},
|
|
94
|
-
"isNonPeriodic": False,
|
|
95
|
-
"metadata": {"boundaryConditions": {"type": "pbc", "offset": 0}},
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
BULK_Si_CONVENTIONAL_FILTERED: Dict[str, Any] = {
|
|
99
|
-
"name": "Si",
|
|
100
|
-
"basis": {
|
|
101
|
-
"elements": [
|
|
102
|
-
{"id": 0, "value": "Si"},
|
|
103
|
-
{"id": 2, "value": "Si"},
|
|
104
|
-
],
|
|
105
|
-
"coordinates": [
|
|
106
|
-
{"id": 0, "value": [0.5, 0.0, 0.0]},
|
|
107
|
-
{"id": 2, "value": [0.5, 0.5, 0.5]},
|
|
108
|
-
],
|
|
109
|
-
"units": "crystal",
|
|
110
|
-
"labels": [],
|
|
111
|
-
"constraints": [],
|
|
112
|
-
},
|
|
113
|
-
"lattice": {
|
|
114
|
-
"a": 5.468763846,
|
|
115
|
-
"b": 5.468763846,
|
|
116
|
-
"c": 5.468763846,
|
|
117
|
-
"alpha": 90.0,
|
|
118
|
-
"beta": 90.0,
|
|
119
|
-
"gamma": 90.0,
|
|
120
|
-
"units": {"length": "angstrom", "angle": "degree"},
|
|
121
|
-
"type": "TRI",
|
|
122
|
-
},
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
BULK_Ge_CONVENTIONAL: Dict[str, Any] = {
|
|
126
|
-
"name": "Germanium FCC",
|
|
127
|
-
"basis": {
|
|
128
|
-
"units": "crystal",
|
|
129
|
-
"elements": [
|
|
130
|
-
{"id": 0, "value": "Ge"},
|
|
131
|
-
{"id": 1, "value": "Ge"},
|
|
132
|
-
{"id": 2, "value": "Ge"},
|
|
133
|
-
{"id": 3, "value": "Ge"},
|
|
134
|
-
{"id": 4, "value": "Ge"},
|
|
135
|
-
{"id": 5, "value": "Ge"},
|
|
136
|
-
{"id": 6, "value": "Ge"},
|
|
137
|
-
{"id": 7, "value": "Ge"},
|
|
138
|
-
],
|
|
139
|
-
"coordinates": [
|
|
140
|
-
{"id": 0, "value": [0, 0, 0]},
|
|
141
|
-
{"id": 1, "value": [0.5, 0.5, 0]},
|
|
142
|
-
{"id": 2, "value": [0.5, 0, 0.5]},
|
|
143
|
-
{"id": 3, "value": [0, 0.5, 0.5]},
|
|
144
|
-
{"id": 4, "value": [0.25, 0.25, 0.25]},
|
|
145
|
-
{"id": 5, "value": [0.75, 0.75, 0.25]},
|
|
146
|
-
{"id": 6, "value": [0.75, 0.25, 0.75]},
|
|
147
|
-
{"id": 7, "value": [0.25, 0.75, 0.75]},
|
|
148
|
-
],
|
|
149
|
-
"constraints": [],
|
|
150
|
-
},
|
|
151
|
-
"lattice": {
|
|
152
|
-
"a": 5.67099638511611,
|
|
153
|
-
"b": 5.67099638511611,
|
|
154
|
-
"c": 5.67099638511611,
|
|
155
|
-
"alpha": 90,
|
|
156
|
-
"beta": 90,
|
|
157
|
-
"gamma": 90,
|
|
158
|
-
"units": {"length": "angstrom", "angle": "degree"},
|
|
159
|
-
"type": "CUB",
|
|
160
|
-
"vectors": {"a": [5.671, 0, 0], "b": [0, 5.671, 0], "c": [0, 0, 5.671], "alat": 1, "units": "angstrom"},
|
|
161
|
-
},
|
|
162
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
FULL_MATERIAL = {
|
|
2
|
-
"basis": {
|
|
3
|
-
"constraints": [],
|
|
4
|
-
"coordinates": [
|
|
5
|
-
{"id": 0, "value": [0.0, 0.0, 0.0]},
|
|
6
|
-
{"id": 1, "value": [0.0, 0.5, 0.5]},
|
|
7
|
-
{"id": 2, "value": [0.5, 0.0, 0.5]},
|
|
8
|
-
{"id": 3, "value": [0.5, 0.5, 0.0]},
|
|
9
|
-
],
|
|
10
|
-
"elements": [
|
|
11
|
-
{"id": 0, "value": "Ni"},
|
|
12
|
-
{"id": 1, "value": "Ni"},
|
|
13
|
-
{"id": 2, "value": "Ni"},
|
|
14
|
-
{"id": 3, "value": "Ni"},
|
|
15
|
-
],
|
|
16
|
-
"labels": [],
|
|
17
|
-
"units": "crystal",
|
|
18
|
-
},
|
|
19
|
-
"consistencyChecks": None,
|
|
20
|
-
"derivedProperties": None,
|
|
21
|
-
"description": None,
|
|
22
|
-
"descriptionObject": None,
|
|
23
|
-
"external": None,
|
|
24
|
-
"field_id": None,
|
|
25
|
-
"formula": None,
|
|
26
|
-
"icsdId": None,
|
|
27
|
-
"isDefault": False,
|
|
28
|
-
"isNonPeriodic": False,
|
|
29
|
-
"lattice": {
|
|
30
|
-
"a": 3.52,
|
|
31
|
-
"alpha": 90.0,
|
|
32
|
-
"b": 3.52,
|
|
33
|
-
"beta": 90.0,
|
|
34
|
-
"c": 3.52,
|
|
35
|
-
"gamma": 90.0,
|
|
36
|
-
"type": "TRI",
|
|
37
|
-
"units": {"angle": "degree", "length": "angstrom"},
|
|
38
|
-
},
|
|
39
|
-
"metadata": {"boundaryConditions": {"offset": 0, "type": "pbc"}},
|
|
40
|
-
"name": "",
|
|
41
|
-
"scaledHash": None,
|
|
42
|
-
"schemaVersion": "2022.8.16",
|
|
43
|
-
"slug": None,
|
|
44
|
-
"src": None,
|
|
45
|
-
"systemName": None,
|
|
46
|
-
"unitCellFormula": None,
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
CAVITY_MATERIAL_BASIS = {
|
|
50
|
-
"basis": {
|
|
51
|
-
"constraints": [],
|
|
52
|
-
"coordinates": [
|
|
53
|
-
{"id": 1, "value": [0.0, 0.5, 0.5]},
|
|
54
|
-
{"id": 2, "value": [0.5, 0.0, 0.5]},
|
|
55
|
-
{"id": 4, "value": [0.5, 0.5, 0.0]},
|
|
56
|
-
],
|
|
57
|
-
"elements": [{"id": 1, "value": "Ni"}, {"id": 2, "value": "Ni"}, {"id": 4, "value": "Au"}],
|
|
58
|
-
"labels": [],
|
|
59
|
-
"units": "crystal",
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
SECTION_MATERIAL_BASIS = {
|
|
65
|
-
"basis": {
|
|
66
|
-
"constraints": [],
|
|
67
|
-
"coordinates": [{"id": 0, "value": [0.0, 0.0, 0.0]}, {"id": 3, "value": [0.5, 0.5, 0.0]}],
|
|
68
|
-
"elements": [{"id": 0, "value": "Ni"}, {"id": 3, "value": "Ni"}],
|
|
69
|
-
"labels": [],
|
|
70
|
-
"units": "crystal",
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
SECTION_MATERIAL_BASIS_EXTRA_ATOM = {
|
|
75
|
-
"basis": {
|
|
76
|
-
"constraints": [],
|
|
77
|
-
"coordinates": [
|
|
78
|
-
{"id": 0, "value": [0.0, 0.0, 0.0]},
|
|
79
|
-
{"id": 3, "value": [0.5, 0.5, 0.0]},
|
|
80
|
-
{"id": 4, "value": [0.51, 0.51, 0.0]}, # Extra atom collides with Au in cavity material
|
|
81
|
-
],
|
|
82
|
-
"elements": [{"id": 0, "value": "Ni"}, {"id": 3, "value": "Ni"}, {"id": 4, "value": "O"}],
|
|
83
|
-
"labels": [],
|
|
84
|
-
"units": "crystal",
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
MERGED_SECTION_CAVITY_BASIS = {
|
|
89
|
-
"elements": [
|
|
90
|
-
{"id": 0, "value": "Ni"},
|
|
91
|
-
{"id": 1, "value": "Ni"},
|
|
92
|
-
{"id": 2, "value": "Ni"},
|
|
93
|
-
{"id": 4, "value": "Au"},
|
|
94
|
-
],
|
|
95
|
-
"coordinates": [
|
|
96
|
-
{"id": 0, "value": [0.0, 0.0, 0.0]},
|
|
97
|
-
{"id": 1, "value": [0.0, 0.5, 0.5]},
|
|
98
|
-
{"id": 2, "value": [0.5, 0.0, 0.5]},
|
|
99
|
-
{"id": 4, "value": [0.5, 0.5, 0.0]},
|
|
100
|
-
],
|
|
101
|
-
"labels": [],
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
MERGED_CAVITY_SECTION_BASIS = {
|
|
105
|
-
"elements": [
|
|
106
|
-
{"id": 1, "value": "Ni"},
|
|
107
|
-
{"id": 2, "value": "Ni"},
|
|
108
|
-
{"id": 0, "value": "Ni"},
|
|
109
|
-
{"id": 3, "value": "Ni"},
|
|
110
|
-
],
|
|
111
|
-
"coordinates": [
|
|
112
|
-
{"id": 1, "value": [0.0, 0.5, 0.5]},
|
|
113
|
-
{"id": 2, "value": [0.5, 0.0, 0.5]},
|
|
114
|
-
{"id": 0, "value": [0.0, 0.0, 0.0]},
|
|
115
|
-
{"id": 3, "value": [0.5, 0.5, 0.0]},
|
|
116
|
-
],
|
|
117
|
-
"labels": [],
|
|
118
|
-
}
|