summaryrefslogtreecommitdiff
path: root/bin/eval-outlier-removal.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-05-28 15:44:08 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-05-28 15:44:08 +0200
commitca63a62663dbbefc854e7ed629e35cd06defb637 (patch)
treec33abba68901425b123f3f1e2cc94f12e0026cfc /bin/eval-outlier-removal.py
parent52b214e4566bbfc4458240ed130b7320beb12bfb (diff)
bin: rename opts to opt, as it is a dict
Diffstat (limited to 'bin/eval-outlier-removal.py')
-rwxr-xr-xbin/eval-outlier-removal.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/eval-outlier-removal.py b/bin/eval-outlier-removal.py
index d8b0e9d..14f0e60 100755
--- a/bin/eval-outlier-removal.py
+++ b/bin/eval-outlier-removal.py
@@ -5,7 +5,7 @@ import re
import sys
from dfatool.dfatool import PTAModel, RawData, pta_trace_to_aggregate
-opts = {}
+opt = dict()
def model_quality_table(result_lists, info_list):
@@ -63,17 +63,17 @@ if __name__ == "__main__":
for option, parameter in raw_opts:
optname = re.sub(r"^--", "", option)
- opts[optname] = parameter
+ opt[optname] = parameter
- if "ignored-trace-indexes" in opts:
+ if "ignored-trace-indexes" in opt:
ignored_trace_indexes = list(
- map(int, opts["ignored-trace-indexes"].split(","))
+ map(int, opt["ignored-trace-indexes"].split(","))
)
if 0 in ignored_trace_indexes:
print("[E] arguments to --ignored-trace-indexes start from 1")
- if "discard-outliers" in opts:
- discard_outliers = float(opts["discard-outliers"])
+ if "discard-outliers" in opt:
+ discard_outliers = float(opt["discard-outliers"])
except getopt.GetoptError as err:
print(err)