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

Merge edges #210

Merged
merged 13 commits into from
Nov 16, 2022
8 changes: 0 additions & 8 deletions xgi/stats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,6 @@ def nodestat_func(func):
NodeStat('degree')

However, `my_degree` is not recognized as a node statistic.

>>> H.my_degree()
Traceback (most recent call last):
AttributeError: stat "my_degree" not among available node or edge stats
>>> H.nodes.my_degree
Traceback (most recent call last):
AttributeError: Stat 'my_degree' not defined

leotrs marked this conversation as resolved.
Show resolved Hide resolved
Use the `nodestat_func` decorator to turn `my_degree` into a valid stat.

>>> original_my_degree = my_degree
Expand Down