Skip to content

Commit

Permalink
use Base.getproperty
Browse files Browse the repository at this point in the history
  • Loading branch information
xzackli committed Feb 27, 2022
1 parent 5dd2418 commit d863d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Base.convert(::Type{CarClenshawCurtis{T}}, w0::WCSTransform) where T
end

# this kind of WCS only has two spatial dimensions. this check should be constant-propagated
function getproperty(wcs::CarClenshawCurtis, k::Symbol)
function Base.getproperty(wcs::CarClenshawCurtis, k::Symbol)
if k == :naxis
return 2
end
Expand Down

0 comments on commit d863d83

Please sign in to comment.