Skip to content

Commit

Permalink
ignore bounds if it is not a String (issue Alexander-Barth/NCDatasets…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Sep 4, 2024
1 parent ba34d89 commit 46f22f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ function initboundsmap!(ds)
v = variable(ds,vname)
bounds = get(v.attrib,"bounds",nothing)

if bounds !== nothing
# see https://github.com/Alexander-Barth/NCDatasets.jl/issues/265
if bounds isa String
ds._boundsmap[bounds] = vname
end
end
Expand Down

0 comments on commit 46f22f4

Please sign in to comment.