Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
strategy:
matrix:
version:
- '1.9'
- '1.10'
- '1.11'
- '1.12'
timeout-minutes: 30
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Reexport = "1"
SafeTestsets = "0.1"
Statistics = "1"
Test = "1"
Unitful = "1"
Unitful = "1.12.3"
julia = "1.9"

[extras]
Expand Down
8 changes: 3 additions & 5 deletions src/Var.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading