Skip to content

Commit

Permalink
fix tqdm order (#377)
Browse files Browse the repository at this point in the history
* Update orca.py

* Update cp2k.py
  • Loading branch information
PythonFZ authored Dec 12, 2024
1 parent 8cf9a6a commit b73dd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipsuite/calculators/cp2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run(self):
calc = self.get_calculator()
self.failed_configs = {"skipped": []}

for idx, atoms in tqdm.tqdm(enumerate(self.data), ncols=70):
for idx, atoms in enumerate(tqdm.tqdm(self.data, ncols=70)):
atoms.calc = calc
try:
atoms.get_potential_energy()
Expand Down
2 changes: 1 addition & 1 deletion ipsuite/calculators/orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(self):
skip = len(db)

calc = self.get_calculator()
for idx, atoms in tqdm.tqdm(enumerate(self.data), ncols=70, total=len(self.data)):
for idx, atoms in enumerate(tqdm.tqdm(self.data, ncols=70, total=len(self.data))):
if idx < skip:
continue
atoms.calc = calc
Expand Down

0 comments on commit b73dd4c

Please sign in to comment.