From 4db3ba66290db967fc064fd0bc5eef9fb0b72aba Mon Sep 17 00:00:00 2001 From: Sakimori Date: Mon, 1 Sep 2025 12:01:15 -0400 Subject: [PATCH] added extra step to filename stripping --- testanalysis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testanalysis.py b/testanalysis.py index 58f62c8..e91d121 100644 --- a/testanalysis.py +++ b/testanalysis.py @@ -26,7 +26,9 @@ def linesplit(line): dm = int(dm) pw, fname = line.split(" s ") pw = float(pw) - fname = fname.strip().removesuffix("_injected") + fname = fname.strip().removesuffix(".fil").removesuffix("_injected") + if fname.startswith("/"): + fname = fname.split("/")[-1] return (dm, pw, fname) def updateDic(lines, dic):