calphy 1.4.12__py3-none-any.whl → 1.4.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- calphy/__init__.py +1 -1
- calphy/composition_transformation.py +12 -1
- calphy/input.py +1 -1
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/METADATA +1 -1
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/RECORD +9 -9
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/WHEEL +0 -0
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/entry_points.txt +0 -0
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/licenses/LICENSE +0 -0
- {calphy-1.4.12.dist-info → calphy-1.4.13.dist-info}/top_level.txt +0 -0
calphy/__init__.py
CHANGED
|
@@ -532,10 +532,12 @@ class CompositionTransformation:
|
|
|
532
532
|
lines = f.readlines()
|
|
533
533
|
|
|
534
534
|
# Find the Atoms section and replace type numbers
|
|
535
|
+
# Support different ASE formats: "Atoms # atomic", "Atoms # full", or just "Atoms"
|
|
535
536
|
in_atoms_section = False
|
|
536
537
|
atom_idx = 0
|
|
537
538
|
for i, line in enumerate(lines):
|
|
538
|
-
|
|
539
|
+
# More flexible detection of Atoms section header
|
|
540
|
+
if "Atoms" in line:
|
|
539
541
|
in_atoms_section = True
|
|
540
542
|
continue
|
|
541
543
|
|
|
@@ -550,6 +552,15 @@ class CompositionTransformation:
|
|
|
550
552
|
if atom_idx >= len(self.pyscal_structure.atoms.types):
|
|
551
553
|
break
|
|
552
554
|
|
|
555
|
+
# Verify all atoms were updated
|
|
556
|
+
expected_atoms = len(self.pyscal_structure.atoms.types)
|
|
557
|
+
if atom_idx != expected_atoms:
|
|
558
|
+
raise RuntimeError(
|
|
559
|
+
f"Failed to update all atoms in {outfilename}. "
|
|
560
|
+
f"Expected {expected_atoms} atoms but only updated {atom_idx}. "
|
|
561
|
+
f"This may indicate a problem with ASE LAMMPS file formatting."
|
|
562
|
+
)
|
|
563
|
+
|
|
553
564
|
# Update the number of atom types in the header
|
|
554
565
|
required_ntypes = len(self.pair_list_old)
|
|
555
566
|
for i, line in enumerate(lines):
|
calphy/input.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
calphy/__init__.py,sha256=
|
|
1
|
+
calphy/__init__.py,sha256=exwVUVD5YyZu56iY1WWyt3KphyuiFqb-8AJVA9ZH1No,234
|
|
2
2
|
calphy/alchemy.py,sha256=05XRvyWBEYmGU95kC3z6-AiygWFdmCwV4ADaZ9I23l0,18942
|
|
3
3
|
calphy/clitools.py,sha256=ZUr6ZfdopFxWMbrzNT_TQaUA16iPmZ3144oPcwcDazY,4433
|
|
4
|
-
calphy/composition_transformation.py,sha256=
|
|
4
|
+
calphy/composition_transformation.py,sha256=oaKU4MWKRgv56QOw7Ss6jYXJij11s_ENA_e5j5bjsGc,24608
|
|
5
5
|
calphy/errors.py,sha256=KN47RWTLbg1H_NZMrhCiJCbqjqJScJ1pgQAuzj1-l84,1268
|
|
6
6
|
calphy/helpers.py,sha256=T7FPhP2T0ne9JD3i_CKnqkmihALohdFY6ODf1bfKGl8,8689
|
|
7
|
-
calphy/input.py,sha256=
|
|
7
|
+
calphy/input.py,sha256=WFSsiDxXfDRjxFdBg4whym79_zKYIVjtLI_MH-dwAvo,39578
|
|
8
8
|
calphy/integrators.py,sha256=q5sIJX3nh4c9kmDQJ4Pqhvm38tRWKELoJwm5gW0lqws,21858
|
|
9
9
|
calphy/kernel.py,sha256=wjSpQ59PN-aqHQ1kvOxTYnP2d3wE1Zx4A9ZhqQFqGlI,6311
|
|
10
10
|
calphy/liquid.py,sha256=AnvxuQDdjBaZALg5tTcZq9IVrwk0W3Hds4wJeD9LgWs,15681
|
|
@@ -17,9 +17,9 @@ calphy/scheduler.py,sha256=U-FQttOHOUiL-qR9gepvdGn1fxbfhZhHezuWdO3Fgyk,7575
|
|
|
17
17
|
calphy/solid.py,sha256=g-q18JJ5wmqa4XNWq-7nu35rgbLQJc_Gk5tNjfRttJY,23199
|
|
18
18
|
calphy/splines.py,sha256=BGwUVz_qXQxUzpUCuZo6CsELcd5JVNWzI-Ttcz22G_E,61627
|
|
19
19
|
calphy/utils.py,sha256=0UpsYoxjS5N-iGs-cdm0YDMkLF8IHvKO3smXDHrj3eg,3818
|
|
20
|
-
calphy-1.4.
|
|
21
|
-
calphy-1.4.
|
|
22
|
-
calphy-1.4.
|
|
23
|
-
calphy-1.4.
|
|
24
|
-
calphy-1.4.
|
|
25
|
-
calphy-1.4.
|
|
20
|
+
calphy-1.4.13.dist-info/licenses/LICENSE,sha256=XIHGB5RZLIhOjjoO1bPf0II-qDbjhP5Cv5HJMRE9v1g,16651
|
|
21
|
+
calphy-1.4.13.dist-info/METADATA,sha256=Exr6YVu0xoSp_6pqDFe9HxxVXksjYSsnJDET36ZssxA,4470
|
|
22
|
+
calphy-1.4.13.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
23
|
+
calphy-1.4.13.dist-info/entry_points.txt,sha256=KX5dP2iYy9GB4Mo0lbCPAz6jo-8b1Gt9GDmsDFzt9pQ,439
|
|
24
|
+
calphy-1.4.13.dist-info/top_level.txt,sha256=w871dhMqPwgjjbifBWdkT9_aOnK1ek4Odrh8UnSG3PE,7
|
|
25
|
+
calphy-1.4.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|