From a4d59cf2efe32022ffe93ec39591d375dd8f54c4 Mon Sep 17 00:00:00 2001 From: Gene Dan Date: Thu, 9 Jan 2025 19:36:38 -0600 Subject: [PATCH] FEAT: Incorporate FIndex in index matrix demo. --- faslr/demos/index/index_matrix_demo.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/faslr/demos/index/index_matrix_demo.py b/faslr/demos/index/index_matrix_demo.py index 73297df..1b622e3 100644 --- a/faslr/demos/index/index_matrix_demo.py +++ b/faslr/demos/index/index_matrix_demo.py @@ -7,7 +7,7 @@ import sys from faslr.index import ( - index_matrix, + FIndex, IndexMatrixWidget ) @@ -25,19 +25,15 @@ if TYPE_CHECKING: from pandas import DataFrame -rate_factors = [ - x + 1 for x in XYZ_RATE_CHANGES -] - -df_rl: DataFrame = index_matrix( - years=XYZ_SAMPLE_YEARS, - index=rate_factors +index = FIndex( + origin=XYZ_SAMPLE_YEARS, + changes=XYZ_RATE_CHANGES ) app = QApplication(sys.argv) index_matrix_widget = IndexMatrixWidget( - matrix=df_rl + matrix=index.matrix ) index_matrix_widget.setWindowTitle("Index Matrix Demo")