Skip to content

Commit

Permalink
update compat and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
briochemc committed May 16, 2024
1 parent 6b5f4e0 commit 750fae3
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: '1'
arch: ${{ runner.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
name: Documentation
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- run: julia --project=docs -e '
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ docs/build/
docs/src/tutorials/
docs/src/howtos/
docs/src/notebooks/
settings.json
28 changes: 15 additions & 13 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AIBECS"
uuid = "ace601d6-714c-11e9-04e5-89b7fad23838"
authors = ["Benoit Pasquier <[email protected]>"]
version = "0.13.2"
version = "0.13.3"

[deps]
Bijectors = "76274a88-744f-5084-9051-94815aaf08c4"
Expand Down Expand Up @@ -36,30 +36,32 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
Bijectors = "0.8, 0.9, 0.10"
Bijectors = "0.13"
CodecZlib = "0.7"
DataDeps = "0.7"
DataFrames = "0.20, 0.21, 0.22, 1.0"
Distances = "0.9, 0.10"
Distributions = "0.23, 0.24, 0.25"
DataFrames = "1"
Distances = "0.10"
Distributions = "0.25"
FieldMetadata = "0.3"
Flatten = "0.3, 0.4"
Flatten = "0.4"
ForwardDiff = "0.10"
ImageFiltering = "0.6, 0.7"
Interpolations = "0.12, 0.13, 0.14"
ImageFiltering = "0.7"
Interpolations = "0.15"
JLD2 = "0.4"
MAT = "0.10"
MetadataArrays = "0.1"
NCDatasets = "0.10, 0.11, 0.12"
NCDatasets = "0.14"
NearestNeighbors = "0.4"
OceanGrids = "0.4"
RecipesBase = "1"
Reexport = "0.2, 1.0"
SciMLBase = "1"
Shapefile = "0.6, 0.7, 0.8"
StringDistances = "0.10, 0.11"
Reexport = "1"
SciMLBase = "2"
Shapefile = "0.13"
StringDistances = "0.11"
UnPack = "1"
Unitful = "1"
Downloads = "1"
SparseArrays = "1"
julia = "1"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
Documenter = "0.27"
Documenter = "1"
2 changes: 1 addition & 1 deletion src/Parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ Note that the instance of your parameters type `T` is required here because
it contains information on non-optimizable parameters and priors of optimizable parameters
"""
function λ2p(::Type{T}, λs) where {T<:APar}
ps = [inv(bijector(T,k))(λ) for (k,λ) in zip(flattenable_symbols(T), λs)]
ps = [inverse(bijector(T,k))(λ) for (k,λ) in zip(flattenable_symbols(T), λs)]
reconstruct(T, ps)
end
export p2λ, λ2p
Expand Down
2 changes: 1 addition & 1 deletion test/parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ p = TestParameters()
b = bijector(D)
@test b(lb) == -Inf
@test b(ub) == +Inf
b⁻¹ = inv(b)
b⁻¹ = inverse(b)
@test b⁻¹(-Inf) == lb
@test b⁻¹(+Inf) == ub
end
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using SciMLBase
using ForwardDiff, DualNumbers
using DataFrames
using Distributions
using Bijectors
using DataDeps
using Plots

Expand Down

0 comments on commit 750fae3

Please sign in to comment.