GithubHelp home page GithubHelp logo

colinbrislawn / slankey_blaseball_team_timelines Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meserach/slankey_blaseball_team_timelines

0.0 1.0 0.0 83 KB

A visualiser for Blaseball teams over time as a Sankey plot, using Python, the Plotly library and the SIBR Datablase

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

slankey_blaseball_team_timelines's Introduction

Slankey_Blaseball_Team_Timelines

A visualiser for Blaseball teams over time as a Sankey plot, using Python, the Plotly library and the SIBR Datablase

INTRO

This is a tool that uses data from the Society for Internet Blaseball Research's Datablase stack to visualise timelines of players and teams over time. The intent is it should be possible to create views of any team and any time span, in order to entertain, inform and educate people on Blaseball history. It is written in Python 3.9 or so, utilises the Plotly library extensively, has a lil bit of SQL in there to get data out of the Datablase, and is the first coding project I've done that I've ever felt like someone else might be interested in. Accordingly, expect Bad Code and Data Crimes.

If you don't know what Blaseball is, my goodness I can't possibly explain here. This video is good: https://www.youtube.com/watch?v=Y5t8DwnDE1k , it's what got me into this colossal but beautiful waste of time and emotional energy.

I'm Meserach, because I thought that was cool when I was like 17 and I was too lazy to change it since. There's some chance people may be collaborating on this with me soon, and if they do they should introduce themselves in a new version of this I guess?

USAGE NOTES

You'll need all the dependencies installed first, of course. Right now that's Python 3 ( I'm using the current latest which is 3.9 as of committing ) and the Plotly library ( pip install plotly ).

Right now, you need to find the line 153 in "main.py", change the team nickname there to the one you want to see, and then run the code.

You can run the code using the command "python main.py" or "py main.py" (depending on your python installation) via command line or run it inside an IDE like PyCharm.

If it works the Sankey plot will automatically open in your default browser.

The plot displays the lineup, rotation, bullpen and bench of the chosen team over time, including changes to the ordering due to e.g. Reverb. It also shows timelines for any player who has ever been on the chose team, however briefyl: their careers outside the team in question are shown as lines at the bottom of the plot.

LIMITATIONS

Right now it displays one (1) team, and all the players who have ever been on that team, however briefly. It's also locked at present to displying the whole history of the IBL (Internet Blaseball League).

slankey_blaseball_team_timelines's People

Contributors

colinbrislawn avatar meserach avatar vcap51 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.