-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (21 loc) · 833 Bytes
/
main.py
File metadata and controls
30 lines (21 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import argparse
import sys
sys.path.append("data_processing")
sys.path.append("feature_processing")
sys.path.append("utils")
from initial_data_processing import process_file
from config import *
def parser_setup():
parser = argparse.ArgumentParser(description="Data parser and feature extractor")
parser.add_argument('input_file', type=str,
help='A required argument containing input file for the programme')
parser.add_argument('--plot', action='store_true',
help='A boolean switch for plotting transformations')
parser.add_argument('--debugplot', action='store_true',
help='A boolean switch for plotting while debugging')
return parser
def main():
parser = parser_setup()
process_file(parser)
if __name__ == "__main__":
main()