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

feat: Use Stan 2.34.1 #404

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
strategy:
matrix:
include:
- {runs-on: ubuntu-20.04, python-version: "3.8"}
- {runs-on: ubuntu-20.04, python-version: "3.9"}
- {runs-on: ubuntu-22.04, python-version: "3.10"}
- {runs-on: ubuntu-22.04, python-version: "3.11"}
- {runs-on: macos-11, python-version: "3.8"}
- {runs-on: macos-11, python-version: "3.9"}
- {runs-on: macos-11, python-version: "3.10"}
- {runs-on: macos-11, python-version: "3.11"}
Expand Down
4 changes: 2 additions & 2 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docs requirements
# these requirements are used by the documentation builder

sphinx~=4.2 # BSD
sphinx-rtd-theme~=1.0.0
sphinx~=7.2 # BSD
sphinx-rtd-theme~=2.0
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pystan"
version = "3.8.0"
version = "3.9.0"
description = "Python interface to Stan, a package for Bayesian inference"
authors = [
"Allen Riddell <[email protected]>",
Expand All @@ -22,9 +22,9 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
aiohttp = "^3.6"
httpstan = "~4.11"
httpstan = "~4.12"
pysimdjson = "^5.0.2"
numpy = "^1.19"
clikit = "^0.6"
Expand All @@ -42,8 +42,8 @@ types-setuptools = "^57.4"
flake8 = "^4.0"
# documentation
# NOTE: when changing these, update docs-requirements.txt
sphinx = "^4.2"
sphinx-rtd-theme = "^1.0"
sphinx = "^7.2"
sphinx-rtd-theme = "^2.0"

[tool.black]
line-length = 119
Expand Down
2 changes: 1 addition & 1 deletion stan/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
# These names are gathered later in this function by inspecting the output from Stan.
self.sample_and_sampler_param_names: Tuple[str, ...]

num_flat_params = sum(np.product(dims_ or 1) for dims_ in dims) # if dims == [] then it is a scalar
num_flat_params = sum(np.prod(dims_ or 1) for dims_ in dims) # if dims == [] then it is a scalar
assert num_flat_params == len(constrained_param_names)
num_samples_saved = ceil(self.num_samples / self.num_thin) + ceil(
(self.num_warmup * self.save_warmup) / self.num_thin
Expand Down
Loading