-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
placeholder for two analysis scripts:
- single game summary graphic - single player summary graphic
- Loading branch information
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Make a single game summary graphic. | ||
""" | ||
|
||
import argparse | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
|
||
def getArgs(): | ||
""" | ||
Get command line arguments. | ||
""" | ||
|
||
parser = argparse.ArgumentParser(description="Make a single-game summary \ | ||
graphic.") | ||
parser.add_argument('gameID', type=int, action='store', default=None, | ||
help='gameID number to analyze.') | ||
|
||
return parser.parse_args() | ||
|
||
|
||
def main(): | ||
""" | ||
main routine | ||
""" | ||
|
||
args = getArgs() | ||
|
||
# now do other stuff | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Make a single player summary graphic. | ||
""" | ||
|
||
import argparse | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
|
||
def getArgs(): | ||
""" | ||
Get command line arguments. | ||
""" | ||
|
||
parser = argparse.ArgumentParser(description="Make a single-player summary \ | ||
graphic.") | ||
parser.add_argument('playerID', type=int, action='store', default=None, | ||
help='playerID number to analyze.') | ||
|
||
return parser.parse_args() | ||
|
||
|
||
def main(): | ||
""" | ||
main routine | ||
""" | ||
|
||
args = getArgs() | ||
|
||
# now do other stuff | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |