Skip to content

Commit

Permalink
Ah, now it really does work.
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Apr 29, 2018
1 parent 41fefb5 commit 457e47a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/pysd.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pysd/py_backend/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def build(elements, subscript_dict, namespace, outfile_name):
if outfile_name == 'return':
return text

with open(outfile_name, 'w') as out:
with open(outfile_name, 'w', encoding='UTF-8') as out:
out.write(text)


Expand Down
2 changes: 1 addition & 1 deletion pysd/py_backend/vensim/table2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def read_tabular(table_file, sheetname='Sheet1'):

mdl_file = table_file.replace(extension, 'mdl')

with open(mdl_file, 'w') as outfile:
with open(mdl_file, 'w', encoding='UTF-8') as outfile:
for element in table.to_dict(orient='records'):
outfile.write(
"%(Variable)s = \n"
Expand Down

0 comments on commit 457e47a

Please sign in to comment.