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 CHANGED
@@ -4,7 +4,7 @@ from calphy.solid import Solid
4
4
  from calphy.alchemy import Alchemy
5
5
  from calphy.routines import MeltingTemp
6
6
 
7
- __version__ = "1.4.12"
7
+ __version__ = "1.4.13"
8
8
 
9
9
  def addtest(a,b):
10
10
  return a+b
@@ -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
- if "Atoms" in line and "#" in line:
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
@@ -49,7 +49,7 @@ from pyscal3.core import structure_dict, element_dict, _make_crystal
49
49
  from ase.io import read, write
50
50
  import shutil
51
51
 
52
- __version__ = "1.4.12"
52
+ __version__ = "1.4.13"
53
53
 
54
54
 
55
55
  def _check_equal(val):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: calphy
3
- Version: 1.4.12
3
+ Version: 1.4.13
4
4
  Summary: free energy calculation for python
5
5
  Home-page: https://github.com/ICAMS/calphy
6
6
  Author: Sarath Menon, Yury Lysogorskiy, Ralf Drautz
@@ -1,10 +1,10 @@
1
- calphy/__init__.py,sha256=Iu7qfGvlk8ZpQjT775AHfcaeH9pKVGkm-4-kJnRD8_E,234
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=PxaLCWE7vE_nHMmcMvfKkJkjVmZVXjb2KhQop4jzjSY,24044
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=txu-cHPkYdTl5WdQ6EPz7SAkjqxXd9-cUj30Zn5CMN0,39578
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.12.dist-info/licenses/LICENSE,sha256=XIHGB5RZLIhOjjoO1bPf0II-qDbjhP5Cv5HJMRE9v1g,16651
21
- calphy-1.4.12.dist-info/METADATA,sha256=nT29uWdJaKE3hq6InvxA_bR8Q-0frT03s1BqTglAO_E,4470
22
- calphy-1.4.12.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
23
- calphy-1.4.12.dist-info/entry_points.txt,sha256=KX5dP2iYy9GB4Mo0lbCPAz6jo-8b1Gt9GDmsDFzt9pQ,439
24
- calphy-1.4.12.dist-info/top_level.txt,sha256=w871dhMqPwgjjbifBWdkT9_aOnK1ek4Odrh8UnSG3PE,7
25
- calphy-1.4.12.dist-info/RECORD,,
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,,