Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Apr 2, 2024
1 parent 10c259a commit 10a99f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests, linters
name: Run tests, linters, formatters

on:
push:
Expand Down
6 changes: 3 additions & 3 deletions hypernetx/classes/hypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def incidence_matrix(self, index=False, weights=False):
"""
e, n = self._state_dict["data"].T
if weights == True:
data = self._E.dataframe['weight']
data = self._E.dataframe["weight"]
else:
data = np.ones(len(e)).astype(int)
mat = csr_matrix((data, (n, e)))
Expand Down Expand Up @@ -1851,8 +1851,8 @@ def from_incidence_matrix(
edges = mat.col
nodes = mat.row
weights = mat.data
df = pd.DataFrame({'edges':edges,'nodes':nodes,'weights':weights})
return Hypergraph(df,cell_weight_col='weights',name=name,**kwargs)
df = pd.DataFrame({"edges": edges, "nodes": nodes, "weights": weights})
return Hypergraph(df, cell_weight_col="weights", name=name, **kwargs)

@classmethod
def from_numpy_array(
Expand Down

0 comments on commit 10a99f2

Please sign in to comment.