timholy / Grid.jl

Interpolation and related operations on grids
MIT License
47 stars 26 forks source link

Type is immutable error with Julia 0.2.0 #3

Closed gcamilo closed 11 years ago

gcamilo commented 11 years ago

Hi, I was just running your examples on the latest version of Julia, and it returns

julia> yi = InterpGrid(y, BCnil, InterpQuadratic) ERROR: in interp_invert!: type is immutable in interp_invert! at /home/gcam/.julia/Grid/src/Grid.jl:665 in InterpGrid at /home/gcam/.julia/Grid/src/Grid.jl:137

Even something simpler like

julia> b = linspace(1.0,10.0,20)

produces the same error

julia> yi = InterpGrid(b, BCnil, InterpQuadratic) ERROR: in interp_invert!: type is immutable in interp_invert! at /home/gcam/.julia/Grid/src/Grid.jl:665 in InterpGrid at /home/gcam/.julia/Grid/src/Grid.jl:137

Do you have any quick fixes? Thanks for writing this!

timholy commented 11 years ago

Fixed with 35bcc42999045e0427ad8abf4bb23d826ae599eb

The package will be updated once this gets merged: https://github.com/JuliaLang/METADATA.jl/pull/140