Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.6 compatibility #367

Merged
merged 30 commits into from
Apr 25, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
465e9e6
change xrange to range
jdebacker Apr 2, 2018
e963a9d
update print functions for python 3
jdebacker Apr 2, 2018
6ec397a
update parameters.py
jdebacker Apr 2, 2018
2cb8777
update cPickle imports
jdebacker Apr 2, 2018
619d4c4
update imports
jdebacker Apr 2, 2018
8db6e31
more import updates
jdebacker Apr 2, 2018
409ed40
more import updates
jdebacker Apr 2, 2018
3c491d4
update print and pickle calls in tests
jdebacker Apr 3, 2018
22ef87d
change dict iterator for 2 and 3 compliance
jdebacker Apr 3, 2018
aedf993
fix dict iterable
jdebacker Apr 3, 2018
cbc901a
make division return integers
jdebacker Apr 3, 2018
5586c35
update to read pickle in py 3
jdebacker Apr 3, 2018
aa5d432
pickle compatibility
jdebacker Apr 3, 2018
a6e5e72
updates to py3
jdebacker Apr 3, 2018
3097673
narrow range of acceptable param values so model solves in py 2 and py 3
jdebacker Apr 3, 2018
d99318f
replace fsolve with opt.root to avoid warnings
jdebacker Apr 3, 2018
91c0f82
clean up
jdebacker Apr 4, 2018
e5c0a08
clean up
jdebacker Apr 4, 2018
1e3fd6c
fix conflicts
jdebacker Apr 21, 2018
f7739a4
pass tax func type
jdebacker Apr 21, 2018
9328c04
change to read in pickle from py 2 to py3
jdebacker Apr 21, 2018
1705c9d
get T_Hss from solution
jdebacker Apr 21, 2018
0faa6a3
update env for not just python 2.7
jdebacker Apr 21, 2018
b738dc5
travis yml to include python 3.6
jdebacker Apr 21, 2018
59ee4a4
remove py 2.7 ref
jdebacker Apr 21, 2018
f1df950
remove ipython from environment
jdebacker Apr 22, 2018
9235571
add try and except to read pickles into py 2 or 3
jdebacker Apr 23, 2018
d19e5ed
test pickle changes
jdebacker Apr 23, 2018
0c345b0
create safe read pickle function
jdebacker Apr 24, 2018
08ac5d4
apply safe pickle read function to tests
jdebacker Apr 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change dict iterator for 2 and 3 compliance
  • Loading branch information
jdebacker committed Apr 3, 2018
commit 22ef87d9ef530df08481644cef30e40356a70110
4 changes: 2 additions & 2 deletions ogusa/tests/test_SS.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_SS_solver():
'rb') as f:
expected_dict = pickle.load(f, encoding='latin1')

for k, v in expected_dict.iteritems():
for k, v in expected_dict.items():
assert(np.allclose(test_dict[k], v))


Expand Down Expand Up @@ -182,5 +182,5 @@ def test_run_SS(input_path, expected_path):
'rb') as f:
expected_dict = pickle.load(f, encoding='latin1')

for k, v in expected_dict.iteritems():
for k, v in expected_dict.items():
assert(np.allclose(test_dict[k], v))
2 changes: 1 addition & 1 deletion ogusa/tests/test_TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ def test_run_TPI():
'rb') as f:
expected_dict = pickle.load(f, encoding='latin1')

for k, v in expected_dict.iteritems():
for k, v in expected_dict.items():
assert(np.allclose(test_dict[k], v))