mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-29 03:06:35 -05:00
9a3e73779d
This fixes the bug where compoundSets/Maps of refs are ordered by their type.Ref's Ref, rather than their type.Ref's TargetRef.
pitchmap
This directory contains a pipeline of tools that combine to generate a heatmap of locations for major league baseball pitchers.
The source data comes from:
http://gd2.mlb.com/components/game/mlb/
To use:
npm install
mkdir /tmp/mlb_data
node fetch-urls.js --url="http://gd2.mlb.com/components/game/mlb/year_2015/month_05/day_07/" --print="gid.*pitcher.*xml$|gid.*inning_[0-9]*\.xml" --reject="\/year_[0-9]+\/pitchers\/|\/year_[0-9]+\/mobile\/|\/year_[0-9]+\/media\/|\/year_[0-9]+\/batters\/|\/premium\/|\/notifications\/|\/pitching_staff\/|\/media\/|\/batters\/|\/[^\/]+\.[^\/]+$" > /tmp/mlb_data/urls.txt
cd /tmp/mlb_data
wget -e robots=off -x -i urls.txt
<noms>/clients/xml_importer/xml_importer -fs=/tmp/mlb_data -ds=mlb/xml gd2.mlb.com/
<noms>/clients/pitchmap/index/index -fs=/tmp/mlb_data -input-ds=mlb/xml -output-ds=mlb/heatmap