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

sampling_at_coords fails wehn there are multiple time steps #103

Open
mbennun opened this issue Dec 2, 2022 · 3 comments
Open

sampling_at_coords fails wehn there are multiple time steps #103

mbennun opened this issue Dec 2, 2022 · 3 comments
Labels
Bug Something isn't working

Comments

@mbennun
Copy link
Collaborator

mbennun commented Dec 2, 2022

I am back to the same failure when there are multiple timesteps in the data directory and I want to sample r, theta, phi for a SINGLE time step. I am giving it an array 't' that is the same length as r/theta/phi and has the same value (the time step/frame I want to use for the sampking). The interpn then complains that
ValueError: The points in dimension 3 must be strictly ascending

This is a common situation, we often want to 'fly-through' a single time step in a calculation

@mbennun mbennun added the Bug Something isn't working label Dec 2, 2022
@dstansby
Copy link
Contributor

dstansby commented Dec 8, 2022

Thanks for reporting. We've seen this before (#79, #47), and I think it keeps coming up because of different ways cooridinates are stored in different output files.

To help debug further could you share:

  • which psipy version you are using
  • a link to the data you tried to interpolate with

@andyz2021
Copy link

I've tried to replicate this error, but I can't seem to get the same bug you were describing. Would it be possible to check again and see if you're still getting the same failure with the latest version of PsiPy?

@mbennun
Copy link
Collaborator Author

mbennun commented Mar 9, 2023

I am currently using my own modified version of PsiPy so I can not really look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants