HyperNetX icon indicating copy to clipboard operation
HyperNetX copied to clipboard

About the function "to_pickle", now the version 2.0.3 not support the save function?

Open 922397935 opened this issue 2 years ago • 0 comments

scenes = {
    0: ('FN', 'TH'),
    1: ('TH', 'JV'),
    2: ('BM', 'FN', 'JA'),
    3: ('JV', 'JU', 'CH', 'BM'),
    4: ('JU', 'CH', 'BR', 'CN', 'CC', 'JV', 'BM'),
    5: ('TH', 'GP'),
    6: ('GP', 'MP'),
    7: ('MA', 'GP')
}

H = hnx.Hypergraph(scenes)
H
hnx.to_pickle(H, filename='1.pkl')

File D:\Anaconda\envs\mhyperG\lib\site-packages\hypernetx\read_write.py:10, in to_pickle(obj, filename) 8 """Writes object to a pickle file""" 9 with open(f"{filename}", "wb") as f: ---> 10 pickle.dump(obj, f)

TypeError: 'NoneType' object is not callable How can I fix the bug?

922397935 avatar Aug 20 '23 02:08 922397935