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

moving namedtuple() calls to module level in stats to facilitate pickling/multiprocessing #3268

Merged
merged 2 commits into from
Nov 23, 2018

Conversation

Spaak
Copy link
Member

@Spaak Spaak commented Nov 23, 2018

The definition of namedtuples inside function bodies prevents them from being pickled. Therefore, some of these stats functions can now not be used with the multiprocessing module. Simply moving them outside the function bodies to the module level fixes this issue.

Copy link
Member

@junpenglao junpenglao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ColCarroll ColCarroll merged commit 6d07591 into pymc-devs:master Nov 23, 2018
@ColCarroll
Copy link
Member

Thanks!

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.

3 participants