Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Sep 24, 2024
1 parent ad081ee commit aecb125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xgi/generators/uniform.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def uniform_HSBM(n, m, p, sizes, seed=None):
if len(set(np.shape(p))) != 1:
raise XGIError("'p' must be a square tensor.")
if np.max(p) > 1 or np.min(p) < 0:
raise XGIError("Entries of 'p' not in [0,1].")
raise XGIError("Entries of 'p' not in [0, 1].")
if np.sum(sizes) != n:
raise XGIError("Sum of sizes does not match n")

Expand Down Expand Up @@ -318,7 +318,7 @@ def uniform_erdos_renyi_hypergraph(n, m, p, p_type="prob", multiedges=False, see
raise XGIError("Invalid p_type!")

if q > 1 or q < 0:
raise XGIError("Probability not in [0,1].")
raise XGIError("Probability not in [0, 1].")

if multiedges:
max_index = n**m
Expand Down

0 comments on commit aecb125

Please sign in to comment.