From dfec2a2e7970806267deb251d98e09f1ac02cf11 Mon Sep 17 00:00:00 2001 From: Rob J Goedman Date: Sun, 10 Dec 2023 08:58:59 -0700 Subject: [PATCH] Rel 1.5.3 - Pkg & cmdstan updates --- .github/workflows/CI.yml | 22 +++++++++++----------- Project.toml | 2 +- src/gpdfitnew.jl | 2 +- test/arsenic_logistic.stan | 2 +- test/arsenic_logistic_t.stan | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f4ef7f9..97be0ee 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ on: pull_request: env: - JULIA_CMDSTAN_HOME: "/home/worker/cmdstan-2.31.0/" + JULIA_CMDSTAN_HOME: "/home/worker/cmdstan-2.33.1/" jobs: test: @@ -17,7 +17,7 @@ jobs: matrix: version: - '1' - - nightly + #- nightly os: - ubuntu-latest #- macOS-latest @@ -41,18 +41,18 @@ jobs: OLDWD=`pwd` cd ~ pwd - wget https://github.com/stan-dev/cmdstan/releases/download/v2.31.0/cmdstan-2.31.0.tar.gz - tar -xzpf cmdstan-2.31.0.tar.gz + wget https://github.com/stan-dev/cmdstan/releases/download/v2.33.1/cmdstan-2.33.1.tar.gz + tar -xzpf cmdstan-2.33.1.tar.gz ls -lia . - ls -lia ./cmdstan-2.31.0 - ls -lia ./cmdstan-2.31.0/make - touch ./cmdstan-2.31.0/make/local - echo "STAN_THREADS=true" > ./cmdstan-2.31.0/make/local - cat ./cmdstan-2.31.0/make/local + ls -lia ./cmdstan-2.33.1 + ls -lia ./cmdstan-2.33.1/make + touch ./cmdstan-2.33.1/make/local + echo "STAN_THREADS=true" > ./cmdstan-2.33.1/make/local + cat ./cmdstan-2.33.1/make/local make -C $JULIA_CMDSTAN_HOME build cd $OLDWD env: - JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.31.0/" + JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.33.1/" - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: @@ -71,7 +71,7 @@ jobs: - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest env: - JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.31.0/" + JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.33.1/" - uses: julia-actions/julia-processcoverage@v1 if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 - uses: codecov/codecov-action@v1 diff --git a/Project.toml b/Project.toml index 9b4282c..526591e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ParetoSmoothedImportanceSampling" uuid = "98f080ec-61e2-11eb-1c7b-31ea1097256f" authors = ["@alvaro1101, Rob J Goedman "] -version = "1.5.2" +version = "1.5.3" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/src/gpdfitnew.jl b/src/gpdfitnew.jl index 70298a6..0588499 100644 --- a/src/gpdfitnew.jl +++ b/src/gpdfitnew.jl @@ -2,7 +2,7 @@ """ gpdfitnew(x) -Estimate the paramaters for the Generalized Pareto Distribution (GPD). Returns empirical Bayes estimate for the parameters of the two-parameter generalized Parato distribution given the data. +Estimate the parameters for the Generalized Pareto Distribution (GPD). Returns empirical Bayes estimate for the parameters of the two-parameter generalized Parato distribution given the data. # Arguments * `x::AbstractArray`: One dimensional data array. diff --git a/test/arsenic_logistic.stan b/test/arsenic_logistic.stan index 1731ec4..3fd8134 100644 --- a/test/arsenic_logistic.stan +++ b/test/arsenic_logistic.stan @@ -1,7 +1,7 @@ data { int p; int N; - int y[N]; + array[N] int y; matrix[N,p] x; } diff --git a/test/arsenic_logistic_t.stan b/test/arsenic_logistic_t.stan index f25e6ba..287fda9 100644 --- a/test/arsenic_logistic_t.stan +++ b/test/arsenic_logistic_t.stan @@ -1,10 +1,10 @@ data { int p; int N; - int y[N]; + array[N] int y; matrix[N,p] x; int Nt; - int yt[Nt]; + array[Nt] int yt; matrix[Nt,p] xt; } transformed data {