From c7266bf7c34a01e2cece4ef06d992cbca9454e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Wed, 21 Jan 2026 08:28:30 -0500 Subject: [PATCH 1/5] fixes always_false if not present in NN --- src/NeutralLandscapes.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NeutralLandscapes.jl b/src/NeutralLandscapes.jl index 7d890af..8af1f19 100644 --- a/src/NeutralLandscapes.jl +++ b/src/NeutralLandscapes.jl @@ -5,7 +5,10 @@ using StatsBase: sample, ZScoreTransform, fit, transform using Random: rand! using Statistics: quantile, mean using Distributions: Normal, LogNormal, MvNormal, Categorical, pdf -using NearestNeighbors: KDTree, knn, nn, always_false, knn_point!, SVector +using NearestNeighbors: KDTree, knn, nn, knn_point!, SVector + +const always_false = isdefined(NearestNeighbors, :always_false) ? NearestNeighbors.always_false : Returns(false) + using DataStructures: IntDisjointSets, union!, find_root, push! using Base: @kwdef using HaltonSequences: haltonvalue From 387266c9ed9dccd0e2181f0188b9c28ac7892eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Wed, 21 Jan 2026 08:32:09 -0500 Subject: [PATCH 2/5] Fix (handling of NN.always_false on lts) --- src/NeutralLandscapes.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NeutralLandscapes.jl b/src/NeutralLandscapes.jl index 8af1f19..dd12814 100644 --- a/src/NeutralLandscapes.jl +++ b/src/NeutralLandscapes.jl @@ -7,7 +7,11 @@ using Statistics: quantile, mean using Distributions: Normal, LogNormal, MvNormal, Categorical, pdf using NearestNeighbors: KDTree, knn, nn, knn_point!, SVector -const always_false = isdefined(NearestNeighbors, :always_false) ? NearestNeighbors.always_false : Returns(false) +import NearestNeighbors +always_false = Returns(false) +if isdefined(NearestNeighbors, :always_false) + global always_false = NearestNeighbors.always_false +end using DataStructures: IntDisjointSets, union!, find_root, push! using Base: @kwdef From 783dedc105f9ff4f98d5170d9c7e879687f06e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Wed, 21 Jan 2026 08:32:55 -0500 Subject: [PATCH 3/5] semver: v0.1.6 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f65df0a..3342a03 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "NeutralLandscapes" uuid = "71847384-8354-4223-ac08-659a5128069f" authors = ["Timothée Poisot ", "Michael Krabbe Borregaard ", "Michael David Catchen ", "Rafael Schouten ", "Virgile Baudrot "] -version = "0.1.5" +version = "0.1.6" [deps] DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" From 1315fd98dec432f2acf792ac377453a21742c761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Wed, 21 Jan 2026 08:38:37 -0500 Subject: [PATCH 4/5] update CI to test on lts and 1 --- .github/workflows/CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 88ef2cc..03dedbb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,7 +16,8 @@ jobs: strategy: matrix: version: - - '1.9' + - 'lts' + - '1' os: - ubuntu-latest - macOS-latest From 091fa10372b297a88aea90eb2e5ff224a194e5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Wed, 21 Jan 2026 08:41:17 -0500 Subject: [PATCH 5/5] catch up on github action versions --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 03dedbb..cac5be8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,7 +27,7 @@ jobs: experimental: [false] steps: - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} @@ -36,7 +36,7 @@ jobs: env: GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v5 with: file: ./lcov.info flags: unittests