Skip to content

Commit

Permalink
FEAT: Continue work on incorporating index matrix into expected loss …
Browse files Browse the repository at this point in the history
…model.
  • Loading branch information
genedan committed Jan 8, 2025
1 parent daca3b5 commit 4bf9cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion faslr/index/index_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self):
class IndexMatrixWidget(QWidget):
def __init__(
self,
matrix: DataFrame
matrix: DataFrame = None
):
super().__init__()

Expand Down
8 changes: 6 additions & 2 deletions faslr/methods/expected_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
from faslr.index import (
calculate_index_factors,
IndexInventory,
IndexMatrixModel,
IndexMatrixView,
IndexTableModel,
IndexTableView
)
Expand Down Expand Up @@ -390,9 +392,11 @@ def __init__(
self.index_view = IndexTableView()
self.index_view.setModel(self.index_model)

self.dummytab = QWidget()
self.matrix_preview = IndexMatrixView()
self.matrix_model = IndexMatrixModel(matrix=None)

self.index_preview.addTab(self.index_view, "Column")
self.index_preview.addTab(self.dummytab, "Matrix")
self.index_preview.addTab(self.matrix_preview, "Matrix")

index_view_layout.addWidget(self.index_preview)
index_view_container.setContentsMargins(
Expand Down

0 comments on commit 4bf9cda

Please sign in to comment.