most of requested changes

This commit is contained in:
ferricles 2022-06-25 00:19:55 -07:00
parent 4387da07b0
commit 56601f1e0d
5 changed files with 7 additions and 14 deletions

View file

@ -1,6 +1,7 @@
'''
A generic file used for turning a json into a compressed version of itself (minimal whitespaces).
Compressed files are useful for lowering the amount of data sent.
A generic file used for turning a json into a "clean" version of itself (human-friendly whitespace).
Clean files are useful for human reading and dev debugging.
Usage: python clean_json.py [infile rel path] [outfile rel path]
'''

View file

@ -1,6 +1,6 @@
'''
A generic file used for turning a json into a "clean" version of itself (human-friendly whitespace).
Clean files are useful for human reading and dev debugging.
A generic file used for turning a json into a compressed version of itself (minimal whitespaces).
Compressed files are useful for lowering the amount of data sent.
Usage: python compress_json.py [infile rel path] [outfile rel path]
'''

View file

@ -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))

View file

@ -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

View file

@ -11,6 +11,7 @@ import json
import sys
import os
import base64
import argparse
infile, outfile = sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else sys.argv[1]