Skip to content

Commit

Permalink
FEAT: Continue work on ratio selection widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 31, 2025
1 parent b8932c9 commit 0997799
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion faslr/demos/fratioselection_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

set_sample_db()

years = [x for x in range(2000,2011)]

ratios = {}
for year in years:
ratios[str(year)] = [.5 for x in years]


ratios_df = pd.DataFrame(data=ratios, index=years)

test_averages = pd.DataFrame(
data=[
[True, "All-year Straight", "Straight", "9"],
Expand All @@ -25,7 +34,10 @@

app = QApplication(sys.argv)

fratio_selection_widget = FRatioSelectionWidget(averages=test_averages)
fratio_selection_widget = FRatioSelectionWidget(
averages=test_averages,
ratios=ratios_df
)

fratio_selection_widget.show()

Expand Down

0 comments on commit 0997799

Please sign in to comment.