Skip to content

Commit

Permalink
Allow compressed log files
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5424 committed May 6, 2021
1 parent 2ef73af commit 8613c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/io/lammps/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def parse_lammps_log(filename="log.lammps"):
[pd.DataFrame] containing thermo data for each completed run.
"""
with open(filename) as f:
with zopen(filename, "rt") as f:
lines = f.readlines()
begin_flag = (
"Memory usage per processor =",
Expand Down

0 comments on commit 8613c26

Please sign in to comment.