@mat3ra/made 2026.8.13-0 → 2026.8.26-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.
Files changed (493) hide show
  1. package/package.json +9 -5
  2. package/.babelrc +0 -10
  3. package/.eslintrc.json +0 -11
  4. package/.gitattributes +0 -1
  5. package/.husky/post-checkout +0 -3
  6. package/.husky/post-commit +0 -3
  7. package/.husky/post-merge +0 -3
  8. package/.husky/pre-commit +0 -6
  9. package/.husky/pre-push +0 -3
  10. package/.mocharc.json +0 -5
  11. package/.pre-commit-config.yaml +0 -26
  12. package/.prettierignore +0 -2
  13. package/.prettierrc +0 -6
  14. package/AGENTS.md +0 -133
  15. package/MANIFEST.in +0 -1
  16. package/data/constants.json +0 -13
  17. package/data/reciprocal_paths.json +0 -111
  18. package/images/made/tools/tools_diagram_general.png +0 -3
  19. package/images/made/tools/tools_diagram_interface.png +0 -3
  20. package/pyproject.toml +0 -123
  21. package/scripts/generate-mixins.ts +0 -28
  22. package/src/__init__.py +0 -0
  23. package/src/js/Material.ts +0 -618
  24. package/src/js/basis/basis.ts +0 -634
  25. package/src/js/basis/constrained_basis.ts +0 -115
  26. package/src/js/basis/coordinates.ts +0 -92
  27. package/src/js/basis/elements.ts +0 -24
  28. package/src/js/basis/helpers.ts +0 -20
  29. package/src/js/basis/labels.ts +0 -6
  30. package/src/js/cell/cell.ts +0 -149
  31. package/src/js/cell/conventional_cell.ts +0 -86
  32. package/src/js/cell/primitive_cell.ts +0 -166
  33. package/src/js/constants/molecule.ts +0 -18
  34. package/src/js/constants.ts +0 -4
  35. package/src/js/constraints/constraints.ts +0 -45
  36. package/src/js/generated/MaterialSchemaMixin.ts +0 -79
  37. package/src/js/lattice/lattice.ts +0 -308
  38. package/src/js/lattice/lattice_types.ts +0 -134
  39. package/src/js/lattice/reciprocal/lattice_reciprocal.ts +0 -206
  40. package/src/js/lattice/reciprocal/paths.ts +0 -39
  41. package/src/js/lattice/reciprocal/symmetry_points.ts +0 -886
  42. package/src/js/lattice/unit_cell.ts +0 -66
  43. package/src/js/made.ts +0 -62
  44. package/src/js/parsers/cif.ts +0 -25
  45. package/src/js/parsers/errors.ts +0 -6
  46. package/src/js/parsers/espresso.ts +0 -29
  47. package/src/js/parsers/native_format_parsers.ts +0 -52
  48. package/src/js/parsers/parsers.ts +0 -13
  49. package/src/js/parsers/poscar.ts +0 -218
  50. package/src/js/parsers/xyz.ts +0 -190
  51. package/src/js/parsers/xyz_combinatorial_basis.ts +0 -268
  52. package/src/js/tools/basis.ts +0 -131
  53. package/src/js/tools/cell.ts +0 -40
  54. package/src/js/tools/index.ts +0 -11
  55. package/src/js/tools/material.ts +0 -64
  56. package/src/js/tools/supercell.ts +0 -89
  57. package/src/js/tools/surface.ts +0 -213
  58. package/src/py/__init__.py +0 -0
  59. package/src/py/mat3ra/__init__.py +0 -1
  60. package/src/py/mat3ra/made/__init__.py +0 -7
  61. package/src/py/mat3ra/made/basis/__init__.py +0 -255
  62. package/src/py/mat3ra/made/basis/coordinates.py +0 -43
  63. package/src/py/mat3ra/made/cell/__init__.py +0 -55
  64. package/src/py/mat3ra/made/cell/primitive_cell.py +0 -156
  65. package/src/py/mat3ra/made/data_helper.py +0 -5
  66. package/src/py/mat3ra/made/lattice.py +0 -195
  67. package/src/py/mat3ra/made/material.py +0 -135
  68. package/src/py/mat3ra/made/metadata.py +0 -45
  69. package/src/py/mat3ra/made/reciprocal/__init__.py +0 -5
  70. package/src/py/mat3ra/made/reciprocal/lattice_reciprocal.py +0 -147
  71. package/src/py/mat3ra/made/reciprocal/paths.py +0 -30
  72. package/src/py/mat3ra/made/reciprocal/symmetry_points.py +0 -385
  73. package/src/py/mat3ra/made/tools/README.md +0 -173
  74. package/src/py/mat3ra/made/tools/__init__.py +0 -0
  75. package/src/py/mat3ra/made/tools/analyze/__init__.py +0 -31
  76. package/src/py/mat3ra/made/tools/analyze/basis/__init__.py +0 -3
  77. package/src/py/mat3ra/made/tools/analyze/basis/analyzer.py +0 -50
  78. package/src/py/mat3ra/made/tools/analyze/build_metadata_analyzer.py +0 -32
  79. package/src/py/mat3ra/made/tools/analyze/build_metadata_analyzer_factory.py +0 -31
  80. package/src/py/mat3ra/made/tools/analyze/coordination.py +0 -56
  81. package/src/py/mat3ra/made/tools/analyze/crystal_site/__init__.py +0 -0
  82. package/src/py/mat3ra/made/tools/analyze/crystal_site/adatom_crystal_site_material_analyzer.py +0 -35
  83. package/src/py/mat3ra/made/tools/analyze/crystal_site/adatom_material_analyzer.py +0 -49
  84. package/src/py/mat3ra/made/tools/analyze/crystal_site/crystal_site_analyzer.py +0 -65
  85. package/src/py/mat3ra/made/tools/analyze/crystal_site/voronoi_crystal_site_analyzer.py +0 -47
  86. package/src/py/mat3ra/made/tools/analyze/enums.py +0 -33
  87. package/src/py/mat3ra/made/tools/analyze/fingerprint/__init__.py +0 -4
  88. package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/__init__.py +0 -0
  89. package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/layered_fingerprint_along_axis.py +0 -83
  90. package/src/py/mat3ra/made/tools/analyze/fingerprint/layers/unique_element_string_per_layer.py +0 -9
  91. package/src/py/mat3ra/made/tools/analyze/interface/__init__.py +0 -20
  92. package/src/py/mat3ra/made/tools/analyze/interface/commensurate.py +0 -156
  93. package/src/py/mat3ra/made/tools/analyze/interface/enums.py +0 -60
  94. package/src/py/mat3ra/made/tools/analyze/interface/grain_boundary.py +0 -80
  95. package/src/py/mat3ra/made/tools/analyze/interface/simple.py +0 -251
  96. package/src/py/mat3ra/made/tools/analyze/interface/twisted_nanoribbons.py +0 -91
  97. package/src/py/mat3ra/made/tools/analyze/interface/utils/__init__.py +0 -77
  98. package/src/py/mat3ra/made/tools/analyze/interface/utils/holders.py +0 -14
  99. package/src/py/mat3ra/made/tools/analyze/interface/utils/vector.py +0 -56
  100. package/src/py/mat3ra/made/tools/analyze/interface/zsl.py +0 -259
  101. package/src/py/mat3ra/made/tools/analyze/interface_material.py +0 -45
  102. package/src/py/mat3ra/made/tools/analyze/lattice/__init__.py +0 -2
  103. package/src/py/mat3ra/made/tools/analyze/lattice/analyzer.py +0 -126
  104. package/src/py/mat3ra/made/tools/analyze/lattice/helpers.py +0 -31
  105. package/src/py/mat3ra/made/tools/analyze/lattice_lines.py +0 -30
  106. package/src/py/mat3ra/made/tools/analyze/lattice_planes.py +0 -192
  107. package/src/py/mat3ra/made/tools/analyze/lattice_swap_analyzer.py +0 -105
  108. package/src/py/mat3ra/made/tools/analyze/material.py +0 -276
  109. package/src/py/mat3ra/made/tools/analyze/other.py +0 -434
  110. package/src/py/mat3ra/made/tools/analyze/rdf.py +0 -74
  111. package/src/py/mat3ra/made/tools/analyze/slab.py +0 -76
  112. package/src/py/mat3ra/made/tools/analyze/solid_solution_analyzer.py +0 -171
  113. package/src/py/mat3ra/made/tools/analyze/terrace.py +0 -105
  114. package/src/py/mat3ra/made/tools/analyze/utils.py +0 -162
  115. package/src/py/mat3ra/made/tools/bond_directions/__init__.py +0 -0
  116. package/src/py/mat3ra/made/tools/bond_directions/bond_directions.py +0 -150
  117. package/src/py/mat3ra/made/tools/bond_directions/bond_directions_for_element_list.py +0 -7
  118. package/src/py/mat3ra/made/tools/bond_directions/bond_directions_templates_enum.py +0 -8
  119. package/src/py/mat3ra/made/tools/bond_directions/bond_directions_templates_for_element.py +0 -16
  120. package/src/py/mat3ra/made/tools/build/__init__.py +0 -25
  121. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/__init__.py +0 -7
  122. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/helpers.py +0 -59
  123. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/types.py +0 -26
  124. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/heterostructure/utils.py +0 -139
  125. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/__init__.py +0 -47
  126. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/__init__.py +0 -11
  127. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/build_parameters.py +0 -5
  128. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/builder.py +0 -164
  129. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/configuration.py +0 -48
  130. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/base/helpers.py +0 -134
  131. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/commensurate/__init__.py +0 -6
  132. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/commensurate/helpers.py +0 -157
  133. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/enums.py +0 -7
  134. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/__init__.py +0 -7
  135. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/configuration.py +0 -13
  136. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/twisted/helpers.py +0 -70
  137. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/utils.py +0 -87
  138. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/zsl/__init__.py +0 -6
  139. package/src/py/mat3ra/made/tools/build/compound_pristine_structures/two_dimensional/interface/zsl/helpers.py +0 -129
  140. package/src/py/mat3ra/made/tools/build/defective_structures/__init__.py +0 -0
  141. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/__init__.py +0 -0
  142. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/__init__.py +0 -0
  143. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/build_parameters.py +0 -12
  144. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/builder.py +0 -17
  145. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/configuration.py +0 -40
  146. package/src/py/mat3ra/made/tools/build/defective_structures/one_dimensional/grain_boundary_linear/helpers.py +0 -82
  147. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/__init__.py +0 -1
  148. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/__init__.py +0 -9
  149. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/builder.py +0 -37
  150. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/configuration.py +0 -30
  151. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/enums.py +0 -8
  152. package/src/py/mat3ra/made/tools/build/defective_structures/three_dimensional/solid_solution/helpers.py +0 -76
  153. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/__init__.py +0 -0
  154. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/__init__.py +0 -0
  155. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/builder.py +0 -11
  156. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/configuration.py +0 -18
  157. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/helpers.py +0 -137
  158. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/adatom/types.py +0 -22
  159. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/__init__.py +0 -0
  160. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/builder.py +0 -28
  161. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/configuration.py +0 -55
  162. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/grain_boundary_planar/helpers.py +0 -75
  163. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/builder.py +0 -15
  164. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/configuration.py +0 -16
  165. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/island/helpers.py +0 -116
  166. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/build_parameters.py +0 -10
  167. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/builder.py +0 -30
  168. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/configuration.py +0 -11
  169. package/src/py/mat3ra/made/tools/build/defective_structures/two_dimensional/terrace/helpers.py +0 -78
  170. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/__init__.py +0 -0
  171. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/__init__.py +0 -0
  172. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/builder.py +0 -31
  173. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/configuration.py +0 -45
  174. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/pair_defect/helpers.py +0 -80
  175. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/__init__.py +0 -40
  176. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/atom_placement_method_enum.py +0 -14
  177. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/__init__.py +0 -7
  178. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/builder.py +0 -42
  179. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/base/configuration.py +0 -27
  180. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/complex_defect_type_enum.py +0 -5
  181. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/factories.py +0 -69
  182. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/helpers.py +0 -92
  183. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/__init__.py +0 -7
  184. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/builder.py +0 -8
  185. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/configuration.py +0 -29
  186. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/helpers.py +0 -48
  187. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/interstitial/interstitial_placement_method_enum.py +0 -8
  188. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/point_defect_type_enum.py +0 -8
  189. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/__init__.py +0 -7
  190. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/builder.py +0 -6
  191. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/configuration.py +0 -41
  192. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/helpers.py +0 -43
  193. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/substitutional/substitution_placement_method_enum.py +0 -7
  194. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/types.py +0 -24
  195. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/__init__.py +0 -7
  196. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/builder.py +0 -19
  197. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/configuration.py +0 -27
  198. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/helpers.py +0 -42
  199. package/src/py/mat3ra/made/tools/build/defective_structures/zero_dimensional/point_defect/vacancy/vacancy_placement_method_enum.py +0 -7
  200. package/src/py/mat3ra/made/tools/build/pristine_structures/__init__.py +0 -0
  201. package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/__init__.py +0 -0
  202. package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/builder.py +0 -80
  203. package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/configurations.py +0 -22
  204. package/src/py/mat3ra/made/tools/build/pristine_structures/three_dimensional/ideal_crystal/helpers.py +0 -40
  205. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/__init__.py +0 -0
  206. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/__init__.py +0 -29
  207. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/build_parameters.py +0 -5
  208. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/builders.py +0 -56
  209. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/configuration.py +0 -33
  210. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanoribbon/helpers.py +0 -76
  211. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/__init__.py +0 -11
  212. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/build_parameters.py +0 -9
  213. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/builders.py +0 -83
  214. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/configuration.py +0 -35
  215. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/nanotape/helpers.py +0 -62
  216. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/__init__.py +0 -9
  217. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/build_parameters.py +0 -8
  218. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/builder.py +0 -42
  219. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/configuration.py +0 -99
  220. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/helpers.py +0 -95
  221. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/termination_utils.py +0 -14
  222. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab/utils.py +0 -61
  223. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab_strained_supercell/builder.py +0 -22
  224. package/src/py/mat3ra/made/tools/build/pristine_structures/two_dimensional/slab_strained_supercell/configuration.py +0 -17
  225. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/__init__.py +0 -0
  226. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/__init__.py +0 -19
  227. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/analyzer.py +0 -86
  228. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/__init__.py +0 -7
  229. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/builder.py +0 -54
  230. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/ase_based/configuration.py +0 -19
  231. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/enums.py +0 -42
  232. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/helpers.py +0 -127
  233. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/__init__.py +0 -7
  234. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/builder.py +0 -33
  235. package/src/py/mat3ra/made/tools/build/pristine_structures/zero_dimensional/nanoparticle/merge_based/configuration.py +0 -16
  236. package/src/py/mat3ra/made/tools/build/processed_structures/__init__.py +0 -0
  237. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/__init__.py +0 -0
  238. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/__init__.py +0 -0
  239. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/__init__.py +0 -9
  240. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/coordination_based_passivation_material_analyzer.py +0 -112
  241. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/passivation_material_analyzer.py +0 -16
  242. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/analyzers/surface_passivation_material_analyzer.py +0 -32
  243. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/builder.py +0 -23
  244. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/configuration.py +0 -31
  245. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/enums.py +0 -7
  246. package/src/py/mat3ra/made/tools/build/processed_structures/two_dimensional/passivation/helpers.py +0 -151
  247. package/src/py/mat3ra/made/tools/build_components/__init__.py +0 -10
  248. package/src/py/mat3ra/made/tools/build_components/entities/__init__.py +0 -0
  249. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/__init__.py +0 -0
  250. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/one_dimensional/miller_indices_2d.py +0 -0
  251. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/two_dimensional/miller_indices.py +0 -18
  252. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/two_dimensional/termination.py +0 -33
  253. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/__init__.py +0 -0
  254. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/__init__.py +0 -2
  255. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/crystal_site.py +0 -24
  256. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/crystal_site/crystal_site_list.py +0 -9
  257. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/point_defect_site/builder.py +0 -32
  258. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/point_defect_site/configuration.py +0 -14
  259. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/__init__.py +0 -0
  260. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/builder.py +0 -29
  261. package/src/py/mat3ra/made/tools/build_components/entities/auxiliary/zero_dimensional/void_region/configuration.py +0 -19
  262. package/src/py/mat3ra/made/tools/build_components/entities/core/two_dimensional/vacuum/builder.py +0 -48
  263. package/src/py/mat3ra/made/tools/build_components/entities/core/two_dimensional/vacuum/configuration.py +0 -17
  264. package/src/py/mat3ra/made/tools/build_components/entities/core/zero_dimensional/atom/builder.py +0 -25
  265. package/src/py/mat3ra/made/tools/build_components/entities/core/zero_dimensional/atom/configuration.py +0 -8
  266. package/src/py/mat3ra/made/tools/build_components/entities/reusable/__init__.py +0 -0
  267. package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/__init__.py +0 -16
  268. package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/base_configuration_pydantic.py +0 -5
  269. package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/base_single_builder.py +0 -87
  270. package/src/py/mat3ra/made/tools/build_components/entities/reusable/base_builder/build_parameters.py +0 -5
  271. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/__init__.py +0 -0
  272. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/__init__.py +0 -4
  273. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/builder.py +0 -46
  274. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/configuration.py +0 -19
  275. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/edge_types.py +0 -51
  276. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines/helpers.py +0 -58
  277. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/__init__.py +0 -4
  278. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/builder.py +0 -42
  279. package/src/py/mat3ra/made/tools/build_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated/configuration.py +0 -21
  280. package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/__init__.py +0 -0
  281. package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/configuration.py +0 -11
  282. package/src/py/mat3ra/made/tools/build_components/entities/reusable/three_dimensional/supercell/helpers.py +0 -38
  283. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/__init__.py +0 -24
  284. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/__init__.py +0 -7
  285. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/builder.py +0 -62
  286. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/configuration.py +0 -14
  287. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated/helpers.py +0 -42
  288. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/__init__.py +0 -7
  289. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/builder.py +0 -39
  290. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/crystal_lattice_planes/configuration.py +0 -24
  291. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/__init__.py +0 -10
  292. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/builder.py +0 -36
  293. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/configuration.py +0 -31
  294. package/src/py/mat3ra/made/tools/build_components/entities/reusable/two_dimensional/slab_stack/helpers.py +0 -80
  295. package/src/py/mat3ra/made/tools/build_components/entities/reusable/zero_dimensional/__init__.py +0 -0
  296. package/src/py/mat3ra/made/tools/build_components/entities/reusable/zero_dimensional/coordinates_shape_enum.py +0 -8
  297. package/src/py/mat3ra/made/tools/build_components/metadata/__init__.py +0 -2
  298. package/src/py/mat3ra/made/tools/build_components/metadata/build_metadata.py +0 -7
  299. package/src/py/mat3ra/made/tools/build_components/metadata/material_build_metadata.py +0 -35
  300. package/src/py/mat3ra/made/tools/build_components/metadata/material_with_build_metadata.py +0 -8
  301. package/src/py/mat3ra/made/tools/build_components/mixins/__init__.py +0 -2
  302. package/src/py/mat3ra/made/tools/build_components/mixins/convert_generated_items_ase_atoms_mixin.py +0 -8
  303. package/src/py/mat3ra/made/tools/build_components/mixins/convert_generated_items_pymatgen_structure_mixin.py +0 -8
  304. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/__init__.py +0 -0
  305. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/enums.py +0 -11
  306. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/__init__.py +0 -6
  307. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/build_parameters.py +0 -18
  308. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/builder.py +0 -93
  309. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/merge/configuration.py +0 -20
  310. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/stack/builder.py +0 -83
  311. package/src/py/mat3ra/made/tools/build_components/operations/core/combinations/stack/configuration.py +0 -24
  312. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/__init__.py +0 -15
  313. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/build_parameters.py +0 -5
  314. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/builders/base.py +0 -33
  315. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/builders/isometric.py +0 -25
  316. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/configuration.py +0 -24
  317. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/__init__.py +0 -13
  318. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/atomic_mass_dependent_function_holder.py +0 -32
  319. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/function_holder.py +0 -80
  320. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/maxwell_boltzmann.py +0 -39
  321. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/perturbation_function_holder.py +0 -45
  322. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/functions/sine_wave_perturbation_function_holder.py +0 -29
  323. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/perturb/helpers.py +0 -83
  324. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/__init__.py +0 -5
  325. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/builder.py +0 -25
  326. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/configuration.py +0 -23
  327. package/src/py/mat3ra/made/tools/build_components/operations/core/modifications/strain/helpers.py +0 -49
  328. package/src/py/mat3ra/made/tools/build_components/utils.py +0 -44
  329. package/src/py/mat3ra/made/tools/calculate/__init__.py +0 -149
  330. package/src/py/mat3ra/made/tools/calculate/ase/__init__.py +0 -133
  331. package/src/py/mat3ra/made/tools/calculate/ase/constraints.py +0 -91
  332. package/src/py/mat3ra/made/tools/calculate/calculators/__init__.py +0 -4
  333. package/src/py/mat3ra/made/tools/calculate/calculators/interface_material_calculator.py +0 -70
  334. package/src/py/mat3ra/made/tools/calculate/calculators/interface_material_calculator_parameters.py +0 -14
  335. package/src/py/mat3ra/made/tools/calculate/calculators/material_calculator.py +0 -32
  336. package/src/py/mat3ra/made/tools/calculate/calculators/material_calculator_parameters.py +0 -17
  337. package/src/py/mat3ra/made/tools/calculate/interaction_functions.py +0 -23
  338. package/src/py/mat3ra/made/tools/convert/__init__.py +0 -286
  339. package/src/py/mat3ra/made/tools/convert/interface_parts_enum.py +0 -9
  340. package/src/py/mat3ra/made/tools/convert/utils.py +0 -96
  341. package/src/py/mat3ra/made/tools/entities/__init__.py +0 -5
  342. package/src/py/mat3ra/made/tools/entities/coordinate/__init__.py +0 -14
  343. package/src/py/mat3ra/made/tools/entities/coordinate/box_coordinate_condition.py +0 -15
  344. package/src/py/mat3ra/made/tools/entities/coordinate/coordinate_condition.py +0 -16
  345. package/src/py/mat3ra/made/tools/entities/coordinate/coordinate_functions.py +0 -158
  346. package/src/py/mat3ra/made/tools/entities/coordinate/cylinder_coordinate_condition.py +0 -17
  347. package/src/py/mat3ra/made/tools/entities/coordinate/plane_coordinate_condition.py +0 -14
  348. package/src/py/mat3ra/made/tools/entities/coordinate/sphere_coordinate_condition.py +0 -15
  349. package/src/py/mat3ra/made/tools/entities/coordinate/triangular_prism_coordinate_condition.py +0 -26
  350. package/src/py/mat3ra/made/tools/entities/termination_holder.py +0 -12
  351. package/src/py/mat3ra/made/tools/helpers.py +0 -168
  352. package/src/py/mat3ra/made/tools/modify.py +0 -627
  353. package/src/py/mat3ra/made/tools/operations/core/binary.py +0 -106
  354. package/src/py/mat3ra/made/tools/operations/core/unary.py +0 -170
  355. package/src/py/mat3ra/made/tools/operations/core/utils.py +0 -138
  356. package/src/py/mat3ra/made/tools/operations/reusable/unary.py +0 -53
  357. package/src/py/mat3ra/made/tools/optimize.py +0 -55
  358. package/src/py/mat3ra/made/tools/third_party.py +0 -69
  359. package/src/py/mat3ra/made/tools/utils.py +0 -182
  360. package/src/py/mat3ra/made/utils.py +0 -144
  361. package/tests/.gitattributes +0 -1
  362. package/tests/fixtures/AsGe-basis.json +0 -3
  363. package/tests/fixtures/C2H4-translated.json +0 -3
  364. package/tests/fixtures/C2H4.json +0 -3
  365. package/tests/fixtures/FeLiSi-basis.json +0 -3
  366. package/tests/fixtures/FeO.json +0 -3
  367. package/tests/fixtures/Ge2-basis.json +0 -3
  368. package/tests/fixtures/Graphene.json +0 -3
  369. package/tests/fixtures/Graphene.poscar +0 -3
  370. package/tests/fixtures/H2+H-final.json +0 -3
  371. package/tests/fixtures/H2+H-image.json +0 -3
  372. package/tests/fixtures/H2+H-initial.json +0 -3
  373. package/tests/fixtures/H2O.poscar +0 -3
  374. package/tests/fixtures/LiFeSi-basis-labels.json +0 -3
  375. package/tests/fixtures/LiFeSi-basis.json +0 -3
  376. package/tests/fixtures/Na.json +0 -3
  377. package/tests/fixtures/Na4Cl4-cartesian.json +0 -3
  378. package/tests/fixtures/Na4Cl4.json +0 -3
  379. package/tests/fixtures/Na4Cl4.poscar +0 -3
  380. package/tests/fixtures/Ni-hex.json +0 -3
  381. package/tests/fixtures/Ni-hex.poscar +0 -3
  382. package/tests/fixtures/OSi-basis.json +0 -3
  383. package/tests/fixtures/Si-hex.poscar +0 -3
  384. package/tests/fixtures/Si-pwscf.in +0 -3
  385. package/tests/fixtures/Si-slab.json +0 -3
  386. package/tests/fixtures/Si-supercell.json +0 -3
  387. package/tests/fixtures/Si2-basis-repeated.json +0 -3
  388. package/tests/fixtures/Si2-basis.json +0 -3
  389. package/tests/fixtures/Zr1H23Zr1H1.json +0 -3
  390. package/tests/fixtures/Zr1H23Zr1H1.poscar +0 -3
  391. package/tests/fixtures/atomic-constraints.json +0 -3
  392. package/tests/fixtures/hashes.json +0 -3
  393. package/tests/fixtures/si-slab-100.json +0 -3
  394. package/tests/fixtures/si-slab-111-0-vacuum.json +0 -3
  395. package/tests/fixtures/si-slab-111-0.5-vacuum-gamma-120.json +0 -3
  396. package/tests/fixtures/si-slab-111-0.5-vacuum-ratio.json +0 -3
  397. package/tests/fixtures/si-standata.json +0 -3
  398. package/tests/js/basis/basis.ts +0 -247
  399. package/tests/js/cell/cell.ts +0 -182
  400. package/tests/js/cell/primitive_cell.ts +0 -21
  401. package/tests/js/constraints/constraints.ts +0 -11
  402. package/tests/js/fixtures.ts +0 -123
  403. package/tests/js/lattice/lattice.ts +0 -43
  404. package/tests/js/lattice/lattice_reciprocal.ts +0 -104
  405. package/tests/js/material/material.ts +0 -161
  406. package/tests/js/parsers/espresso.ts +0 -12
  407. package/tests/js/parsers/native_formats.ts +0 -35
  408. package/tests/js/parsers/poscar.ts +0 -89
  409. package/tests/js/parsers/xyz.ts +0 -33
  410. package/tests/js/parsers/xyz_combinatorial_basis.ts +0 -156
  411. package/tests/js/register-esse-schemas.cjs +0 -10
  412. package/tests/js/setup.ts +0 -6
  413. package/tests/js/tools/basis.ts +0 -22
  414. package/tests/js/tools/supercell.ts +0 -58
  415. package/tests/js/tools/surface.ts +0 -111
  416. package/tests/py/conftest.py +0 -34
  417. package/tests/py/mat3ra/debug_utils.py +0 -75
  418. package/tests/py/unit/__init__.py +0 -0
  419. package/tests/py/unit/fixtures/__init__.py +0 -0
  420. package/tests/py/unit/fixtures/adatom.py +0 -60
  421. package/tests/py/unit/fixtures/bulk.py +0 -162
  422. package/tests/py/unit/fixtures/cuts.py +0 -118
  423. package/tests/py/unit/fixtures/grain_boundary.py +0 -875
  424. package/tests/py/unit/fixtures/interface/commensurate.py +0 -498
  425. package/tests/py/unit/fixtures/interface/gaas_dia.py +0 -837
  426. package/tests/py/unit/fixtures/interface/gr_ni_111_top_hcp.py +0 -123
  427. package/tests/py/unit/fixtures/interface/simple.py +0 -84
  428. package/tests/py/unit/fixtures/interface/twisted_nanoribbons.py +0 -131
  429. package/tests/py/unit/fixtures/interface/zsl.py +0 -756
  430. package/tests/py/unit/fixtures/island.py +0 -336
  431. package/tests/py/unit/fixtures/merge.py +0 -147
  432. package/tests/py/unit/fixtures/monolayer.py +0 -46
  433. package/tests/py/unit/fixtures/nanoparticle.py +0 -116
  434. package/tests/py/unit/fixtures/nanoribbon/__init__.py +0 -0
  435. package/tests/py/unit/fixtures/nanoribbon/armchair.py +0 -102
  436. package/tests/py/unit/fixtures/nanoribbon/nanoribbon.py +0 -145
  437. package/tests/py/unit/fixtures/nanoribbon/zigzag.py +0 -54
  438. package/tests/py/unit/fixtures/pair_defects.py +0 -41
  439. package/tests/py/unit/fixtures/passivated/nanoribbon.py +0 -69
  440. package/tests/py/unit/fixtures/passivated/slab.py +0 -58
  441. package/tests/py/unit/fixtures/point_defects.py +0 -158
  442. package/tests/py/unit/fixtures/slab.py +0 -606
  443. package/tests/py/unit/fixtures/strain.py +0 -42
  444. package/tests/py/unit/fixtures/supercell.py +0 -64
  445. package/tests/py/unit/fixtures/terrace.py +0 -70
  446. package/tests/py/unit/fixtures/thrid_party/ase_atoms.py +0 -13
  447. package/tests/py/unit/test_analyze_lattice_planes.py +0 -131
  448. package/tests/py/unit/test_cell.py +0 -104
  449. package/tests/py/unit/test_data_files.py +0 -68
  450. package/tests/py/unit/test_lattice.py +0 -103
  451. package/tests/py/unit/test_lattice_type_extended.py +0 -53
  452. package/tests/py/unit/test_material.py +0 -158
  453. package/tests/py/unit/test_operations.py +0 -126
  454. package/tests/py/unit/test_primitive_cell.py +0 -118
  455. package/tests/py/unit/test_reciprocal_lattice.py +0 -86
  456. package/tests/py/unit/test_reciprocal_paths.py +0 -64
  457. package/tests/py/unit/test_symmetry_points.py +0 -151
  458. package/tests/py/unit/test_tools_analyze.py +0 -219
  459. package/tests/py/unit/test_tools_analyze_basis.py +0 -105
  460. package/tests/py/unit/test_tools_analyze_interface.py +0 -223
  461. package/tests/py/unit/test_tools_analyze_interface_material.py +0 -63
  462. package/tests/py/unit/test_tools_analyze_interface_zsl.py +0 -187
  463. package/tests/py/unit/test_tools_analyze_lattice.py +0 -74
  464. package/tests/py/unit/test_tools_analyze_swap.py +0 -80
  465. package/tests/py/unit/test_tools_build.py +0 -158
  466. package/tests/py/unit/test_tools_build_defect/__init__.py +0 -0
  467. package/tests/py/unit/test_tools_build_defect/test_adatom.py +0 -84
  468. package/tests/py/unit/test_tools_build_defect/test_island.py +0 -45
  469. package/tests/py/unit/test_tools_build_defect/test_pair_defect.py +0 -84
  470. package/tests/py/unit/test_tools_build_defect/test_point_defect.py +0 -196
  471. package/tests/py/unit/test_tools_build_defect/test_slab_stack.py +0 -30
  472. package/tests/py/unit/test_tools_build_defect/test_solid_solution.py +0 -90
  473. package/tests/py/unit/test_tools_build_defect/test_terrace.py +0 -44
  474. package/tests/py/unit/test_tools_build_grain_boundary.py +0 -133
  475. package/tests/py/unit/test_tools_build_heterostructure.py +0 -46
  476. package/tests/py/unit/test_tools_build_interface.py +0 -292
  477. package/tests/py/unit/test_tools_build_interface_zsl.py +0 -263
  478. package/tests/py/unit/test_tools_build_maxwell_disorder.py +0 -123
  479. package/tests/py/unit/test_tools_build_metadata.py +0 -79
  480. package/tests/py/unit/test_tools_build_monolayer.py +0 -33
  481. package/tests/py/unit/test_tools_build_nanoparticle.py +0 -42
  482. package/tests/py/unit/test_tools_build_nanoribbon.py +0 -45
  483. package/tests/py/unit/test_tools_build_passivation.py +0 -85
  484. package/tests/py/unit/test_tools_build_perturbation.py +0 -103
  485. package/tests/py/unit/test_tools_build_slab.py +0 -382
  486. package/tests/py/unit/test_tools_build_strain.py +0 -36
  487. package/tests/py/unit/test_tools_build_supercell.py +0 -47
  488. package/tests/py/unit/test_tools_calculate.py +0 -67
  489. package/tests/py/unit/test_tools_convert.py +0 -174
  490. package/tests/py/unit/test_tools_modify.py +0 -248
  491. package/tests/py/unit/utils.py +0 -142
  492. package/tsconfig-transpile.json +0 -3
  493. package/tsconfig.json +0 -3
@@ -1,213 +0,0 @@
1
- import { Coordinate3DSchema, Matrix3X3Schema, Vector3DSchema } from "@mat3ra/esse/dist/js/types";
2
- import { Utils } from "@mat3ra/utils";
3
-
4
- import { Cell } from "../cell/cell";
5
- import { Lattice } from "../lattice/lattice";
6
- import Material, { type MaterialConfig, type MaterialSchemaMap } from "../Material";
7
- import SupercellTools from "./supercell";
8
-
9
- const MULT = Utils.math.multiply;
10
- const ADD = Utils.math.add;
11
- const DOT = Utils.math.product;
12
- const getMatrixInLeftHandedRepresentation = (matrix: Matrix3X3Schema) => {
13
- return Utils.math.det(matrix) < 0 ? MULT(matrix, -1) : matrix;
14
- };
15
-
16
- /**
17
- * Helper function for extended GCD.
18
- * Inspired by https://gitlab.com/ase/ase/-/blob/20401e2596821a85f17ced1cb18f32c508e35fb0/ase/build/general_surface.py
19
- * @param {Number} a
20
- * @param {Number} b
21
- * @return {Array}
22
- */
23
- function extGCD(a: number, b: number): [number, number] {
24
- if (b === 0) return [1, 0];
25
- if (Utils.math.mod(a, b) === 0) return [0, 1];
26
-
27
- const [x, y] = extGCD(b, Utils.math.mod(a, b));
28
- return [y, x - y * Utils.math.floor(a / b)];
29
- }
30
-
31
- /**
32
- * Generates a slab scaling matrix for the specified cell based on miller indices.
33
- * Inspired by from https://gitlab.com/ase/ase/blob/master/ase/build/general_surface.py.
34
- */
35
- function getMillerScalingMatrix(
36
- cell: Cell,
37
- millerIndices: Coordinate3DSchema,
38
- tol = 1e-8,
39
- ): Matrix3X3Schema {
40
- if (!millerIndices.reduce((a, b) => Utils.math.abs(a) + Utils.math.abs(b)))
41
- throw new Error("Miller indices are zeros.");
42
-
43
- let scalingMatrix;
44
-
45
- const [h, k, l] = millerIndices;
46
- const [h0, k0, l0] = millerIndices.map((i) => i === 0);
47
-
48
- if ((h0 && k0) || (h0 && l0) || (k0 && l0)) {
49
- // if any two indices are zero
50
-
51
- if (!h0) {
52
- scalingMatrix = [
53
- [0, 1, 0],
54
- [0, 0, 1],
55
- [1, 0, 0],
56
- ];
57
- }
58
- if (!k0) {
59
- scalingMatrix = [
60
- [0, 0, 1],
61
- [1, 0, 0],
62
- [0, 1, 0],
63
- ];
64
- }
65
- if (!l0) {
66
- scalingMatrix = [
67
- [1, 0, 0],
68
- [0, 1, 0],
69
- [0, 0, 1],
70
- ];
71
- }
72
- } else {
73
- const [a1, a2, a3] = cell.vectorArrays;
74
- // z1 = (k * a1 - h * a2)
75
- // z2 = (l * a1 - h * a3)
76
- // z3 = l * a2 - k * a3)
77
- const z1 = ADD(MULT(k, a1), -MULT(h, a2));
78
- const z2 = ADD(MULT(l, a1), -MULT(h, a3));
79
- const z3 = ADD(MULT(l, a2), -MULT(k, a3));
80
-
81
- let [p, q] = extGCD(k, l);
82
-
83
- // @ts-ignore
84
- const k1 = DOT(ADD(MULT(p, z1), MULT(q, z2)), z3);
85
- // @ts-ignore
86
- const k2 = DOT(ADD(MULT(l, z1), -MULT(k, z2)), z3);
87
-
88
- // @ts-ignore
89
- if (Utils.math.abs(k2) > tol) {
90
- // For mathjs version 3.20: round(-0.5) = -0
91
- // For mathjs version 5.10: round(-0.5) = -1
92
- // Here we specify rounding method to Bankers
93
- // For Python 3.11: round(-0.5) = 0
94
- // @ts-ignore - mathjs v12 dot return type
95
- const value = k1 / k2;
96
- const roundedValue = Utils.math.roundCustom(
97
- value,
98
- 0,
99
- Utils.math.RoundingMethod.Bankers,
100
- );
101
- const i = -roundedValue;
102
- [p, q] = [p + i * l, q - i * k];
103
- }
104
-
105
- const [a, b] = extGCD(p * k + q * l, h);
106
- const c1 = [p * k + q * l, -p * h, -q * h];
107
- const c2 = [0, l, -k].map((c) => Utils.math.trunc(c / Utils.math.gcd(l, k))); // floor division
108
- const c3 = [b, a * p, a * q];
109
-
110
- scalingMatrix = [c1, c2, c3];
111
- }
112
-
113
- // @ts-ignore
114
- return getMatrixInLeftHandedRepresentation(scalingMatrix);
115
- }
116
-
117
- /**
118
- * Scale the surface cell in out-of-plane direction according to thickness
119
- * and construct the lateral supercell from vx/vy parameters.
120
- * @param bulkCell {Cell}
121
- * @param surfaceCell {Cell}
122
- * @param outOfPlaneAxisIndex {Number} Index of the cell vector most collinear with the out-of-surface-plane vector
123
- * @param thickness {Number} Surface (Slab) thickness in layers (Positive Integer).
124
- * @param vx {Number} Size of lateral supercell along the direction of the first (x) cell vector (Positive Integer).
125
- * @param vy {Number} Size of lateral supercell along the direction of the second (y) cell vector (Positive Integer).
126
- */
127
- function getDimensionsScalingMatrix(
128
- outOfPlaneAxisIndex: number,
129
- thickness: number,
130
- vx: number,
131
- vy: number,
132
- ): Matrix3X3Schema {
133
- const transformationMatrix = [
134
- [1, 0, 0],
135
- [0, 1, 0],
136
- [0, 0, 1],
137
- ] as Matrix3X3Schema;
138
- const vxIndex = outOfPlaneAxisIndex === 2 ? 0 : outOfPlaneAxisIndex + 1;
139
- const vyIndex = vxIndex === 2 ? 0 : vxIndex + 1;
140
-
141
- transformationMatrix[outOfPlaneAxisIndex] = MULT(
142
- thickness,
143
- transformationMatrix[outOfPlaneAxisIndex],
144
- ) as Vector3DSchema;
145
- transformationMatrix[vxIndex] = MULT(vx, transformationMatrix[vxIndex]) as Vector3DSchema;
146
- transformationMatrix[vyIndex] = MULT(vy, transformationMatrix[vyIndex]) as Vector3DSchema;
147
-
148
- return transformationMatrix as Matrix3X3Schema;
149
- }
150
-
151
- export type SlabConfigSchema = MaterialConfig & {
152
- outOfPlaneAxisIndex: number;
153
- };
154
-
155
- /*
156
- * Generate a config object for a surface based on a set of parameters.
157
- * @param material {Material} The parent material (bulk) this surface is constructed from
158
- * @param millerIndices {Number[]} Miller Indices that define the surface cleavage.
159
- * @param numberOfLayers {Number} Surface (Slab) thickness in layers (Positive Integer).
160
- * @param vx {Number} Size of lateral supercell along the direction of the first (x) cell vector (Positive Integer).
161
- * @param vy {Number} Size of lateral supercell along the direction of the second (y) cell vector (Positive Integer).
162
- * @return {Object}
163
- */
164
- function generateConfig<Schemas extends MaterialSchemaMap = MaterialSchemaMap>(
165
- material: Material<Schemas>,
166
- millerIndices: Coordinate3DSchema,
167
- numberOfLayers = 1,
168
- vx = 1,
169
- vy = 1,
170
- ): SlabConfigSchema {
171
- if (numberOfLayers < 1)
172
- throw new Error("Made.tools.surface.generateConfig: number of layers < 1.");
173
-
174
- const cell = material.getLattice().vectors;
175
- const millerScalingMatrix = getMillerScalingMatrix(cell, millerIndices);
176
- const millerSupercell = cell.cloneAndScaleByMatrix(millerScalingMatrix);
177
- const millerPlanePseudoNormal = cell.convertPointToCartesian(millerIndices);
178
- const outOfPlaneAxisIndex =
179
- millerSupercell.getMostCollinearVectorIndex(millerPlanePseudoNormal);
180
- const dimensionsScalingMatrix = getDimensionsScalingMatrix(
181
- outOfPlaneAxisIndex,
182
- numberOfLayers,
183
- vx,
184
- vy,
185
- );
186
- const supercellMatrix = MULT(dimensionsScalingMatrix, millerScalingMatrix);
187
- const supercell = millerSupercell.cloneAndScaleByMatrix(dimensionsScalingMatrix);
188
- const tempBasis = material.getBasis().clone();
189
- const newBasis = SupercellTools.generateNewBasisWithinSupercell(
190
- tempBasis,
191
- cell,
192
- supercell,
193
- supercellMatrix as Matrix3X3Schema,
194
- );
195
- const newLattice = Lattice.fromVectors({
196
- a: supercell.vectorArrays[0],
197
- b: supercell.vectorArrays[1],
198
- c: supercell.vectorArrays[2],
199
- });
200
-
201
- return {
202
- name: `${material.name} - slab ${JSON.stringify(millerIndices)}`,
203
- basis: newBasis.toJSON(),
204
- lattice: newLattice.toJSON(),
205
- // extra parameter for use in creating vacuum etc.
206
- outOfPlaneAxisIndex,
207
- metadata: {},
208
- };
209
- }
210
-
211
- export default {
212
- generateConfig,
213
- };
File without changes
@@ -1 +0,0 @@
1
- __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -1,7 +0,0 @@
1
- import warnings
2
-
3
- from pydantic.warnings import PydanticDeprecatedSince20
4
-
5
- warnings.filterwarnings("ignore", category=DeprecationWarning, module="typing_extensions")
6
- warnings.filterwarnings("ignore", category=UserWarning, module="pydantic")
7
- warnings.filterwarnings("ignore", category=PydanticDeprecatedSince20)
@@ -1,255 +0,0 @@
1
- from typing import Any, Dict, List, Optional, Union
2
-
3
- import numpy as np
4
- from mat3ra.code.array_with_ids import ArrayWithIds
5
- from mat3ra.code.constants import HASH_TOLERANCE
6
- from mat3ra.code.entity import InMemoryEntityPydantic
7
- from mat3ra.esse.models.core.abstract.matrix_3x3 import Matrix3x3Schema
8
- from mat3ra.esse.models.material import BasisSchema, BasisUnitsEnum
9
- from mat3ra.made.basis.coordinates import Coordinates
10
- from mat3ra.made.cell import Cell
11
- from pydantic import Field
12
- from scipy.spatial import cKDTree
13
-
14
-
15
- def get_overlapping_coordinates(
16
- coordinate: List[float],
17
- coordinates: List[List[float]],
18
- threshold: float = 0.01,
19
- ) -> List[List[float]]:
20
- """
21
- Find coordinates that are within a certain threshold of a given coordinate.
22
-
23
- Args:
24
- coordinate (List[float]): The coordinate.
25
- coordinates (List[List[float]]): The list of coordinates.
26
- threshold (float): The threshold for the distance, in the units of the coordinates.
27
-
28
- Returns:
29
- List[List[float]]: The list of overlapping coordinates.
30
- """
31
- return [c for c in coordinates if np.linalg.norm(np.array(c) - np.array(coordinate)) < threshold]
32
-
33
-
34
- class Basis(BasisSchema, InMemoryEntityPydantic):
35
- elements: ArrayWithIds
36
- coordinates: Coordinates
37
- cell: Cell = Field(Cell(), exclude=True)
38
- labels: ArrayWithIds = Field(ArrayWithIds.from_values([]))
39
- constraints: ArrayWithIds = Field(ArrayWithIds.from_values([]))
40
- DEFAULT_COORDINATE_PROXIMITY_TOLERANCE: float = Field(
41
- 0.1, exclude=True
42
- ) # Angstroms, used for checking overlapping coordinates
43
-
44
- def __convert_kwargs__(self, **kwargs: Any) -> Dict[str, Any]:
45
- if isinstance(kwargs.get("elements"), list):
46
- kwargs["elements"] = ArrayWithIds.from_list_of_dicts(kwargs["elements"])
47
- if isinstance(kwargs.get("coordinates"), list):
48
- kwargs["coordinates"] = Coordinates.from_list_of_dicts(kwargs["coordinates"])
49
- if isinstance(kwargs.get("labels"), list):
50
- kwargs["labels"] = ArrayWithIds.from_list_of_dicts(kwargs["labels"])
51
- if isinstance(kwargs.get("constraints"), list):
52
- kwargs["constraints"] = ArrayWithIds.from_list_of_dicts(kwargs["constraints"])
53
- if isinstance(kwargs.get("cell"), list):
54
- kwargs["cell"] = Cell.from_vectors_array(kwargs["cell"])
55
- return kwargs
56
-
57
- def __init__(self, *args: Any, **kwargs: Any):
58
- kwargs = self.__convert_kwargs__(**kwargs)
59
- super().__init__(*args, **kwargs)
60
-
61
- @property
62
- def coordinates_as_kdtree(self):
63
- return cKDTree(np.array(self.coordinates.values))
64
-
65
- def get_coordinates_colliding_pairs(self, tolerance=DEFAULT_COORDINATE_PROXIMITY_TOLERANCE):
66
- return self.coordinates_as_kdtree.query_pairs(r=tolerance)
67
-
68
- @property
69
- def number_of_atoms(self) -> int:
70
- return len(self.elements.values)
71
-
72
- @classmethod
73
- def from_dict(
74
- cls,
75
- elements: List[Dict],
76
- coordinates: List[Dict],
77
- units: str,
78
- cell: List[List[float]],
79
- labels: Optional[List[Dict]] = ArrayWithIds.from_list_of_dicts([]),
80
- constraints: Optional[List[Dict]] = ArrayWithIds.from_list_of_dicts([]),
81
- ) -> "Basis":
82
- return Basis(
83
- elements=ArrayWithIds.from_list_of_dicts(elements),
84
- coordinates=Coordinates.from_list_of_dicts(coordinates),
85
- units=units,
86
- cell=Cell.from_vectors_array(cell),
87
- labels=ArrayWithIds.from_list_of_dicts(labels),
88
- constraints=ArrayWithIds.from_list_of_dicts(constraints),
89
- )
90
-
91
- @property
92
- def hash_string(self) -> str:
93
- """
94
- Mirrors JS Basis.hashString (getAsSortedString in crystal units).
95
- Converts to crystal, applies mod 1 to bring coords into [0,1), builds sorted atom strings.
96
- """
97
- original_is_in_cartesian = self.is_in_cartesian_units
98
- self.to_crystal()
99
- labels_map = {lbl["id"]: str(lbl["value"]) for lbl in self.labels.to_dict()}
100
- parts = []
101
- for elem, coord in zip(self.elements.to_dict(), self.coordinates.to_dict()):
102
- label = labels_map.get(elem["id"], "")
103
- rounded = [f"{round(v % 1, HASH_TOLERANCE):g}" for v in coord["value"]]
104
- parts.append(f"{elem['value']}{label} {','.join(rounded)}")
105
- if original_is_in_cartesian:
106
- self.to_cartesian()
107
- return ";".join(sorted(parts)) + ";"
108
-
109
- @property
110
- def is_in_crystal_units(self):
111
- return self.units == BasisUnitsEnum.crystal
112
-
113
- @property
114
- def is_in_cartesian_units(self):
115
- return self.units == BasisUnitsEnum.cartesian
116
-
117
- def to_cartesian(self):
118
- if self.is_in_cartesian_units:
119
- return
120
- self.coordinates.map_array_in_place(self.cell.convert_point_to_cartesian)
121
- self.units = BasisUnitsEnum.cartesian
122
-
123
- def to_crystal(self):
124
- if self.is_in_crystal_units:
125
- return
126
- self.coordinates.map_array_in_place(self.cell.convert_point_to_crystal)
127
- self.units = BasisUnitsEnum.crystal
128
-
129
- def add_atom(
130
- self,
131
- element="Si",
132
- coordinate: Optional[List[float]] = None,
133
- use_cartesian_coordinates: bool = False,
134
- force: bool = False,
135
- label: Optional[Union[int, str]] = None,
136
- ):
137
- """
138
- Add an atom to the basis at a specified coordinate. Check that no other atom is overlapping with it.
139
-
140
- Args:
141
- element (str): Element symbol of the atom to be added.
142
- coordinate (List[float]): Coordinate of the atom to be added.
143
- use_cartesian_coordinates (bool): Whether the coordinate is in Cartesian units (or crystal by default).
144
- force (bool): Whether to force adding the atom even if it overlaps with another atom.
145
- label (int|str|None): Per-atom label when the basis already uses labels; omit if the basis has none.
146
- """
147
- if coordinate is None:
148
- coordinate = [0, 0, 0]
149
- if use_cartesian_coordinates and self.is_in_crystal_units:
150
- coordinate = self.cell.convert_point_to_crystal(coordinate)
151
- if not use_cartesian_coordinates and self.is_in_cartesian_units:
152
- coordinate = self.cell.convert_point_to_cartesian(coordinate)
153
- cartesian_coordinates_for_overlap_check = [
154
- self.cell.convert_point_to_cartesian(coord) for coord in self.coordinates.values
155
- ]
156
- cartesian_coordinate_for_overlap_check = self.cell.convert_point_to_cartesian(coordinate)
157
- if get_overlapping_coordinates(
158
- cartesian_coordinate_for_overlap_check, cartesian_coordinates_for_overlap_check, threshold=0.01
159
- ):
160
- if force:
161
- print(f"Warning: Overlapping coordinates found for {coordinate}. Adding atom anyway.")
162
- else:
163
- print(f"Warning: Overlapping coordinates found for {coordinate}. Not adding atom.")
164
- return
165
- self.elements.add_item(element)
166
- self.coordinates.add_item(coordinate)
167
- if label is not None:
168
- self.labels.add_item(label)
169
-
170
- def add_atoms_from_another_basis(self, other_basis: "Basis"):
171
- """
172
- Add atoms from another basis to this basis.
173
-
174
- Args:
175
- other_basis (Basis): The other basis to add atoms from.
176
- """
177
-
178
- for el in other_basis.elements.values:
179
- self.elements.add_item(el)
180
- for coord in other_basis.coordinates.values:
181
- self.coordinates.add_item(coord)
182
- for label in other_basis.labels.values:
183
- self.labels.add_item(label)
184
-
185
- def remove_atom_by_id(self, id: int):
186
- self.elements.remove_item(id)
187
- self.coordinates.remove_item(id)
188
- self.labels.remove_item(id)
189
-
190
- def remove_atoms_by_elements(self, values: Union[List[str], str]) -> "Basis":
191
- if isinstance(values, str):
192
- values = [values]
193
- ids_to_remove = [
194
- id_ for value in values for id_, v in zip(self.elements.ids, self.elements.values) if v == value
195
- ]
196
- self.filter_atoms_by_ids(ids_to_remove, invert=True)
197
- return self
198
-
199
- def filter_atoms_by_ids(self, ids: Union[List[int], int], invert: bool = False, reset_ids=False) -> "Basis":
200
- self.elements.filter_by_ids(ids, invert, reset_ids=reset_ids)
201
- self.coordinates.filter_by_ids(ids, invert, reset_ids=reset_ids)
202
- self.labels.filter_by_ids(ids, invert, reset_ids=reset_ids)
203
- return self
204
-
205
- def filter_atoms_by_labels(self, labels: Union[List[str], str]) -> "Basis":
206
- labels_int = [int(label) if isinstance(label, str) else label for label in labels]
207
- self.labels.filter_by_values(labels_int)
208
- ids = self.labels.ids
209
- self.elements.filter_by_ids(ids)
210
- self.coordinates.filter_by_ids(ids)
211
- return self
212
-
213
- def set_labels_from_list(self, labels: Optional[List[Union[int, str]]]) -> None:
214
- """
215
- Set the labels of the basis from a list of labels (i. e. [1,1,1] for a 3-atom basis).
216
- If None or [] are passed, the labels are removed (set to an empty array).
217
- """
218
- num_atoms = len(self.elements.values)
219
-
220
- if labels is None or len(labels) == 0:
221
- self.labels = ArrayWithIds.from_values([])
222
- return
223
-
224
- if len(labels) != num_atoms:
225
- raise ValueError(f"Number of labels ({len(labels)}) must match number of atoms ({num_atoms})")
226
-
227
- self.labels = ArrayWithIds.from_values(values=list(labels))
228
-
229
- def transform_by_matrix(self, matrix: Matrix3x3Schema) -> None:
230
- original_is_in_crystal_units = self.is_in_crystal_units
231
- self.to_crystal()
232
- matrix_np = np.array(matrix)
233
- new_coordinates = np.dot(self.coordinates.values, matrix_np)
234
- self.coordinates.values = new_coordinates.tolist()
235
- if not original_is_in_crystal_units:
236
- self.to_cartesian()
237
-
238
- # TODO: add/update test for this method
239
- def resolve_colliding_coordinates(self, tolerance=DEFAULT_COORDINATE_PROXIMITY_TOLERANCE):
240
- """
241
- Find all atoms that are within distance tolerance and only keep the last one, remove other sites.
242
-
243
- Args:
244
- tolerance (float): The distance tolerance in angstroms.
245
- """
246
- original_is_in_crystal = self.is_in_crystal_units
247
- self.to_cartesian()
248
- ids_to_remove = set()
249
- atom_ids = self.coordinates.ids
250
- for index_1, index_2 in self.get_coordinates_colliding_pairs(tolerance):
251
- ids_to_remove.add(atom_ids[index_1]) # Keep the last one in the pair
252
-
253
- self.filter_atoms_by_ids(list(ids_to_remove), invert=True, reset_ids=True)
254
- if original_is_in_crystal:
255
- self.to_crystal()
@@ -1,43 +0,0 @@
1
- from typing import Literal
2
-
3
- import numpy as np
4
- from mat3ra.code.array_with_ids import RoundedArrayWithIds
5
- from mat3ra.code.value_with_id import RoundedValueWithId
6
- from mat3ra.code.vector import RoundedVector3D as RoundedPoint3D
7
-
8
-
9
- class Coordinate(RoundedValueWithId):
10
- value: RoundedPoint3D
11
-
12
- def get_value_along_axis(self, axis: Literal["x", "y", "z"] = "z"):
13
- return self.value.root[{"x": 0, "y": 1, "z": 2}[axis]]
14
-
15
-
16
- class Coordinates(RoundedArrayWithIds):
17
- def get_values_along_axis(
18
- self,
19
- axis: Literal["x", "y", "z"] = "z",
20
- ):
21
- values_along_axis = [Coordinate(value=coord).get_value_along_axis(axis) for coord in self.values]
22
- return values_along_axis
23
-
24
- def get_max_value_along_axis(
25
- self,
26
- axis: Literal["x", "y", "z"] = "z",
27
- ):
28
- return np.max(self.get_values_along_axis(axis))
29
-
30
- def get_min_value_along_axis(
31
- self,
32
- axis: Literal["x", "y", "z"] = "z",
33
- ):
34
- return np.min(self.get_values_along_axis(axis))
35
-
36
- def get_extremum_value_along_axis(
37
- self,
38
- extremum: Literal["max", "min"] = "max",
39
- axis: Literal["x", "y", "z"] = "z",
40
- ):
41
- if extremum == "max":
42
- return self.get_max_value_along_axis(axis)
43
- return self.get_min_value_along_axis(axis)
@@ -1,55 +0,0 @@
1
- from typing import List
2
-
3
- import numpy as np
4
- from mat3ra.code.vector import RoundedVector3D
5
- from mat3ra.esse.models.properties_directory.structural.lattice import LatticeVectorsSchema as CellSchema
6
- from mat3ra.utils.mixins import RoundNumericValuesMixin
7
- from pydantic import Field
8
-
9
- DEFAULT_CELL = np.eye(3).tolist()
10
-
11
-
12
- class Cell(RoundNumericValuesMixin, CellSchema):
13
- __rounded_vector3d__ = RoundedVector3D
14
- __default_vectors__ = DEFAULT_CELL
15
-
16
- a: RoundedVector3D = Field(default_factory=lambda: Cell.__rounded_vector3d__(DEFAULT_CELL[0]))
17
- b: RoundedVector3D = Field(default_factory=lambda: Cell.__rounded_vector3d__(DEFAULT_CELL[1]))
18
- c: RoundedVector3D = Field(default_factory=lambda: Cell.__rounded_vector3d__(DEFAULT_CELL[2]))
19
-
20
- @classmethod
21
- def from_vectors_array(cls, vectors: List[List[float]] = DEFAULT_CELL) -> "Cell":
22
- return cls(
23
- a=RoundedVector3D(vectors[0]),
24
- b=RoundedVector3D(vectors[1]),
25
- c=RoundedVector3D(vectors[2]),
26
- )
27
-
28
- def get_vector_arrays(self, skip_rounding=False) -> List[List[float]]:
29
- if skip_rounding:
30
- return [self.a.value, self.b.value, self.c.value]
31
- return [self.a.value_rounded, self.b.value_rounded, self.c.value_rounded]
32
-
33
- @property
34
- def vector_arrays(self) -> List[List[float]]:
35
- return self.get_vector_arrays(skip_rounding=True)
36
-
37
- @property
38
- def vector_arrays_rounded(self) -> List[List[float]]:
39
- return self.get_vector_arrays(skip_rounding=False)
40
-
41
- def convert_point_to_cartesian(self, point: List[float]) -> List[float]:
42
- np_vector = np.array(self.vector_arrays)
43
- return np.dot(point, np_vector).tolist()
44
-
45
- def convert_point_to_crystal(self, point: List[float]) -> List[float]:
46
- np_vector = np.array(self.vector_arrays)
47
- return np.dot(point, np.linalg.inv(np_vector)).tolist()
48
-
49
- @property
50
- def volume(self) -> float:
51
- return np.linalg.det(np.array(self.vector_arrays))
52
-
53
- @property
54
- def volume_rounded(self) -> float:
55
- return self.round_array_or_number(self.volume)