Skip to content

Commit f5b496f

Browse files
authored
Use getfield not getproperty in show (#42)
1 parent 75c8262 commit f5b496f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/plan-psf.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ function Base.show(io::IO, ::MIME"text/plain", plan::PlanPSF{T}) where {T}
115115
t = typeof(plan)
116116
println(io, t)
117117
for f in (:nx, :nz, :px, :pz, :padsize)
118-
p = getproperty(plan, f)
118+
p = getfield(plan, f)
119119
t = typeof(p)
120120
println(io, " ", f, "::", t, " ", p)
121121
end
122122
for f in (:workmat, :workvecx, :workvecz, :img_compl, :ker_compl, :fft_plan, :ifft_plan)
123-
p = getproperty(plan, f)
123+
p = getfield(plan, f)
124124
println(io, " ", f, ":", " ", summary(p))
125125
end
126126
println(io, " (", sizeof(plan), " bytes)")

src/plan-rotate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ function Base.show(io::IO, ::MIME"text/plain", plan::PlanRotate{T,R}) where {T,
110110
t = typeof(plan)
111111
println(io, t)
112112
for f in (:nx, :padsize)
113-
p = getproperty(plan, f)
113+
p = getfield(plan, f)
114114
t = typeof(p)
115115
println(io, " ", f, "::", t, " ", p)
116116
end
117117
for f in (:interp, :workmat1, :workmat2)
118-
p = getproperty(plan, f)
118+
p = getfield(plan, f)
119119
println(io, " ", f, ":", " ", summary(p))
120120
end
121121
println(io, " (", sizeof(plan), " bytes)")

src/spectplan.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ function Base.show(io::IO, ::MIME"text/plain", plan::SPECTplan{T}) where {T}
141141
t = typeof(plan)
142142
println(io, t)
143143
for f in (:imgsize, :px, :pz, :nview, :viewangle, :interpmeth, :mode, :dy, :nthread)
144-
p = getproperty(plan, f)
144+
p = getfield(plan, f)
145145
t = typeof(p)
146146
println(io, " ", f, "::", t, " ", p)
147147
end
148148
for f in (:mumap, )
149-
p = getproperty(plan, f)
149+
p = getfield(plan, f)
150150
println(io, " ", f, ":", " ", summary(p))
151151
end
152152
println(io, " (", sizeof(plan), " bytes)")

0 commit comments

Comments
 (0)