Skip to content

Commit

Permalink
Update para.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 authored Mar 18, 2024
1 parent d240ad0 commit bafa431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytomoatt/para.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, fname: str) -> None:
:type fname: str
"""
self.fname = fname
with open(fname) as f:
with open(fname, encoding='utf-8') as f:
file_data = f.read()
self.input_params = yaml.load(file_data, Loader=yaml.Loader)

Expand All @@ -32,4 +32,4 @@ def write(self, fname=None):
"""
if fname is None:
fname = self.fname
yaml.dump(self.input_params, fname, Dumper=yaml.Dumper)
yaml.dump(self.input_params, fname, Dumper=yaml.Dumper)

0 comments on commit bafa431

Please sign in to comment.