Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix: ParetoSmooth is not compatible with Turing 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Dec 3, 2023
1 parent 398a278 commit b09d76b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ jobs:
- uses: julia-actions/cache@v1
- name: Test ${{ matrix.jl-file }}
run: |
cd turing
julia --project=. -e 'using Pkg; Pkg.instantiate()'
julia --project=. ${{ matrix.jl-file }}
julia --project=turing -e 'using Pkg; Pkg.instantiate()'
julia --project=turing turing/${{ matrix.jl-file }}
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
julia
];

inherit (self.checks.${system}.pre-commit-check) shellHook;
shellHook = ''
export JULIA_PROJECT="turing"
${self.checks.${system}.pre-commit-check.shellHook}
'';
};
packages.default = pkgs.stdenvNoCC.mkDerivation rec {
name = "slides";
Expand Down
1 change: 1 addition & 0 deletions turing/04-ordinal_regression-esoph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using CSV
using DataFrames
using LinearAlgebra
using CategoricalArrays
using DataFrames: transform!

# reproducibility
using Random: seed!
Expand Down
7 changes: 7 additions & 0 deletions turing/13-model_comparison-roaches.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# FIXME: ParetoSmooth is not compatible with Turing 0.29
using Pkg
Pkg.compat("Turing", "0.22")
Pkg.compat("Bijectors", "0.10")
Pkg.compat("StatsBase", "0.33")
Pkg.add("ParetoSmooth")

using Turing
using CSV
using DataFrames
Expand Down
2 changes: 0 additions & 2 deletions turing/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
ParetoSmooth = "a68b5a21-f429-434e-8bfa-46b447300aac"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
TransformVariables = "84d833dd-6860-57f9-a1a7-6da5db126cff"
Expand All @@ -18,7 +17,6 @@ CategoricalArrays = "0.10"
DataFrames = "1"
LazyArrays = "1"
PDMats = "0.11"
ParetoSmooth = "0.7"
StatsBase = "0.34"
StatsFuns = "1"
TransformVariables = "0.8"
Expand Down

0 comments on commit b09d76b

Please sign in to comment.