Skip to content

Commit

Permalink
FEAT: Add matrix argument to IndexMatrixModel default.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 9, 2025
1 parent 5d13eaf commit d95e39b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions faslr/index/index_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def index_matrix(
class IndexMatrixModel(FAbstractTableModel):
def __init__(
self,
matrix: DataFrame
matrix: DataFrame = None
):
super().__init__()

Expand Down Expand Up @@ -117,7 +117,13 @@ def __init__(
):
super().__init__()

self.matrix = matrix
if matrix:

self.matrix = matrix

else:

self.matrix = pd.DataFrame()

self.layout = QVBoxLayout()

Expand Down

0 comments on commit d95e39b

Please sign in to comment.