Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Symbol keys #58

Merged
merged 13 commits into from
Jan 3, 2020
Prev Previous commit
Next Next commit
Deprecation for data
  • Loading branch information
Zachary Christensen authored and Zachary Christensen committed Jan 1, 2020
commit ce665208739bf35d9ce930d728d06f197057df76
2 changes: 2 additions & 0 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import Base: getindex, setindex!, delete!, haskey, get, copy!, getproperty, setp
@deprecate(setindex!(img::ImageMeta, X, propname::AbstractString),
setproperty!(img, Symbol(propname), X))

@deprecate(data(img::ImageMeta), arraydata(img))

function to_dict(dold::AbstractDict{String})
dnew = Dict{Symbol,Any}()
for (k, v) in dold
Expand Down