Starfish-develop / Starfish-develop/Starfish
Pickling in parallel.py
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 78
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure what the history of parallel.py is, but I tried running it with some data files and I ran into the issues that nothing would work as is because of pickling.
I understand the problem is that, for instance, in the initialize function we start a process with target model.brain, but Python cannot pickle bound methods. Bound methods are any kind of method that belong to a class that aren't classmethods- in other words, any method that requires self as one of the arguments.
I was easily able to edit the code from scripts/star.py to avoid this issue, but I'm curious if/how this has worked before since this pickle problem has existed for as long as I've used python.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading parallel.py, especially initialize and how model.brain is passed to a process. Compare it with the workaround in scripts/star.py and reproduce the pickling failure using the data files described in the issue. Done means parallel.py can run without the reported pickling error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100