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

Grid with Dates #39

Open
StepanSushko opened this issue Nov 11, 2022 · 1 comment
Open

Grid with Dates #39

StepanSushko opened this issue Nov 11, 2022 · 1 comment

Comments

@StepanSushko
Copy link

I tried to create a RectangleGrid(t,p), where t is a Date, p is a float with no luck, I got error "ERROR: MethodError: Cannot convert an object of type Date to an object of type Float64". Is there way to resolve it?

I tried to redefine RectangleGrid struct, but I also failed with it at the moment.

@mykelk
Copy link
Member

mykelk commented Nov 12, 2022

Yeah, as you can see in:
https://github.com/sisl/GridInterpolations.jl/blob/master/src/GridInterpolations.jl
the cutpoints are converted into Float64. There are two options: (1) put together a PR that generalizes the cutpoints, but this might be tricky, or (2) do your interpolation with floats and then convert between floats and dates externally from this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants