Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 57b47a5

Browse files
authored
Merge pull request #286 from stan-dev/feature/pystan-2.14.0.0
Update PyStan to Stan 2.14.0
2 parents 67819cf + d2b478b commit 57b47a5

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

pystan/model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ def __init__(self, file=None, charset='utf-8', model_name="anon_model",
247247
lib_dir,
248248
pystan_dir,
249249
os.path.join(pystan_dir, "stan", "src"),
250-
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.12.0"),
251-
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.12.0", "lib", "eigen_3.2.9"),
252-
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.12.0", "lib", "boost_1.60.0"),
253-
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.12.0", "lib", "cvodes_2.8.2", "include"),
250+
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.14.0"),
251+
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.14.0", "lib", "eigen_3.2.9"),
252+
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.14.0", "lib", "boost_1.62.0"),
253+
os.path.join(pystan_dir, "stan", "lib", "stan_math_2.14.0", "lib", "cvodes_2.9.0", "include"),
254254
np.get_include(),
255255
]
256256

pystan/stan

Submodule stan updated 2745 files

pystan/stan_fit.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
#include <boost/random/additive_combine.hpp> // L'Ecuyer RNG
1616
#include <boost/random/uniform_real_distribution.hpp>
1717

18-
#include <stan/model/util.hpp>
18+
#include <stan/model/test_gradients.hpp>
19+
20+
#include <stan/interface_callbacks/writer/base_writer.hpp>
1921

2022
#include <stan/mcmc/base_adaptation.hpp>
2123
#include <stan/mcmc/base_adapter.hpp>
@@ -62,6 +64,7 @@
6264
#include <stan/services/io/do_print.hpp>
6365
#include <stan/services/io/write_error_msg.hpp>
6466
#include <stan/services/io/write_iteration.hpp>
67+
//#include <stan/services/io/write_iteration_csv.hpp>
6568
#include <stan/services/io/write_model.hpp>
6669
#include <stan/services/io/write_stan.hpp>
6770
#include <stan/services/init/initialize_state.hpp>

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# NOTE: these requirements need to be fixed in setup.py as well
1+
# NOTE: these requirements need to be listed in `install_requires` in setup.py
2+
# Cython 0.25.1 does not work with PyStan.
23
numpy>=1.7,<2.0
3-
Cython>=0.22,<0.25
4+
Cython>=0.22,!=0.25.1

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def find_version(*parts):
8686
)).intersection(sys.argv)) > 0:
8787
import setuptools
8888
extra_setuptools_args = dict(
89-
install_requires=['Cython>=0.22,<0.25', 'numpy >= 1.7'],
89+
install_requires=['Cython>=0.22,!=0.25.1', 'numpy >= 1.7'],
9090
zip_safe=False, # the package can run out of an .egg file
9191
include_package_data=True,
9292
)
@@ -99,10 +99,10 @@ def find_version(*parts):
9999
from distutils.extension import Extension
100100

101101
stan_include_dirs = ['pystan/stan/src',
102-
'pystan/stan/lib/stan_math_2.12.0/',
103-
'pystan/stan/lib/stan_math_2.12.0/lib/eigen_3.2.9',
104-
'pystan/stan/lib/stan_math_2.12.0/lib/boost_1.60.0',
105-
'pystan/stan/lib/stan_math_2.12.0/lib/cvodes_2.8.2/include']
102+
'pystan/stan/lib/stan_math_2.14.0/',
103+
'pystan/stan/lib/stan_math_2.14.0/lib/eigen_3.2.9',
104+
'pystan/stan/lib/stan_math_2.14.0/lib/boost_1.62.0',
105+
'pystan/stan/lib/stan_math_2.14.0/lib/cvodes_2.9.0/include']
106106
stan_macros = [
107107
('BOOST_RESULT_OF_USE_TR1', None),
108108
('BOOST_NO_DECLTYPE', None),

0 commit comments

Comments
 (0)