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

xgi.load_xgi_data(dataset=None) error #270

Closed
maximelucas opened this issue Jan 20, 2023 · 0 comments · Fixed by #271
Closed

xgi.load_xgi_data(dataset=None) error #270

maximelucas opened this issue Jan 20, 2023 · 0 comments · Fixed by #271

Comments

@maximelucas
Copy link
Collaborator

xgi.load_xgi_data(dataset=None) lists available datasets as expected but then raises an error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In [2], line 1
----> 1 xgi.load_xgi_data(dataset=None)

File ~/Dropbox (ISI Foundation)/WORK/SCIENCE/xgi/xgi/readwrite/xgi_data.py:73, in load_xgi_data(dataset, cache, read, path, nodetype, edgetype, max_order)
     70 else:
     71     data = _request_from_xgi_data(dataset)
---> 73 return convert.dict_to_hypergraph(
     74     data, nodetype=nodetype, edgetype=edgetype, max_order=max_order
     75 )

File ~/Dropbox (ISI Foundation)/WORK/SCIENCE/xgi/xgi/convert.py:649, in dict_to_hypergraph(data, nodetype, edgetype, max_order)
    647 H = empty_hypergraph()
    648 try:
--> 649     H._hypergraph.update(data["hypergraph-data"])
    650 except KeyError:
    651     raise XGIError("Failed to get hypergraph data attributes.")

TypeError: 'NoneType' object is not subscriptable
nwlandry added a commit that referenced this issue Jan 20, 2023
Fixed #270 as well as other issues.
@nwlandry nwlandry mentioned this issue Jan 20, 2023
nwlandry added a commit that referenced this issue Jan 24, 2023
* fixed #270

Fixed #270 as well as other issues.

* add docs

* remove comment

* add a comment
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

Successfully merging a pull request may close this issue.

1 participant