diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 215cc777..1c85638d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,9 +21,9 @@ jobs: strategy: matrix: version: - - '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..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'] + version: ['1.10', '1.11', '1.12'] steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest 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] 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