Skip to content

Can't pickle h5py objects #4

Description

@rodluger

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions