summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-12 11:31:35 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-12 11:31:35 +0100
commit8eb5860bbf5af2ecbad05fd014b79d9f3a5489f6 (patch)
tree73e0f0db9a15e11d9f098ac31c45f9b6bf6159a7
parentf77ac2e4422c3cc30aa6071167f10753e3ae2fb2 (diff)
Move --force-tree definition to cli.py
-rwxr-xr-xbin/analyze-archive.py5
-rwxr-xr-xbin/analyze-kconfig.py5
-rwxr-xr-xbin/analyze-log.py5
-rw-r--r--lib/cli.py5
4 files changed, 5 insertions, 15 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 9cdf42c..9414d1a 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -254,11 +254,6 @@ if __name__ == "__main__":
type=str,
help="Perform substate analysis",
)
- parser.add_argument(
- "--force-tree",
- action="store_true",
- help="Build regression tree without checking whether static/analytic functions are sufficient.",
- )
parser.add_argument("measurement", nargs="+")
args = parser.parse_args()
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index 716cab4..bdfde8f 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -71,11 +71,6 @@ def main():
help="Show Kconfig symbols which are only present in a single configuration. Must be used with an experiment result directory.",
)
parser.add_argument(
- "--force-tree",
- action="store_true",
- help="Build decision tree without checking for analytic functions first. Use this for large kconfig files.",
- )
- parser.add_argument(
"--skip-param-stats",
action="store_true",
help="Do not compute param stats that are required for RMT. Use this for large kconfig files.",
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index f3e819a..65f3b44 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -37,11 +37,6 @@ def main():
)
dfatool.cli.add_standard_arguments(parser)
parser.add_argument(
- "--force-tree",
- action="store_true",
- help="Build decision tree without checking for analytic functions first",
- )
- parser.add_argument(
"--export-model", metavar="FILE", type=str, help="Export JSON model to FILE"
)
parser.add_argument(
diff --git a/lib/cli.py b/lib/cli.py
index 9da8a75..273f86b 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -566,6 +566,11 @@ def add_standard_arguments(parser):
"ssr : Sum of Squared Residuals\n"
"rsq : R² Score",
)
+ parser.add_argument(
+ "--force-tree",
+ action="store_true",
+ help="Build regression tree without checking whether static/analytic functions are sufficient.",
+ )
def parse_shift_function(param_name, param_shift):