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

BUG: grid.cell_volumes.shape doesn't match grid.shape #113

Closed
neutrinoceros opened this issue May 5, 2023 · 0 comments · Fixed by #114
Closed

BUG: grid.cell_volumes.shape doesn't match grid.shape #113

neutrinoceros opened this issue May 5, 2023 · 0 comments · Fixed by #114
Labels
bug Something isn't working

Comments

@neutrinoceros
Copy link
Owner

neutrinoceros commented May 5, 2023

reprod

import numpy as np
import gpgi

ds = gpgi.load(grid={"cell_edges":{"x": np.linspace(0, 1, 4), "y": np.linspace(0, 1, 8)}})
assert ds.grid.cell_volumes.shape == ds.grid.shape
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
1 participant