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

Can't pickle h5py objects #4

Open
rodluger opened this issue May 11, 2021 · 0 comments
Open

Can't pickle h5py objects #4

rodluger opened this issue May 11, 2021 · 0 comments
Assignees

Comments

@rodluger
Copy link
Contributor

h5py objects in general cannot be pickled; see for instance this thread. Since multiprocessing relies on pickling to send instructions to each of the workers, the current implementation, in particular this line, will likely break things on certain platforms. I'm getting a "h5py objects cannot be pickled" error whenever I try to run several of the tests on my MacOSX laptop.

Possible fixes are to pass the name of the file to the workers and have them open it, or to convert the data into a numpy array. There may be other solutions if you google this a bit.

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

No branches or pull requests

3 participants