mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
Merge pull request #98 from rolando-contrib/fix-pickle-protocol
Fix pickling protocol to use highest available.
This commit is contained in:
commit
c22294e1c4
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class BuildPyCommand(build_py):
|
||||||
model_code = f.read()
|
model_code = f.read()
|
||||||
sm = StanModel(model_code=model_code)
|
sm = StanModel(model_code=model_code)
|
||||||
with open(os.path.join(target_dir, '{}_growth.pkl'.format(model_type)), 'wb') as f:
|
with open(os.path.join(target_dir, '{}_growth.pkl'.format(model_type)), 'wb') as f:
|
||||||
pickle.dump(sm, f)
|
pickle.dump(sm, f, protocol=pickle.HIGHEST_PROTOCOL)
|
||||||
|
|
||||||
class TestCommand(test_command):
|
class TestCommand(test_command):
|
||||||
"""We must run tests on the build directory, not source."""
|
"""We must run tests on the build directory, not source."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue