Skip to content

Commit

Permalink
use readlines
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Sep 15, 2024
1 parent a594b61 commit a02310d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chgnet/utils/vasp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def parse_vasp_dir(
charge, mag_x, mag_y, mag_z, header = [], [], [], [], []

with zopen(outcar_path, encoding="utf-8") as file:
all_lines = [line.strip() for line in file]
all_lines = [line.strip() for line in file.readlines()]

# For single atom systems, VASP doesn't print a total line, so
# reverse parsing is very difficult
Expand Down

0 comments on commit a02310d

Please sign in to comment.