timholy / Grid.jl

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

Allows to use different range types for `CoordInterpGrid()` #41

Closed scheidan closed 10 years ago

scheidan commented 10 years ago

Allows to use different range types for CoordInterpGrid(). For example:

x = 2:10              # UnitRange
y = 5.0:0.2:10.0  # FloatRange
z = Float64[sin(i+j) for i in x, j in y]

cg = CoordInterpGrid((x,y),z,BCnil,InterpQuadratic)
cg[2,5.0]

Before the same type for x and y was required.

Also I added CoordInterpGrid() to the Readme.

timholy commented 10 years ago

Hmm, Travis seems to be struggling a bit---I don't think those errors are directly related to your code. I will try to restart the job at some point; if you don't hear back from me soon, feel free to ping me here.

scheidan commented 10 years ago

Could you try to run it on Travis again? Not sure what causes the problems...

timholy commented 10 years ago

See the linked Julia issue. Your commit looks fine to me, but on the off chance that there's been some corruption I'm going to wait just a little longer to see if there are any ideas.

timholy commented 10 years ago

Fixed in https://github.com/timholy/Grid.jl/pull/43. Thanks!