Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Feb 3, 2025
1 parent bc861fa commit e7fa29f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
66 changes: 33 additions & 33 deletions tutorials/getting_started/quickstart.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions xgi/generators/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def chung_lu_hypergraph(k1, k2, seed=None):
if p != 1:
try:
j += np.random.geometric(p)
except ZeroDivisionError:
except ValueError:
j = np.inf

if j < m:
Expand Down Expand Up @@ -415,7 +415,7 @@ def dcsbm_hypergraph(k1, k2, g1, g2, omega, seed=None):
r = random.random()
try:
j += np.random.geometric(p)
except ZeroDivisionError:
except ValueError:
j = np.inf
if j < len(community2_nodes[group2]):
v = community2_nodes[group2][j]
Expand Down

0 comments on commit e7fa29f

Please sign in to comment.