Skip to content

Commit

Permalink
add update numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Dec 10, 2024
1 parent 2d11596 commit c833cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pyxtal/optimize/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,11 @@ def optimizer(
for i, calculator in enumerate(calculators):
if calculator == "CHARMM":
if i == 0:
calc = CHARMM(struc, tag, steps=[1000], atom_info=atom_info)
calc.run()#clean=False); import sys; sys.exit()
calc = CHARMM(struc, tag, steps=[1000], atom_info=atom_info, debug=True)
calc.run() #clean=False); import sys; sys.exit()
# print("CCCCCC", calc.optimized); import sys; sys.exit()
#print(calc.error)
#print(calc.struc.lattice, calc.error, calc.structure.energy)
if calc.error:
os.chdir(cwd)
return None
Expand Down Expand Up @@ -294,7 +296,7 @@ def optimizer(
else:
struc = calc.structure
struc.resort()

print(struc.lattice, calc.structure.energy)
os.chdir(cwd)

# density should not be too small
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ networkx==3.3
# via
# pyxtal (setup.py)
# pymatgen
numpy==1.26.4
numpy==2.0.0
# via
# pyxtal (setup.py)
# ase
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run(self):
"networkx>=2.3",
"ase>=3.23.0",
"scipy>=1.7.3",
"numpy>=1.26,<2", # prevent the use of numpy2
#"numpy>=1.26,<2", # prevent the use of numpy2
"vasprun-xml>=1.0.4", # prevent the use of numpy2
"importlib_metadata>=1.4",
"typing-extensions>=4.12",
Expand Down

0 comments on commit c833cd1

Please sign in to comment.