diff --git a/chgnet/utils/vasp_utils.py b/chgnet/utils/vasp_utils.py index cbe909cd..82ee659c 100644 --- a/chgnet/utils/vasp_utils.py +++ b/chgnet/utils/vasp_utils.py @@ -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