Skip to content

Commit 5af110d

Browse files
committed
Added io.open in heat_capacity for python3 win64 compatibility
1 parent 125454a commit 5af110d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
name = 'thermo',
5252
packages = ['thermo'],
5353
license='MIT',
54-
version = '0.1.12',
54+
version = '0.1.13',
5555
description = 'Chemical properties component of Chemical Engineering Design Library (ChEDL)',
5656
author = 'Caleb Bell',
5757
install_requires=['fluids', 'scipy', 'pandas', 'matplotlib', 'coolprop'],
@@ -62,7 +62,7 @@
6262
platforms=["Windows", "Linux", "Mac OS", "Unix"],
6363
author_email = 'Caleb.Andrew.Bell@gmail.com',
6464
url = 'https://github.com/CalebBell/thermo',
65-
download_url = 'https://github.com/CalebBell/thermo/tarball/0.1.12',
65+
download_url = 'https://github.com/CalebBell/thermo/tarball/0.1.13',
6666
keywords = ['chemical engineering', 'chemistry', 'mechanical engineering',
6767
'thermodynamics', 'databases', 'cheminformatics'],
6868
classifiers = classifiers,

thermo/heat_capacity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
from __future__ import division
2424
import os
25+
from io import open
2526
from math import log, exp
2627
import numpy as np
2728
import pandas as pd
@@ -696,7 +697,7 @@ def _append2dict(maindict, newdict):
696697
return data
697698

698699

699-
with open(os.path.join(folder, 'Zabransky.csv')) as f:
700+
with open(os.path.join(folder, 'Zabransky.csv'), encoding='utf-8') as f:
700701
next(f)
701702
for line in f:
702703
values = to_num(line.strip('\n').split('\t'))

0 commit comments

Comments
 (0)