Skip to content

Commit

Permalink
Merge pull request #20 from Alexander-Barth/main
Browse files Browse the repository at this point in the history
small change for upcoming CommonDataModel 0.3
  • Loading branch information
tcarion authored Nov 22, 2023
2 parents f629c68 + d451b66 commit 5595c54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GRIBDatasets"
uuid = "82be9cdb-ee19-4151-bdb3-b400788d9abc"
authors = ["tcarion <[email protected]> and contributors"]
version = "0.3.0"
version = "0.3.1"

[deps]
CommonDataModel = "1fbeeb36-5f17-413c-809b-666fb144f157"
Expand Down
2 changes: 1 addition & 1 deletion src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GRIBDataset(filepath::AbstractString; filter_by_values = Dict()) = GRIBDataset(F

Base.keys(ds::Dataset) = getvars(ds)
Base.haskey(ds::Dataset, key) = key in keys(ds)
Base.getindex(ds::Dataset, key) = cfvariable(ds, string(key))
Base.getindex(ds::Dataset, key::Union{Symbol,AbstractString}) = cfvariable(ds, string(key))

getlayersid(ds::GRIBDataset) = ds.index["paramId"]
getlayersname(ds::GRIBDataset) = string.(ds.index["cfVarName"])
Expand Down

0 comments on commit 5595c54

Please sign in to comment.