Skip to content

Commit 9f429a5

Browse files
committed
Cleanup
1 parent 2b90044 commit 9f429a5

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

src/diffupy/matrix.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@
1717
'LaplacianMatrix',
1818
]
1919

20+
2021
class Matrix:
2122
"""Matrix class."""
2223

23-
def __init__(self,
24-
mat=None,
25-
rows_labels=None,
26-
cols_labels=None,
27-
graph=None,
28-
quadratic=False,
29-
name='',
30-
init_value=None,
31-
**kwargs):
32-
24+
def __init__(
25+
self,
26+
mat=None,
27+
rows_labels=None,
28+
cols_labels=None,
29+
graph=None,
30+
quadratic=False,
31+
name='',
32+
init_value=None,
33+
**kwargs
34+
):
3335
"""Initialize matrix."""
3436

3537
if isinstance(rows_labels, list) or isinstance(rows_labels, set) or isinstance(rows_labels, np.ndarray):
@@ -123,7 +125,9 @@ def validate_labels(self):
123125
self.rows_labels = decode_labels(self.rows_labels)
124126
if len(self.rows_labels) != len(set(self.rows_labels)):
125127
dup = get_repeated_labels(self.rows_labels)
126-
raise Exception('Duplicate row labels in Matrix. /n duplicated number: {} /n duplicated list: {}'.format(len(dup), dup))
128+
raise Exception(
129+
'Duplicate row labels in Matrix. /n duplicated number: {} /n duplicated list: {}'.format(len(dup),
130+
dup))
127131

128132
if hasattr(self, '_cols_labels'):
129133
self._cols_labels = decode_labels(self.cols_labels)

0 commit comments

Comments
 (0)