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

Fix for best parameters not updating when MCMC finds a better fit than least-squares #126

Merged
merged 4 commits into from
Jan 12, 2021

Conversation

rychallener
Copy link
Contributor

Issue is that the least-squares bestp array is currently overwriting the shared-memory array. Since the least-squares bestp array is a normal numpy array, the shared-memory aspect is lost and bestp can't be properly updated by the subprocess chains. Solution is to copy only the values within the least-squares bestp array.

@pcubillos
Copy link
Owner

Oh, wow! This is very obscure, good catch, thanks!
I will merge in a minute

@pcubillos pcubillos merged commit 45be667 into pcubillos:master Jan 12, 2021
@pcubillos
Copy link
Owner

Hi @rychallener , I had forgotten to upload this fix to pypi, the code it's up to date there now.

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.

None yet

2 participants