From 10a99f2f54c2aa10fe8d5305a5f6494a058079b1 Mon Sep 17 00:00:00 2001 From: Mark Bonicillo Date: Tue, 2 Apr 2024 12:01:46 -0700 Subject: [PATCH] Run formatter --- .github/workflows/ci.yml | 2 +- hypernetx/classes/hypergraph.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca58c630..d334589a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Run tests, linters +name: Run tests, linters, formatters on: push: diff --git a/hypernetx/classes/hypergraph.py b/hypernetx/classes/hypergraph.py index 1b904ccf..a8f3c175 100644 --- a/hypernetx/classes/hypergraph.py +++ b/hypernetx/classes/hypergraph.py @@ -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))) @@ -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(