nesticot commited on
Commit
52c9b16
·
verified ·
1 Parent(s): 64b307b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -39
app.py CHANGED
@@ -530,18 +530,18 @@ def server(input, output, session):
530
  { "title": "Team", "field": "pitcher_team", "width": 100, "headerFilter":"input" ,"frozen":True,},
531
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
532
  { "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
533
- { "title": "Pitches", "field": "count", "width": 100 , "headerFilter":"input","contextMenu":True},
534
- { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100, "headerFilter":"input"},
535
- { "title": "LHH%", "field": "lhh_percent_formatted", "width": 100, "headerFilter":"input"},
536
- { "title": "RHH%", "field": "rhh_percent_formatted", "width": 100, "headerFilter":"input"},
537
- { "title": "Velocity", "field": "start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
538
- { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
539
- { "title": "iVB", "field": "ivb_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
540
- { "title": "HB", "field": "hb_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
541
- { "title": "RelH", "field": "release_pos_z_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
542
- { "title": "RelS", "field": "release_pos_x_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
543
- { "title": "Extension", "field": "extension_formatted", "width": 125, "headerFilter":"input", "formatter":"textarea" },
544
- { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" }
545
  ]
546
 
547
 
@@ -705,18 +705,18 @@ def server(input, output, session):
705
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
706
  { "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
707
  { "title": "Date", "field": "game_date", "width": 100, "headerFilter":"input" ,"frozen":True,},
708
- { "title": "Pitches", "field": "count", "width": 100 , "headerFilter":"input"},
709
- { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100, "headerFilter":"input"},
710
- { "title": "LHH%", "field": "lhh_percent_formatted", "width": 100, "headerFilter":"input"},
711
- { "title": "RHH%", "field": "rhh_percent_formatted", "width": 100, "headerFilter":"input"},
712
- { "title": "Velocity", "field": "start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
713
- { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
714
- { "title": "iVB", "field": "ivb_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
715
- { "title": "HB", "field": "hb_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
716
- { "title": "RelH", "field": "release_pos_z_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
717
- { "title": "RelS", "field": "release_pos_x_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
718
- { "title": "Extension", "field": "extension_formatted", "width": 125, "headerFilter":"input", "formatter":"textarea" },
719
- { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" }
720
  ]
721
 
722
 
@@ -875,20 +875,20 @@ def server(input, output, session):
875
  { "title": "Team", "field": "pitcher_team", "width": 90, "headerFilter":"input" ,"frozen":True,},
876
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
877
  { "title": "New?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
878
- { "title": "Pitches", "field": "count", "width": 100 , "headerFilter":"input"},
879
- { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100, "headerFilter":"input"},
880
- { "title": "LHH%", "field": "lhh_percent_formatted", "width": 90, "headerFilter":"input"},
881
- { "title": "RHH%", "field": "rhh_percent_formatted", "width": 90, "headerFilter":"input"},
882
- { "title": "Velocity", "field": "start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
883
- { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
884
- { "title": "iVB", "field": "ivb_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
885
- { "title": "HB", "field": "hb_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
886
- { "title": "RelH", "field": "release_pos_z_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
887
- { "title": "RelS", "field": "release_pos_x_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
888
- { "title": "Extension", "field": "extension_formatted", "width": 125, "headerFilter":"input", "formatter":"textarea" },
889
- { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "headerFilter":"input", "formatter":"textarea" },
890
- { "title": "2024 tjStuff+", "field": "tj_stuff_plus_old", "width": 100, "headerFilter":"input", "formatter":"textarea" },
891
- { "title": "Δ", "field": "tj_stuff_plus_diff", "width": 100, "headerFilter":"input", "formatter":"textarea" }
892
  ]
893
 
894
  df_merge = df_merge.filter(pl.col('count')>=int(input.pitches_tjstuff_min()))
@@ -1078,7 +1078,7 @@ def server(input, output, session):
1078
  # { "title": "RelH", "field": "release_pos_z_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
1079
  # { "title": "RelS", "field": "release_pos_x_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
1080
  # { "title": "Extension", "field": "extension_formatted", "width": 125, "headerFilter":"input", "formatter":"textarea" },
1081
- { "title": "tjStuff+", "field": "tj_stuff_plus", "width": 250, "headerFilter":"input", "formatter":"textarea" },
1082
  # { "title": "2024 tjStuff+", "field": "tj_stuff_plus_old", "width": 100, "headerFilter":"input", "formatter":"textarea" },
1083
  # { "title": "Δ", "field": "tj_stuff_plus_diff", "width": 100, "headerFilter":"input", "formatter":"textarea" }
1084
  ]
 
530
  { "title": "Team", "field": "pitcher_team", "width": 100, "headerFilter":"input" ,"frozen":True,},
531
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
532
  { "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
533
+ { "title": "Pitches", "field": "count", "width": 100 },
534
+ { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100},
535
+ { "title": "LHH%", "field": "lhh_percent_formatted", "width": 100},
536
+ { "title": "RHH%", "field": "rhh_percent_formatted", "width": 100},
537
+ { "title": "Velocity", "field": "start_speed_formatted", "width": 100,"formatter":"textarea" },
538
+ { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "formatter":"textarea" },
539
+ { "title": "iVB", "field": "ivb_formatted", "width": 100,"formatter":"textarea" },
540
+ { "title": "HB", "field": "hb_formatted", "width": 100, "formatter":"textarea" },
541
+ { "title": "RelH", "field": "release_pos_z_formatted", "width": 100, "formatter":"textarea" },
542
+ { "title": "RelS", "field": "release_pos_x_formatted", "width": 100, "formatter":"textarea" },
543
+ { "title": "Extension", "field": "extension_formatted", "width": 125, "formatter":"textarea" },
544
+ { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "formatter":"textarea" }
545
  ]
546
 
547
 
 
705
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
706
  { "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
707
  { "title": "Date", "field": "game_date", "width": 100, "headerFilter":"input" ,"frozen":True,},
708
+ { "title": "Pitches", "field": "count", "width": 100 },
709
+ { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100},
710
+ { "title": "LHH%", "field": "lhh_percent_formatted", "width": 100},
711
+ { "title": "RHH%", "field": "rhh_percent_formatted", "width": 100},
712
+ { "title": "Velocity", "field": "start_speed_formatted", "width": 100,"formatter":"textarea" },
713
+ { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "formatter":"textarea" },
714
+ { "title": "iVB", "field": "ivb_formatted", "width": 100,"formatter":"textarea" },
715
+ { "title": "HB", "field": "hb_formatted", "width": 100, "formatter":"textarea" },
716
+ { "title": "RelH", "field": "release_pos_z_formatted", "width": 100, "formatter":"textarea" },
717
+ { "title": "RelS", "field": "release_pos_x_formatted", "width": 100, "formatter":"textarea" },
718
+ { "title": "Extension", "field": "extension_formatted", "width": 125, "formatter":"textarea" },
719
+ { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "formatter":"textarea" }
720
  ]
721
 
722
 
 
875
  { "title": "Team", "field": "pitcher_team", "width": 90, "headerFilter":"input" ,"frozen":True,},
876
  { "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
877
  { "title": "New?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
878
+ { "title": "Pitches", "field": "count", "width": 100 },
879
+ { "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100},
880
+ { "title": "LHH%", "field": "lhh_percent_formatted", "width": 100},
881
+ { "title": "RHH%", "field": "rhh_percent_formatted", "width": 100},
882
+ { "title": "Velocity", "field": "start_speed_formatted", "width": 100,"formatter":"textarea" },
883
+ { "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "formatter":"textarea" },
884
+ { "title": "iVB", "field": "ivb_formatted", "width": 100,"formatter":"textarea" },
885
+ { "title": "HB", "field": "hb_formatted", "width": 100, "formatter":"textarea" },
886
+ { "title": "RelH", "field": "release_pos_z_formatted", "width": 100, "formatter":"textarea" },
887
+ { "title": "RelS", "field": "release_pos_x_formatted", "width": 100, "formatter":"textarea" },
888
+ { "title": "Extension", "field": "extension_formatted", "width": 125, "formatter":"textarea" },
889
+ { "title": "tjStuff+", "field": "tj_stuff_plus_formatted", "width": 100, "formatter":"textarea" }
890
+ { "title": "2024 tjStuff+", "field": "tj_stuff_plus_old", "width": 100, "formatter":"textarea" },
891
+ { "title": "Δ", "field": "tj_stuff_plus_diff", "width": 100, "formatter":"textarea" }
892
  ]
893
 
894
  df_merge = df_merge.filter(pl.col('count')>=int(input.pitches_tjstuff_min()))
 
1078
  # { "title": "RelH", "field": "release_pos_z_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
1079
  # { "title": "RelS", "field": "release_pos_x_formatted", "width": 80, "headerFilter":"input", "formatter":"textarea" },
1080
  # { "title": "Extension", "field": "extension_formatted", "width": 125, "headerFilter":"input", "formatter":"textarea" },
1081
+ { "title": "tjStuff+", "field": "tj_stuff_plus", "width": 250,"formatter":"textarea" },
1082
  # { "title": "2024 tjStuff+", "field": "tj_stuff_plus_old", "width": 100, "headerFilter":"input", "formatter":"textarea" },
1083
  # { "title": "Δ", "field": "tj_stuff_plus_diff", "width": 100, "headerFilter":"input", "formatter":"textarea" }
1084
  ]