Skip to content

Commit

Permalink
Update easyunfold/procar.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bonan Zhu <33688599+zhubonan@users.noreply.github.com>
  • Loading branch information
kavanase and zhubonan committed Aug 10, 2023
1 parent faad55d commit db0d056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyunfold/procar.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def read(self, fobjs_or_paths):

def open_file(fobj_or_path):
if isinstance(fobj_or_path, (str, Path)):
return open(fobj_or_path, encoding='utf-8') # closed later
return fobj_or_path # already a file-like object, just return it
return open(fobj_or_path, encoding='utf-8'), True # closed later
return fobj_or_path, False # already a file-like object, just return it

parsed_kpoints = None
occs_list, kvecs_list, kweights_list = [], [], []
Expand Down

0 comments on commit db0d056

Please sign in to comment.