Skip to content

Reallocate non-owning workspaces after pickling - #211

Open
rpinho wants to merge 1 commit into
exoplanet-dev:mainfrom
rpinho:fix-pickle-workspaces
Open

rpinho wants to merge 1 commit into
exoplanet-dev:mainfrom
rpinho:fix-pickle-workspaces

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

Computing a GaussianProcess after a protocol-5 pickle round trip can raise a NumPy resize error. An uncomputed GP fails on compute, and a computed GP can fail when the observation count or kernel width changes. Allocate workspaces when their arrays do not own their storage and need a change in size. Regression tests check pickle round trips, likelihoods after observation and kernel changes, and reuse of preallocated array views.

Fixes #70. Python 3.14 makes protocol 5 the default, so a plain pickle.dumps now hits this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

gp does not own its data

1 participant