|
@@ -6,14 +6,14 @@ import numpy as np
|
|
|
EXTRACTION_PARAMS = {
|
|
EXTRACTION_PARAMS = {
|
|
|
"-a": ("Small Paste Size (Blocks)", int, np.arange(1,7)),
|
|
"-a": ("Small Paste Size (Blocks)", int, np.arange(1,7)),
|
|
|
"-p": ("Large Paste Size (Blocks)", lambda x: int(x.split(".", 1)[0]),
|
|
"-p": ("Large Paste Size (Blocks)", lambda x: int(x.split(".", 1)[0]),
|
|
|
- np.arange(2,8)),
|
|
|
|
|
|
|
+ np.arange(2,11)),
|
|
|
"-l": ("Low Activity Threshold (k/s)", lambda x: float(x) - 0.001,
|
|
"-l": ("Low Activity Threshold (k/s)", lambda x: float(x) - 0.001,
|
|
|
- np.arange(1,7)),
|
|
|
|
|
- "-i": ("High Activity Threshold (k/s)", lambda x: float(x) + 0.001,
|
|
|
|
|
- [1.5, 2, 2.5, 3, 3.5, 4, 4.5]),
|
|
|
|
|
- "-b": ("Lookback (s)", int, np.arange(1,7)),
|
|
|
|
|
- "-s": ("Sample Size (Count)", int, [100, 150, 200, 300, 400, 500, 600]),
|
|
|
|
|
- "-m": ("Minimum Number of Samples (Samples/Tag)", int, [5, 10, 15, 20, 25])
|
|
|
|
|
|
|
+ np.arange(0.5, 7, 0.5)),
|
|
|
|
|
+ "-i": ("High Activity Threshold (k/s)", lambda x: float(x) + 0.01,
|
|
|
|
|
+ [1.5, 2, 2.5, 2.75, 3, 3.5, 4, 4.5, 5, 6, 7]),
|
|
|
|
|
+ "-b": ("Lookback (s)", float, np.arange(1, 7.25, 0.25)),
|
|
|
|
|
+ "-s": ("Sample Size (Count)", int, [100, 150, 175, 200, 300, 400, 500, 600, 700]),
|
|
|
|
|
+ "-m": ("Minimum Number of Samples (Samples/Tag)", int, [5, 10, 15, 17, 20, 25])
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
def main(options: list):
|
|
def main(options: list):
|
|
@@ -151,7 +151,7 @@ def parse_args(args: list):
|
|
|
parser.add_argument('-v', '--verbose', action="count", default=0,
|
|
parser.add_argument('-v', '--verbose', action="count", default=0,
|
|
|
help='Show more information')
|
|
help='Show more information')
|
|
|
parser.add_argument('-c', '--compression', default="bz2",
|
|
parser.add_argument('-c', '--compression', default="bz2",
|
|
|
- choices=["bz2", "gzip", "lzma", "zipfile", None],
|
|
|
|
|
|
|
+ choices=["bz2", "gzip", "lzma", "zipfile", "None"],
|
|
|
help='Compression algorithm to use. (default: bzip2)')
|
|
help='Compression algorithm to use. (default: bzip2)')
|
|
|
try:
|
|
try:
|
|
|
import seaborn
|
|
import seaborn
|
|
@@ -173,6 +173,8 @@ def parse_args(args: list):
|
|
|
elif unknown:
|
|
elif unknown:
|
|
|
parser.print_help()
|
|
parser.print_help()
|
|
|
exit(2)
|
|
exit(2)
|
|
|
|
|
+ if res.compression == "None":
|
|
|
|
|
+ vars(res)["compression"] = None
|
|
|
return res
|
|
return res
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|