From 1885107cae26bd6e9b8142c57ee3fcdab4d43c58 Mon Sep 17 00:00:00 2001 From: Kevin Phan <98072684+ph-kev@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:20:04 -0700 Subject: [PATCH 1/4] Simplify adding extra longitude points --- src/Var.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Var.jl b/src/Var.jl index 685b69f5..53824377 100644 --- a/src/Var.jl +++ b/src/Var.jl @@ -191,11 +191,9 @@ function _add_extra_lon_point(dims, data) # Add corresponding lon slice to the end of data along the index # corresponding to the longitude dimension - first_lon_slice = selectdim(data, idx, 1) - data = stack( - (eachslice(data, dims = idx)..., first_lon_slice), - dims = idx, - ) + slice_indices = ntuple(i -> i == idx ? [1] : Colon(), ndims(data)) + first_lon_slice = view(data, slice_indices...) + data = cat(data, first_lon_slice, dims = idx) end end From 26a2d2e7b1970c01761f82c9dc3d03b2d9a9faf8 Mon Sep 17 00:00:00 2001 From: Kevin Phan <98072684+ph-kev@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:21:11 -0700 Subject: [PATCH 2/4] Add Julia 1.12 to CI --- .github/workflows/CI.yml | 1 + .github/workflows/Downgrade.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 215cc777..acf095b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,6 +24,7 @@ jobs: - '1.9' - '1.10' - '1.11' + - '1.12' timeout-minutes: 30 steps: - name: Checkout diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 3b55acd8..6d4a5700 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: ['1.9', '1.10', '1.11'] + version: ['1.9', '1.10', '1.11', '1.12'] steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest From ba8e6e1ed774f2bb56e17ef11c451051334ebb2b Mon Sep 17 00:00:00 2001 From: Kevin Phan <98072684+ph-kev@users.noreply.github.com> Date: Wed, 15 Oct 2025 15:57:24 -0700 Subject: [PATCH 3/4] Remove Julia 1.9 from CI --- .github/workflows/CI.yml | 1 - .github/workflows/Downgrade.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index acf095b5..1c85638d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,7 +21,6 @@ jobs: strategy: matrix: version: - - '1.9' - '1.10' - '1.11' - '1.12' diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 6d4a5700..179d21a9 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: ['1.9', '1.10', '1.11', '1.12'] + version: ['1.10', '1.11', '1.12'] steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest From 0620aa445c690ed25c76788e6610982d3f02dc6d Mon Sep 17 00:00:00 2001 From: Kevin Phan <98072684+ph-kev@users.noreply.github.com> Date: Wed, 15 Oct 2025 16:01:31 -0700 Subject: [PATCH 4/4] Update Unitful compat for Julia 1.12 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 14363648..1f710467 100644 --- a/Project.toml +++ b/Project.toml @@ -40,7 +40,7 @@ Reexport = "1" SafeTestsets = "0.1" Statistics = "1" Test = "1" -Unitful = "1" +Unitful = "1.12.3" julia = "1.9" [extras]