most of requested changes
This commit is contained in:
parent
4387da07b0
commit
56601f1e0d
5 changed files with 7 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
||||||
'''
|
'''
|
||||||
A generic file used for turning a json into a compressed version of itself (minimal whitespaces).
|
A generic file used for turning a json into a "clean" version of itself (human-friendly whitespace).
|
||||||
Compressed files are useful for lowering the amount of data sent.
|
Clean files are useful for human reading and dev debugging.
|
||||||
|
|
||||||
|
|
||||||
Usage: python clean_json.py [infile rel path] [outfile rel path]
|
Usage: python clean_json.py [infile rel path] [outfile rel path]
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'''
|
'''
|
||||||
A generic file used for turning a json into a "clean" version of itself (human-friendly whitespace).
|
A generic file used for turning a json into a compressed version of itself (minimal whitespaces).
|
||||||
Clean files are useful for human reading and dev debugging.
|
Compressed files are useful for lowering the amount of data sent.
|
||||||
|
|
||||||
Usage: python compress_json.py [infile rel path] [outfile rel path]
|
Usage: python compress_json.py [infile rel path] [outfile rel path]
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
"""
|
|
||||||
An old file.
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
with open("sets.txt", "r") as setsFile:
|
|
||||||
sets_split = (x.split("'", 2)[1][2:] for x in setsFile.read().split("a href=")[1:])
|
|
||||||
with open("sets_list.txt", "w") as outFile:
|
|
||||||
outFile.write("\n".join(sets_split))
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
Plots the dps of all weapons on a neat graph. Used to generate graphics for dps_vis.
|
Generates data for dps_vis
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
|
@ -11,6 +11,7 @@ import json
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import base64
|
import base64
|
||||||
|
import argparse
|
||||||
|
|
||||||
infile, outfile = sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else sys.argv[1]
|
infile, outfile = sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else sys.argv[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue