Skip to content

Commit d95e39b

Browse files
committed
FEAT: Add matrix argument to IndexMatrixModel default.
1 parent 5d13eaf commit d95e39b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

faslr/index/index_matrix.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def index_matrix(
7171
class IndexMatrixModel(FAbstractTableModel):
7272
def __init__(
7373
self,
74-
matrix: DataFrame
74+
matrix: DataFrame = None
7575
):
7676
super().__init__()
7777

@@ -117,7 +117,13 @@ def __init__(
117117
):
118118
super().__init__()
119119

120-
self.matrix = matrix
120+
if matrix:
121+
122+
self.matrix = matrix
123+
124+
else:
125+
126+
self.matrix = pd.DataFrame()
121127

122128
self.layout = QVBoxLayout()
123129

0 commit comments

Comments
 (0)