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

local_group_arrays #285

Closed
csskene opened this issue Mar 7, 2024 · 1 comment
Closed

local_group_arrays #285

csskene opened this issue Mar 7, 2024 · 1 comment

Comments

@csskene
Copy link
Contributor

csskene commented Mar 7, 2024

Hi
I've noticed that local_group_arrays now returns an error. When running m, ell, *_ = d.coeff_layout.local_group_arrays(b.domain,scales=1) I get an error when the function tries to find the chunk_shape

 chunk_shape = domain.chunk_shape(self)

                  ^^^^^^^^^^^^^^^^^^

AttributeError: 'CachedMethod' object has no attribute 'chunk_shape'

Attached is a small example that exhibits this problem
Thanks,
Calum
group_arrays.txt

@csskene
Copy link
Contributor Author

csskene commented May 27, 2024

Just realised that this issue is due to changes in Dedalus. My example can be fixed by changing

m, ell, *_ = d.coeff_layout.local_group_arrays(b.domain,scales=1)

to

m, ell, *_ = d.coeff_layout.local_group_arrays(b.domain(d), scales=1)

This fixes things as now b.domain is a method that takes the distributor as an argument.

@csskene csskene closed this as completed May 27, 2024
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

1 participant