Skip to content

Commit 6f9dbe8

Browse files
committed
linting
1 parent 7ee58b2 commit 6f9dbe8

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

graphconstructor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .graph import Graph
2-
from .pipeline import Pipeline
32
from .importers import from_ann, from_csr, from_dense, from_knn
3+
from .pipeline import Pipeline
44
from .types import CSRMatrix, MatrixMode
55

66

graphconstructor/adapters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from typing import Optional
33
import numpy as np
44
from numpy.typing import NDArray
5-
65
from .types import MatrixMode
7-
from .utils import _validate_square_matrix, _to_numpy
6+
from .utils import _to_numpy, _validate_square_matrix
87

98

109
@dataclass

graphconstructor/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from dataclasses import dataclass
22
from typing import Iterable, Literal, Sequence
3-
43
import numpy as np
54
import pandas as pd
65
import scipy.sparse as sp
76

7+
88
SymOp = Literal["max", "min", "average"]
99

1010

@@ -104,7 +104,8 @@ def from_edges(
104104

105105
if weights is None:
106106
data = np.ones_like(rows, dtype=float)
107-
weighted_eff = False if not weighted else False if weights is None else True # edges w/o weights → unweighted
107+
# edges w/o weights → unweighted
108+
weighted_eff = False if not weighted else False if weights is None else True
108109
else:
109110
data = np.asarray(weights, dtype=float)
110111
if data.shape[0] != rows.shape[0]:

graphconstructor/operators/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .disparity import DisparityFilter
33
from .doubly_stochastic import DoublyStochastic
44
from .knn_selector import KNNSelector
5-
from .locally_adaptive_sparsification import LocallyAdaptiveSparsification
5+
from .locally_adaptive_sparsification import LocallyAdaptiveSparsification
66
from .marginal_likelihood import MarginalLikelihoodFilter
77
from .noise_corrected import NoiseCorrected
88
from .weight_threshold import WeightThreshold

graphconstructor/operators/doubly_stochastic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from dataclasses import dataclass
22
import numpy as np
3-
import scipy.sparse as sp
43
from ..graph import Graph
54
from .base import GraphOperator
65

0 commit comments

Comments
 (0)