mlbgame
mlbgame copied to clipboard
Add Current Situational Data
Add data such as the current batter and pitcher.
Could possibly be added to the Overview class.
@trevor-viljoen I don't really have time to do this, would you like to take a look at this?
I believe Trevor is working on this, this was a feature he requested in the scoreboard Slack channel
@panzarino I'll try to get to it this week. I spent most of the day trying to refactor stats.py to fix the code climate findings. I think I have a solution, but there are a couple bugs I'm trying to track down with it.
@ajbowler @panzarino @bfox6 I've got code for this I will be working into a PR. It will get all elements and attributes from the linescore.xml files and make them available as python objects.
This will include the linescore, home_runs, situational_data (see below), winning_pitcher, losing_pitcher, save_pitcher, game_media, and reviews (how many challenges remain).
situational_tags = ['current_batter', 'current_ondeck', 'current_inhole',
'due_up_batter', 'due_up_ondeck', 'due_up_inhole',
'current_pitcher', 'opposing_pitcher']