Skip to content

Commit b9cd38e

Browse files
remove NetCDF specific code
1 parent 349ba8a commit b9cd38e

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/attribute.jl

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,20 @@ function show_attrib(io,a)
3535
level = get(io, :level, 0)
3636
indent = " " ^ level
3737

38-
# if !isopen(ds)
39-
# print(io,"closed Dataset")
40-
# return
41-
# end
38+
# need to know ds from a
39+
#if !isopen(ds)
40+
# print(io,"Dataset attributes (file closed)")
41+
# return
42+
#end
4243

4344
try
44-
# use the same order of attributes than in the NetCDF file
45+
# use the same order of attributes than in the dataset
4546
for (attname,attval) in a
4647
print(io,indent,@sprintf("%-20s = ",attname))
4748
printstyled(io, @sprintf("%s",attval),color=attribute_color[])
4849
print(io,"\n")
4950
end
5051
catch err
5152
print(io,"Dataset attributes (file closed)")
52-
# if isa(err,NetCDFError)
53-
# if err.code == NC_EBADID
54-
# print(io,"Dataset attributes (file closed)")
55-
# return
56-
# end
57-
# end
58-
# rethrow()
5953
end
6054
end

0 commit comments

Comments
 (0)