Skip to content

Commit 46f22f4

Browse files
ignore bounds if it is not a String (issue JuliaGeo/NCDatasets.jl#265)
1 parent ba34d89 commit 46f22f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dataset.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ function initboundsmap!(ds)
280280
v = variable(ds,vname)
281281
bounds = get(v.attrib,"bounds",nothing)
282282

283-
if bounds !== nothing
283+
# see https://github.com/Alexander-Barth/NCDatasets.jl/issues/265
284+
if bounds isa String
284285
ds._boundsmap[bounds] = vname
285286
end
286287
end

0 commit comments

Comments
 (0)