@mat3ra/made 2026.6.11-0 → 2026.6.15-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/made.d.ts CHANGED
@@ -56,6 +56,7 @@ export declare const Made: {
56
56
  toPoscar: (materialOrConfig: import("@mat3ra/esse/dist/js/types").MaterialSchema, omitConstraints?: boolean) => string;
57
57
  fromPoscar: (fileContent: string) => object;
58
58
  atomicConstraintsCharFromBool: (bool: boolean) => string;
59
+ atomsCount: typeof import("./parsers/poscar").atomsCount;
59
60
  };
60
61
  cif: {
61
62
  parseMeta: (txt: string) => import("./parsers/cif").Meta;
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  toPoscar: (materialOrConfig: import("@mat3ra/esse/dist/js/types").MaterialSchema, omitConstraints?: boolean) => string;
12
12
  fromPoscar: (fileContent: string) => object;
13
13
  atomicConstraintsCharFromBool: (bool: boolean) => string;
14
+ atomsCount: typeof import("./poscar").atomsCount;
14
15
  };
15
16
  cif: {
16
17
  parseMeta: (txt: string) => import("./cif").Meta;
@@ -26,5 +26,6 @@ declare const _default: {
26
26
  toPoscar: typeof toPoscar;
27
27
  fromPoscar: typeof fromPoscar;
28
28
  atomicConstraintsCharFromBool: (bool: boolean) => string;
29
+ atomsCount: typeof atomsCount;
29
30
  };
30
31
  export default _default;
@@ -181,4 +181,5 @@ exports.default = {
181
181
  toPoscar,
182
182
  fromPoscar,
183
183
  atomicConstraintsCharFromBool,
184
+ atomsCount,
184
185
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/made",
3
- "version": "2026.6.11-0",
3
+ "version": "2026.6.15-0",
4
4
  "description": "MAterials DEsign library",
5
5
  "scripts": {
6
6
  "lint": "eslint --cache src/js tests/js && prettier --write src/js tests/js",
package/pyproject.toml CHANGED
@@ -47,8 +47,9 @@ tests = [
47
47
  # B/c of https://github.com/binary-husky/gpt_academic/issues/1237
48
48
  "gradio",
49
49
  "pydantic",
50
+ "spglib==2.6.0",
50
51
  "mat3ra-made[tools]",
51
- "mat3ra-standata"
52
+ "mat3ra-standata",
52
53
  ]
53
54
  all = [
54
55
  "mat3ra-made[tests]",
@@ -74,6 +75,10 @@ git_describe_command = "git describe --tags --long"
74
75
  [tool.setuptools.packages.find]
75
76
  where = ["src/py"]
76
77
 
78
+ [tool.setuptools.package-data]
79
+ "mat3ra.made" = ["constants.json"]
80
+
81
+
77
82
  [tool.black]
78
83
  line-length = 120
79
84
  target-version = ['py38']
@@ -208,4 +208,5 @@ export default {
208
208
  toPoscar,
209
209
  fromPoscar,
210
210
  atomicConstraintsCharFromBool,
211
+ atomsCount,
211
212
  };
@@ -1,7 +1,7 @@
1
1
  import json
2
2
  import os
3
3
 
4
- _CONSTANTS_FILE = os.path.join(os.path.dirname(__file__), "../../../../constants.json")
4
+ _CONSTANTS_FILE = os.path.join(os.path.dirname(__file__), "constants.json")
5
5
  with open(_CONSTANTS_FILE) as f:
6
6
  _CONSTANTS = json.load(f)
7
7
 
@@ -573,34 +573,34 @@ DIAMOND_GaAs_INTERFACE = {
573
573
  {"id": 27, "value": "C"},
574
574
  ],
575
575
  "coordinates": [
576
- {"id": 0, "value": [0, 0, 0.208703663]},
577
- {"id": 1, "value": [0.5, 0, 0.352579044]},
578
- {"id": 2, "value": [0, 0.5, 0.352579044]},
579
- {"id": 3, "value": [0.5, 0.5, 0.208703663]},
580
- {"id": 4, "value": [0.75, 0.75, 0.280641354]},
581
- {"id": 5, "value": [0.25, 0.75, 0.424516735]},
582
- {"id": 6, "value": [0.75, 0.25, 0.424516735]},
583
- {"id": 7, "value": [0.25, 0.25, 0.280641354]},
584
- {"id": 8, "value": [0.1, 0.7, 0.133640341]},
585
- {"id": 9, "value": [0.2, 0.9, 0.08909362]},
586
- {"id": 10, "value": [0, 0, 0.044546899]},
587
- {"id": 11, "value": [0.1, 0.2, 1.78e-7]},
588
- {"id": 12, "value": [0.4, 0.8, 0.044546899]},
589
- {"id": 13, "value": [0.9, 0.8, 1.78e-7]},
590
- {"id": 14, "value": [0.3, 0.1, 0.133640341]},
591
- {"id": 15, "value": [0.8, 0.1, 0.08909362]},
592
- {"id": 16, "value": [0.9, 0.3, 0.133640341]},
593
- {"id": 17, "value": [0, 0.5, 0.08909362]},
594
- {"id": 18, "value": [0.8, 0.6, 0.044546899]},
595
- {"id": 19, "value": [0.2, 0.4, 0.044546899]},
596
- {"id": 20, "value": [0.7, 0.4, 1.78e-7]},
597
- {"id": 21, "value": [0.6, 0.7, 0.08909362]},
598
- {"id": 22, "value": [0.7, 0.9, 0.133640341]},
599
- {"id": 23, "value": [0.6, 0.2, 0.044546899]},
600
- {"id": 24, "value": [0.5, 0, 1.78e-7]},
601
- {"id": 25, "value": [0.4, 0.3, 0.08909362]},
602
- {"id": 26, "value": [0.5, 0.5, 0.133640341]},
603
- {"id": 27, "value": [0.3, 0.6, 1.78e-7]},
576
+ {"id": 0, "value": [0.0, 0.0, 0.208703666]},
577
+ {"id": 1, "value": [0.5, 0.0, 0.352579046]},
578
+ {"id": 2, "value": [0.0, 0.5, 0.352579046]},
579
+ {"id": 3, "value": [0.5, 0.5, 0.208703666]},
580
+ {"id": 4, "value": [0.75, 0.75, 0.280641356]},
581
+ {"id": 5, "value": [0.25, 0.75, 0.424516737]},
582
+ {"id": 6, "value": [0.75, 0.25, 0.424516737]},
583
+ {"id": 7, "value": [0.25, 0.25, 0.280641356]},
584
+ {"id": 8, "value": [0.1, 0.2, 1.78e-07]},
585
+ {"id": 9, "value": [0.3, 0.1, 0.133640343]},
586
+ {"id": 10, "value": [0.2, 0.9, 0.089093622]},
587
+ {"id": 11, "value": [0.4, 0.8, 0.0445469]},
588
+ {"id": 12, "value": [0.8, 0.1, 0.089093622]},
589
+ {"id": 13, "value": [0.0, 0.0, 0.0445469]},
590
+ {"id": 14, "value": [0.9, 0.8, 1.78e-07]},
591
+ {"id": 15, "value": [0.1, 0.7, 0.133640343]},
592
+ {"id": 16, "value": [0.0, 0.5, 0.089093622]},
593
+ {"id": 17, "value": [0.2, 0.4, 0.0445469]},
594
+ {"id": 18, "value": [0.6, 0.7, 0.089093622]},
595
+ {"id": 19, "value": [0.8, 0.6, 0.0445469]},
596
+ {"id": 20, "value": [0.7, 0.4, 1.78e-07]},
597
+ {"id": 21, "value": [0.9, 0.3, 0.133640343]},
598
+ {"id": 22, "value": [0.4, 0.3, 0.089093622]},
599
+ {"id": 23, "value": [0.6, 0.2, 0.0445469]},
600
+ {"id": 24, "value": [0.5, 0.0, 1.78e-07]},
601
+ {"id": 25, "value": [0.7, 0.9, 0.133640343]},
602
+ {"id": 26, "value": [0.3, 0.6, 1.78e-07]},
603
+ {"id": 27, "value": [0.5, 0.5, 0.133640343]},
604
604
  ],
605
605
  "units": "crystal",
606
606
  "labels": [
@@ -636,12 +636,12 @@ DIAMOND_GaAs_INTERFACE = {
636
636
  "constraints": [],
637
637
  },
638
638
  "lattice": {
639
- "a": 5.630032184,
640
- "b": 5.630032184,
641
- "c": 19.983204895,
642
- "alpha": 90,
643
- "beta": 90,
644
- "gamma": 90,
639
+ "a": 5.630032327,
640
+ "b": 5.630032327,
641
+ "c": 19.983204963,
642
+ "alpha": 90.0,
643
+ "beta": 90.0,
644
+ "gamma": 90.0,
645
645
  "units": {"length": "angstrom", "angle": "degree"},
646
646
  "type": "TRI",
647
647
  },
@@ -681,34 +681,34 @@ DIAMOND_GaAs_INTERFACE_GH = {
681
681
  {"id": 27, "value": "C"},
682
682
  ],
683
683
  "coordinates": [
684
- {"id": 0, "value": [0.0, 0.0, 0.208703663]},
685
- {"id": 1, "value": [0.5, 0.0, 0.352579044]},
686
- {"id": 2, "value": [0.0, 0.5, 0.352579044]},
687
- {"id": 3, "value": [0.5, 0.5, 0.208703663]},
688
- {"id": 4, "value": [0.75, 0.25, 0.280641354]},
689
- {"id": 5, "value": [0.25, 0.25, 0.424516735]},
690
- {"id": 6, "value": [0.75, 0.75, 0.424516735]},
691
- {"id": 7, "value": [0.25, 0.75, 0.280641354]},
692
- {"id": 8, "value": [0.7, 0.9, 0.133640341]},
693
- {"id": 9, "value": [0.8, 0.1, 0.08909362]},
694
- {"id": 10, "value": [0.6, 0.2, 0.044546899]},
695
- {"id": 11, "value": [0.7, 0.4, 1.78e-07]},
696
- {"id": 12, "value": [0.0, 0.0, 0.044546899]},
697
- {"id": 13, "value": [0.5, 0.0, 1.78e-07]},
698
- {"id": 14, "value": [0.9, 0.3, 0.133640341]},
699
- {"id": 15, "value": [0.4, 0.3, 0.08909362]},
700
- {"id": 16, "value": [0.1, 0.7, 0.133640341]},
701
- {"id": 17, "value": [0.2, 0.9, 0.08909362]},
702
- {"id": 18, "value": [0.1, 0.2, 1.78e-07]},
703
- {"id": 19, "value": [0.4, 0.8, 0.044546899]},
684
+ {"id": 0, "value": [0.0, 0.0, 0.208703666]},
685
+ {"id": 1, "value": [0.5, 0.0, 0.352579046]},
686
+ {"id": 2, "value": [0.0, 0.5, 0.352579046]},
687
+ {"id": 3, "value": [0.5, 0.5, 0.208703666]},
688
+ {"id": 4, "value": [0.75, 0.25, 0.280641356]},
689
+ {"id": 5, "value": [0.25, 0.25, 0.424516737]},
690
+ {"id": 6, "value": [0.75, 0.75, 0.424516737]},
691
+ {"id": 7, "value": [0.25, 0.75, 0.280641356]},
692
+ {"id": 8, "value": [0.7, 0.4, 1.78e-07]},
693
+ {"id": 9, "value": [0.9, 0.3, 0.133640343]},
694
+ {"id": 10, "value": [0.8, 0.1, 0.089093622]},
695
+ {"id": 11, "value": [0.0, 0.0, 0.0445469]},
696
+ {"id": 12, "value": [0.4, 0.3, 0.089093622]},
697
+ {"id": 13, "value": [0.6, 0.2, 0.0445469]},
698
+ {"id": 14, "value": [0.5, 0.0, 1.78e-07]},
699
+ {"id": 15, "value": [0.7, 0.9, 0.133640343]},
700
+ {"id": 16, "value": [0.1, 0.2, 1.78e-07]},
701
+ {"id": 17, "value": [0.3, 0.1, 0.133640343]},
702
+ {"id": 18, "value": [0.2, 0.9, 0.089093622]},
703
+ {"id": 19, "value": [0.4, 0.8, 0.0445469]},
704
704
  {"id": 20, "value": [0.9, 0.8, 1.78e-07]},
705
- {"id": 21, "value": [0.3, 0.1, 0.133640341]},
706
- {"id": 22, "value": [0.0, 0.5, 0.08909362]},
707
- {"id": 23, "value": [0.8, 0.6, 0.044546899]},
708
- {"id": 24, "value": [0.2, 0.4, 0.044546899]},
709
- {"id": 25, "value": [0.6, 0.7, 0.08909362]},
710
- {"id": 26, "value": [0.5, 0.5, 0.133640341]},
711
- {"id": 27, "value": [0.3, 0.6, 1.78e-07]},
705
+ {"id": 21, "value": [0.1, 0.7, 0.133640343]},
706
+ {"id": 22, "value": [0.0, 0.5, 0.089093622]},
707
+ {"id": 23, "value": [0.2, 0.4, 0.0445469]},
708
+ {"id": 24, "value": [0.6, 0.7, 0.089093622]},
709
+ {"id": 25, "value": [0.8, 0.6, 0.0445469]},
710
+ {"id": 26, "value": [0.3, 0.6, 1.78e-07]},
711
+ {"id": 27, "value": [0.5, 0.5, 0.133640343]},
712
712
  ],
713
713
  "units": "crystal",
714
714
  "labels": [
@@ -744,9 +744,9 @@ DIAMOND_GaAs_INTERFACE_GH = {
744
744
  "constraints": [],
745
745
  },
746
746
  "lattice": {
747
- "a": 5.630032184,
748
- "b": 5.630032184,
749
- "c": 19.983204895,
747
+ "a": 5.630032327,
748
+ "b": 5.630032327,
749
+ "c": 19.983204963,
750
750
  "alpha": 90.0,
751
751
  "beta": 90.0,
752
752
  "gamma": 90.0,