moved file declarations to top of script
This commit is contained in:
parent
060d894d6c
commit
40e497297d
|
@ -11,6 +11,9 @@ import pandas as pd
|
|||
logger = logging.getLogger(__name__)
|
||||
logging.basicConfig(level=logging.INFO) #change for debug prints
|
||||
|
||||
INJECTION_FILE = os.path.join(".","out","2025-07-31T17-25-54.txt")
|
||||
DETECTION_FILE = os.path.join(".","out","plotOut.txt")
|
||||
|
||||
def linesplit(line):
|
||||
"""
|
||||
Splits line of file into useful components.
|
||||
|
@ -49,14 +52,14 @@ detectedDic = {
|
|||
}
|
||||
|
||||
#load injected data into dataframe
|
||||
with open(os.path.join(".","out","2025-07-31T17-25-54.txt"), "r") as file:
|
||||
with open(INJECTION_FILE, "r") as file:
|
||||
lines = file.readlines()
|
||||
updateDic(lines, injectedDic)
|
||||
|
||||
injections = pd.DataFrame(data=injectedDic) #this is our main object for injection data
|
||||
|
||||
#load detection data into dataframe
|
||||
with open(os.path.join(".","out","plotOut.txt"), "r") as file:
|
||||
with open(DETECTION_FILE, "r") as file:
|
||||
lines = file.readlines()
|
||||
updateDic(lines, detectedDic)
|
||||
|
||||
|
|
Loading…
Reference in a new issue