Skip to content

Commit 6408c8d

Browse files
use a.key instead of a[:key] for named tuples
1 parent e3da59a commit 6408c8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cfvariable.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ checksum(v::CFVariable) = checksum(v.var)
448448

449449
fillmode(v::CFVariable) = fillmode(v.var)
450450

451-
fillvalue(v::CFVariable) = v._storage_attrib[:fillvalue]
452-
scale_factor(v::CFVariable) = v._storage_attrib[:scale_factor]
453-
add_offset(v::CFVariable) = v._storage_attrib[:add_offset]
454-
time_origin(v::CFVariable) = v._storage_attrib[:time_origin]
455-
calendar(v::CFVariable) = v._storage_attrib[:calendar]
451+
fillvalue(v::CFVariable) = v._storage_attrib.fillvalue
452+
scale_factor(v::CFVariable) = v._storage_attrib.scale_factor
453+
add_offset(v::CFVariable) = v._storage_attrib.add_offset
454+
time_origin(v::CFVariable) = v._storage_attrib.time_origin
455+
calendar(v::CFVariable) = v._storage_attrib.calendar
456456
""""
457457
tf = time_factor(v::CFVariable)
458458

0 commit comments

Comments
 (0)