Skip to content

Commit

Permalink
issue #235
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Oct 30, 2023
1 parent 30130a2 commit 3b8e157
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ This example checks if the file `/tmp/test.nc` has a variable with the
name `temperature` and a dimension with the name `lon`.
"""
Base.haskey(a::NCIterable,name::AbstractString) = name in keys(a)
Base.in(name::AbstractString,a::NCIterable) = name in keys(a)


function dimnames(ds::AbstractNCDataset; parents = false)
Expand Down
1 change: 0 additions & 1 deletion test/test_attrib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ NCDatasets.NCDataset(filename,"c") do ds

# check presence of attribute
@test NCDatasets.haskey(v.attrib,"comment")
@test "comment" in v.attrib
@test v.attrib["long_name"] == "Temperature"
@test v.attrib[:long_name] == "Temperature"
@test v.attrib["test_vector_attrib"] == [1,2,3]
Expand Down
1 change: 0 additions & 1 deletion test/test_simple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ ds = NCDataset(filename,"r")

# check if a file has a variable with a given name
@test haskey(ds,"temperature")
@test "temperature" in ds

# get an list of all variable names
@test "temperature" in keys(ds)
Expand Down

0 comments on commit 3b8e157

Please sign in to comment.