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
I'm trying to use skimpy for parallel processing (via Python's multiprocessing module) to speed up simulations. However, I am encountering a PicklingError related to the Convenience class when I attempt to parallelize my simulations.
The error I get is:
_pickle.PicklingError: Can't pickle <skimpy.mechanisms.convenience.make_convenience..Convenience object>
It seems that because the Convenience class is dynamically generated within the make_convenience function, Python's multiprocessing module is unable to serialize it for passing between processes. This prevents me from utilizing multiprocessing to parallelize my computations.
I understand that the dynamic class generation provides flexibility for different reaction mechanisms, but it causes issues with multiprocessing due to the pickling requirement.
Do you have any suggestions or workarounds for how to use skimpy in a parallel processing context?
The text was updated successfully, but these errors were encountered:
I see that is an interesting problem, and I like to fix that. Can you tell me a bit more how you are sending the object to python multiprocessing. Like are you just sending the object? Or you trying to load it? I would need a bit more context to help you.
Hello,
I'm trying to use skimpy for parallel processing (via Python's multiprocessing module) to speed up simulations. However, I am encountering a PicklingError related to the Convenience class when I attempt to parallelize my simulations.
The error I get is:
_pickle.PicklingError: Can't pickle <skimpy.mechanisms.convenience.make_convenience..Convenience object>
It seems that because the Convenience class is dynamically generated within the make_convenience function, Python's multiprocessing module is unable to serialize it for passing between processes. This prevents me from utilizing multiprocessing to parallelize my computations.
I understand that the dynamic class generation provides flexibility for different reaction mechanisms, but it causes issues with multiprocessing due to the pickling requirement.
Do you have any suggestions or workarounds for how to use skimpy in a parallel processing context?
The text was updated successfully, but these errors were encountered: