You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
types: Fix SubDomain pickling for Dask compatibility
Fixes circular reference pickling bug where Grid and SubDomain
objects reference each other, causing failures in Dask workflows.
Changes:
- Implement lazy SubDistributor initialization via property getter
- Restore grid references in Grid.__setstate__ for legacy API
- Update examples/seismic/model.py to use new SubDomain API
- Add regression tests for SubDomain pickling (new and legacy API)
- Simplify redundant check in test_interpolate_subdomain_mpi_mfe
The issue occurred because SubDomain.__setstate__ tried to create
a SubDistributor before Grid was fully unpickled, causing
AttributeError. Now the distributor is created lazily on first
access, after both objects are fully restored.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments