File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -35,26 +35,20 @@ function show_attrib(io,a)
35
35
level = get (io, :level , 0 )
36
36
indent = " " ^ level
37
37
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
42
43
43
44
try
44
- # use the same order of attributes than in the NetCDF file
45
+ # use the same order of attributes than in the dataset
45
46
for (attname,attval) in a
46
47
print (io,indent,@sprintf (" %-20s = " ,attname))
47
48
printstyled (io, @sprintf (" %s" ,attval),color= attribute_color[])
48
49
print (io," \n " )
49
50
end
50
51
catch err
51
52
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()
59
53
end
60
54
end
You can’t perform that action at this time.
0 commit comments