Skip to content

Commit

Permalink
Rel 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
goedman committed Apr 27, 2024
1 parent 5948d8b commit 909f6dc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 27 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
CMDSTAN: "/home/worker/cmdstan-2.33.0/"
CMDSTAN: "/home/worker/cmdstan-2.34.1/"

jobs:
test:
Expand Down Expand Up @@ -41,17 +41,17 @@ jobs:
OLDWD=`pwd`
cd ~
pwd
wget https://github.com/stan-dev/cmdstan/releases/download/v2.33.0/cmdstan-2.33.0.tar.gz
tar -xzpf cmdstan-2.33.0.tar.gz
wget https://github.com/stan-dev/cmdstan/releases/download/v2.34.1/cmdstan-2.34.1.tar.gz
tar -xzpf cmdstan-2.34.1.tar.gz
ls -lia .
ls -lia ./cmdstan-2.33.0
ls -lia ./cmdstan-2.33.0/make
touch ./cmdstan-2.33.0/make/local
echo "STAN_THREADS=true" > ./cmdstan-2.33.0/make/local
ls -lia ./cmdstan-2.34.1
ls -lia ./cmdstan-2.34.1/make
touch ./cmdstan-2.34.1/make/local
echo "STAN_THREADS=true" > ./cmdstan-2.34.1/make/local
make -C $CMDSTAN build
cd $OLDWD
env:
CMDSTAN: "/home/runner/cmdstan-2.33.0/"
CMDSTAN: "/home/runner/cmdstan-2.34.1/"
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
Expand All @@ -70,7 +70,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
CMDSTAN: "/home/runner/cmdstan-2.33.0/"
CMDSTAN: "/home/runner/cmdstan-2.34.1/"
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
- uses: codecov/codecov-action@v1
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
authors = ["Rob J Goedman <[email protected]>"]
name = "StanQuap"
uuid = "e4723793-2808-4fc5-8a98-c57f4c160c53"
version = "4.4.0"
version = "4.4.1"

[compat]
CSV = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pkg> add StanQuap.jl
You need a working [Stan's cmdstan](https://mc-stan.org/users/interfaces/cmdstan.html) installation, the path of which you should specify either in `CMDSTAN` or `JULIA_CMDSTAN_HOME`, eg in your `~/.julia/config/startup.jl` have a line like
```julia
# CmdStan setup
ENV["CMDSTAN"] = expanduser("~/src/cmdstan-2.28.2/") # replace with your path
ENV["CMDSTAN"] = expanduser("~/src/cmdstan-2.34.1/") # replace with your path
```

It is recommended that you start your Julia process with multiple worker processes to take advantage of parallel sampling, eg
Expand Down
16 changes: 0 additions & 16 deletions src/quap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,6 @@ function sample(qr::QuapResult, count::Int)::DataFrame
])
end

#=
# Will be deprecated, use QuapResult object
function sample(qm::NamedTuple; nsamples=4000)
df = DataFrame()
p = Particles(nsamples, qm.distr)
for (indx, coef) in enumerate(qm.params)
if length(qm.params) == 1
df[!, coef] = p.particles
else
df[!, coef] = p[indx].particles
end
end
df
end
=#

export
QuapResult,
stan_quap,
Expand Down

0 comments on commit 909f6dc

Please sign in to comment.