Skip to content

Conversation

@bmaranville
Copy link
Member

Motivation: dill seems to be struggling to serialize lambda functions recently.

Converting lambda functions to plain class methods for key functions in the molgroups code should make it more resilient to serialization with dill (or pickle)

This PR is just a start to that work, only converting the attributes of one class in one module. All similar classes would have to be refactored in the same way.

I verified that the code seems to work as expected after the change.

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.

2 participants