Skip to content

Commit 86a1fce

Browse files
Merge branch 'main' of github.com:JuliaGeo/CommonDataModel.jl
2 parents 23fbd38 + fbc1b02 commit 86a1fce

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

.github/workflows/ci.yml renamed to .github/workflows/CI.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,21 @@ on:
44
- pull_request
55
jobs:
66
test:
7-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.6'
13+
- 'lts'
1414
- '1'
1515
os:
1616
- ubuntu-latest
17-
arch:
18-
- x64
1917
steps:
2018
- uses: actions/checkout@v4
2119
- uses: julia-actions/setup-julia@v2
2220
with:
2321
version: ${{ matrix.version }}
24-
arch: ${{ matrix.arch }}
2522
- uses: actions/cache@v4
2623
env:
2724
cache-name: cache-artifacts
@@ -39,7 +36,7 @@ jobs:
3936
- uses: julia-actions/julia-runtest@latest
4037
continue-on-error: ${{ matrix.version == 'nightly' }}
4138
- uses: julia-actions/julia-processcoverage@v1
42-
- uses: codecov/codecov-action@v4
39+
- uses: codecov/codecov-action@v5
4340
with:
4441
file: lcov.info
4542
token: ${{ secrets.CODECOV_TOKEN }}

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ keywords = ["netcdf", "GRIB", "climate and forecast conventions", "oceanography"
44
license = "MIT"
55
desc = "CommonDataModel is a module that defines types common to NetCDF and GRIB data"
66
authors = ["Alexander Barth <[email protected]>"]
7-
version = "0.3.6"
7+
version = "0.3.7"
88

99
[deps]
1010
CFTime = "179af706-886a-5703-950a-314cd64e0468"
@@ -21,4 +21,4 @@ Dates = "1"
2121
Preferences = "1.3"
2222
Printf = "1"
2323
Statistics = "1"
24-
julia = "1.6"
24+
julia = "1.6"

src/dataset.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function Base.setindex!(ds::AbstractDataset,data::AbstractVariable,varname::Symb
175175
return defVar(ds, varname, data)
176176
end
177177

178-
function Base.keys(ds::AbstractDataset)
178+
function Base.keys(ds::AbstractDataset)
179179
return varnames(ds)
180180
end
181181

@@ -248,7 +248,7 @@ function Base.getindex(ds::Union{AbstractDataset,AbstractVariable},n::CFStdName)
248248
if length(ncvars) == 1
249249
return ncvars[1]
250250
else
251-
throw(KeyError("$(length(ncvars)) matches while searching for a variable with standard_name attribute equal to $(n.name)"))
251+
throw(KeyError("variable with standard_name attribute equal to $(n.name) ($(length(ncvars)) matches)"))
252252
end
253253
end
254254

src/defer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function metadata(ds::AbstractDataset)
44
# dimensions
55

66
dim = OrderedDict()
7-
unlimited_dims = unlimited(ds.dim)
7+
unlimited_dims = unlimited(ds)
88

99
for (dimname,dimlen) in ds.dim
1010
dim[dimname] = Dict(

0 commit comments

Comments
 (0)