-
Notifications
You must be signed in to change notification settings - Fork 271
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
Point function sometimes fails to return values on cell edges #2891
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
well it somehow seems to have gotten worse, so there may be more than one bug to solve here now
Detailed traceback
edit: this is due to unyt becoming more strict about inputs, it is fixed with the following change in OP's script - point = data.point([x, y, 0])
+ point = data.point([x, y, data.quan(0, "code_length")]) with this patch, I report that I can reproduce the original problem. |
I went down the rabbit hole and I am still not sure wether this is a frontend-specific issue. |
Bug report
Bug summary
When using the
point
function to sample a FLASH checkpoint file, it will sometimes return an empty array as if the point is outside the domain. It seems to happen when the point lies on a cell edge, even when that edge is well inside the grid domain (though it doesn't happen on every edge).Code for reproduction
data file:
curl -JO http://use.yt/upload/ae71a17a
Actual outcome
Expected outcome
Always return a value at all points within the domain.
Version Information
yt was installed with
conda install yt
The text was updated successfully, but these errors were encountered: