@mat3ra/esse 2025.5.17-0 → 2025.5.17-2

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 (70) hide show
  1. package/dist/js/example/core/reusable/coordinate_conditions/box.json +13 -0
  2. package/dist/js/example/material/reusable/slab_configuration_with_termination.json +156 -0
  3. package/dist/js/example/materials_category/defects/one_dimensional/terrace/configuration.json +144 -0
  4. package/dist/js/example/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +475 -0
  5. package/dist/js/example/materials_category/defects/zero_dimensional/complex/pair/configuration.json +406 -0
  6. package/dist/js/example/materials_category/defects/zero_dimensional/point/configuration.json +1 -1
  7. package/dist/js/example/materials_category/defects/zero_dimensional/point/interstitial/configuration.json +139 -0
  8. package/dist/js/example/materials_category/defects/zero_dimensional/point/substitution/configuration.json +138 -0
  9. package/dist/js/example/materials_category/defects/zero_dimensional/point/vacancy/configuration.json +137 -0
  10. package/dist/js/json_include/index.js +1 -0
  11. package/dist/js/schema/core/reusable/axis_enum.json +12 -0
  12. package/dist/js/schema/core/reusable/coordinate_conditions/base.json +24 -0
  13. package/dist/js/schema/core/reusable/coordinate_conditions/box.json +47 -0
  14. package/dist/js/schema/core/reusable/coordinate_conditions/enum.json +13 -0
  15. package/dist/js/schema/material/reusable/slab_configuration_with_termination.json +996 -0
  16. package/dist/js/schema/material/reusable/stack/slab_in_stack.json +1005 -0
  17. package/dist/js/schema/material/reusable/stack/stack_of_slabs.json +1032 -0
  18. package/dist/js/schema/material/reusable/stack/stack_of_two_slabs.json +1033 -0
  19. package/dist/js/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
  20. package/dist/js/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
  21. package/dist/js/schema/materials_category/defects/by_host/two_dimensional/layered/configuration.json +794 -0
  22. package/dist/js/schema/materials_category/defects/by_host/two_dimensional/{configuration.json → point/configuration.json} +6 -1
  23. package/dist/js/schema/materials_category/defects/configuration.json +5 -0
  24. package/dist/js/schema/materials_category/defects/one_dimensional/terrace/configuration.json +831 -0
  25. package/dist/js/schema/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +2019 -0
  26. package/dist/js/schema/materials_category/defects/two_dimensional/island/condition.json.json +52 -0
  27. package/dist/js/schema/materials_category/defects/two_dimensional/island/configuration.json +845 -0
  28. package/dist/js/schema/materials_category/defects/zero_dimensional/complex/{pair.json → pair/configuration.json} +6 -1
  29. package/dist/js/schema/materials_category/multi_material/interfaces/configuration.json +1034 -0
  30. package/dist/js/schema/materials_category/single_material/two_dimensional/slab/configuration.json +3 -9
  31. package/dist/js/schemas.json +1 -1
  32. package/dist/js/types.d.ts +5716 -972
  33. package/example/core/reusable/coordinate_conditions/box.json +13 -0
  34. package/example/material/reusable/slab_configuration_with_termination.json +8 -0
  35. package/example/material/reusable/supercell/supercell_matrix_3d.json +11 -0
  36. package/example/materials_category/defects/by_host/two-dimensional/{configuration.json → point/configuration.json} +1 -1
  37. package/example/materials_category/defects/one-dimensional/terrace/configuration.json +19 -0
  38. package/example/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +21 -0
  39. package/example/materials_category/defects/zero-dimensional/complex/pair/configuration.json +9 -0
  40. package/example/materials_category/defects/zero-dimensional/point/configuration.json +1 -1
  41. package/example/materials_category/defects/zero-dimensional/point/interstitial/configuration.json +14 -0
  42. package/example/materials_category/defects/zero-dimensional/point/substitution/configuration.json +13 -0
  43. package/example/materials_category/defects/zero-dimensional/point/vacancy/configuration.json +12 -0
  44. package/package.json +1 -1
  45. package/schema/core/primitive/axis_3d_names_enum.json +12 -0
  46. package/schema/core/reusable/coordinate_conditions/base.json +15 -0
  47. package/schema/core/reusable/coordinate_conditions/box.json +25 -0
  48. package/schema/core/reusable/coordinate_conditions/enum.json +13 -0
  49. package/schema/material/reusable/slab_configuration_with_termination.json +19 -0
  50. package/schema/material/reusable/stack/slab_in_stack.json +26 -0
  51. package/schema/material/reusable/stack/stack_of_slabs.json +31 -0
  52. package/schema/material/reusable/stack/stack_of_two_slabs.json +17 -0
  53. package/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
  54. package/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
  55. package/schema/materials_category/defects/by_host/two-dimensional/layered/configuration.json +16 -0
  56. package/schema/materials_category/defects/by_host/two-dimensional/{configuration.json → point/configuration.json} +3 -3
  57. package/schema/materials_category/defects/configuration.json +5 -0
  58. package/schema/materials_category/defects/one-dimensional/terrace/configuration.json +44 -0
  59. package/schema/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +20 -0
  60. package/schema/materials_category/defects/two-dimensional/island/condition.json +9 -0
  61. package/schema/materials_category/defects/two-dimensional/island/configuration.json +18 -0
  62. package/schema/materials_category/defects/zero-dimensional/complex/{pair.json → pair/configuration.json} +4 -4
  63. package/schema/materials_category/multi-material/interfaces/configuration.json +12 -0
  64. package/schema/materials_category/single_material/two_dimensional/slab/configuration.json +4 -10
  65. package/src/js/json_include/index.ts +1 -0
  66. package/example/material/reusable/supercell_matrix_3d.json +0 -5
  67. /package/dist/js/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
  68. /package/dist/js/example/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +0 -0
  69. /package/dist/js/example/materials_category/defects/by_host/two_dimensional/{configuration.json → point/configuration.json} +0 -0
  70. /package/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
@@ -0,0 +1,137 @@
1
+ {
2
+ "type": "vacancy",
3
+ "coordinate": [
4
+ 0,
5
+ 0,
6
+ 0
7
+ ],
8
+ "use_cartesian_coordinates": false,
9
+ "host": {
10
+ "_id": "LCthJ6E2QabYCZqf3",
11
+ "basis": {
12
+ "coordinates": [
13
+ {
14
+ "id": 1,
15
+ "value": [
16
+ 0,
17
+ 0,
18
+ 0
19
+ ]
20
+ },
21
+ {
22
+ "id": 2,
23
+ "value": [
24
+ 0.25,
25
+ 0.25,
26
+ 0.25
27
+ ]
28
+ }
29
+ ],
30
+ "elements": [
31
+ {
32
+ "id": 1,
33
+ "value": "Si"
34
+ },
35
+ {
36
+ "id": 2,
37
+ "value": "Si"
38
+ }
39
+ ],
40
+ "name": "basis",
41
+ "units": "crystal"
42
+ },
43
+ "createdAt": "2016-04-03T05:25:37.430Z",
44
+ "creator": {
45
+ "_id": "HtxACY2wX4b2hS8Rv",
46
+ "cls": "User",
47
+ "slug": "exadmin"
48
+ },
49
+ "derivedProperties": [
50
+ {
51
+ "name": "volume",
52
+ "units": "angstrom^3",
53
+ "value": 131.1
54
+ },
55
+ {
56
+ "name": "density",
57
+ "units": "g/cm^3",
58
+ "value": 2.33
59
+ },
60
+ {
61
+ "name": "symmetry",
62
+ "spaceGroupSymbol": "Fd-3m",
63
+ "tolerance": {
64
+ "units": "angstrom",
65
+ "value": 0.3
66
+ }
67
+ },
68
+ {
69
+ "degree": 10,
70
+ "name": "p-norm",
71
+ "value": 0.71
72
+ },
73
+ {
74
+ "element": "Si",
75
+ "name": "elemental_ratio",
76
+ "value": 0.71
77
+ },
78
+ {
79
+ "name": "inchi",
80
+ "value": ""
81
+ },
82
+ {
83
+ "name": "inchi_key",
84
+ "value": ""
85
+ }
86
+ ],
87
+ "exabyteId": "RKiswuxHKkF3uvLyA",
88
+ "formula": "Si",
89
+ "hash": "4ac3fa057e3530628eb1295c77110eaa",
90
+ "isDefault": false,
91
+ "isNonPeriodic": false,
92
+ "lattice": {
93
+ "name": "lattice",
94
+ "a": 5.14,
95
+ "alpha": 90,
96
+ "b": 5.14,
97
+ "beta": 90,
98
+ "c": 5.14,
99
+ "gamma": 90,
100
+ "type": "CUB",
101
+ "units": {
102
+ "angle": "degree",
103
+ "length": "angstrom"
104
+ },
105
+ "vectors": {
106
+ "a": [
107
+ 5,
108
+ 0.000121312,
109
+ 0.000131415
110
+ ],
111
+ "alat": 1,
112
+ "b": [
113
+ 0.000121312,
114
+ 5,
115
+ 0.000121314
116
+ ],
117
+ "c": [
118
+ 0.000121313,
119
+ 0.000121312,
120
+ 5
121
+ ],
122
+ "units": "angstrom"
123
+ }
124
+ },
125
+ "name": "Silicon FCC",
126
+ "owner": {
127
+ "_id": "HtxACY2wX4b2hS8Rv",
128
+ "cls": "Account",
129
+ "slug": "exabyte"
130
+ },
131
+ "scaledHash": "5bd4eb168e3530628eb1295d88221cbb",
132
+ "schemaVersion": "0.2.0",
133
+ "slug": "silicon-fcc",
134
+ "unitCellFormula": "Si2",
135
+ "updatedAt": "2016-04-04T17:58:42.867Z"
136
+ }
137
+ }
@@ -64,6 +64,7 @@ class JSONInclude {
64
64
  */
65
65
  parseIncludeStatements(filePath) {
66
66
  const data = (0, common_1.safeParseJSON)(fs_1.default.readFileSync(filePath, "utf8"));
67
+ console.log("Parsing file: ", filePath);
67
68
  if (settings_1.OBJECT_ONLY && !(0, common_1.isInstanceOf)(data, "Object")) {
68
69
  throw new Error("The JSON file being included should always be a dict rather than a list");
69
70
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$id": "core/reusable/axis-enum",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Axis Enum",
5
+ "type": "string",
6
+ "description": "Enum for axis types",
7
+ "enum": [
8
+ "x",
9
+ "y",
10
+ "z"
11
+ ]
12
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": "core/reusable/coordinate-conditions/base",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Coordinate Condition Schema",
5
+ "description": "Base interface for coordinate shape filters",
6
+ "type": "object",
7
+ "required": [
8
+ "shape"
9
+ ],
10
+ "properties": {
11
+ "shape": {
12
+ "$schema": "http://json-schema.org/draft-07/schema#",
13
+ "title": "Coordinate Shape Enum",
14
+ "type": "string",
15
+ "enum": [
16
+ "cylinder",
17
+ "sphere",
18
+ "box",
19
+ "triangular_prism",
20
+ "plane"
21
+ ]
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "core/reusable/coordinate-conditions/box",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Box Coordinate Condition Schema",
5
+ "required": [
6
+ "max_coordinate",
7
+ "min_coordinate",
8
+ "shape"
9
+ ],
10
+ "description": "Base interface for coordinate shape filters",
11
+ "type": "object",
12
+ "properties": {
13
+ "shape": {
14
+ "const": "box",
15
+ "$schema": "http://json-schema.org/draft-07/schema#",
16
+ "title": "Coordinate Shape Enum",
17
+ "type": "string",
18
+ "enum": [
19
+ "cylinder",
20
+ "sphere",
21
+ "box",
22
+ "triangular_prism",
23
+ "plane"
24
+ ]
25
+ },
26
+ "min_coordinate": {
27
+ "$schema": "http://json-schema.org/draft-07/schema#",
28
+ "title": "coordinate 3d schema",
29
+ "type": "array",
30
+ "minItems": 3,
31
+ "maxItems": 3,
32
+ "items": {
33
+ "type": "number"
34
+ }
35
+ },
36
+ "max_coordinate": {
37
+ "$schema": "http://json-schema.org/draft-07/schema#",
38
+ "title": "coordinate 3d schema",
39
+ "type": "array",
40
+ "minItems": 3,
41
+ "maxItems": 3,
42
+ "items": {
43
+ "type": "number"
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$id": "core/reusable/coordinate-conditions/enum",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Coordinate Shape Enum",
5
+ "type": "string",
6
+ "enum": [
7
+ "cylinder",
8
+ "sphere",
9
+ "box",
10
+ "triangular_prism",
11
+ "plane"
12
+ ]
13
+ }