Skip to content

writing to h5 #59

Open
Open
@ramav87

Description

writing sidpy dataset objects to NSID h5 files fails. Consider the line

pyNSID.hdf_io.write_nsid_dataset(results, hf['Measurement_000/Channel_000'], main_data_name="new_spectrum");

This results in the following error.


TypeError                                 Traceback (most recent call last)
//anaconda3/lib/python3.7/site-packages/distributed/protocol/pickle.py in dumps(x)
     39     try:
---> 40         result = pickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL)
     41         if len(result) < 1000:

//anaconda3/lib/python3.7/site-packages/h5py/_hl/base.py in __getnewargs__(self)
    371         """
--> 372         raise TypeError("h5py objects cannot be pickled")
    373 

TypeError: h5py objects cannot be pickled

Activity

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

Metadata

Assignees

No one assigned

    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