From 254f82c38162b2a88adc5b2d9fa1023a6ab5a974 Mon Sep 17 00:00:00 2001
From: Thomas Juerges <203795-tjuerges@users.noreply.gitlab.com>
Date: Wed, 21 Jul 2021 15:02:18 +0200
Subject: [PATCH] L2SS-245: comment out argparse stuff, does not work

---
 .../test/devices/monitoring_performance_test.py | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/devices/test/devices/monitoring_performance_test.py b/devices/test/devices/monitoring_performance_test.py
index 45d520324..e17b93a8e 100644
--- a/devices/test/devices/monitoring_performance_test.py
+++ b/devices/test/devices/monitoring_performance_test.py
@@ -113,16 +113,15 @@ class Monitoring_Performance_Device(Device):
 
 
 def main(args = None, **kwargs):
-    print('*{}\n*{}\n'.format(args, kwargs))
-    parser = ArgumentParser()
     global POLLING_THREADS, ARRAY_SIZE
-    parser.add_argument("--threads", "-t", dest = "threads", help = "The number of polling threads.", type = int, default = POLLING_THREADS, required = True)
-    parser.add_argument("--array_size", "-a", dest = "size", help = "The size of the four numpy arrays.", type = int, default = ARRAY_SIZE, required = True)
-    from sys import argv
-    args = argv[1:]
-    settings = parser.parse_known_args(args)
-    POLLING_THREADS = settings['threads']
-    ARRAY_SIZE = settings['size']
+    POLLING_THREADS = 100
+    ARRAY_SIZE = 200000
+    # parser = ArgumentParser()
+    # parser.add_argument("--threads", "-t", dest = "threads", help = "The number of polling threads.", type = int, default = POLLING_THREADS, required = True)
+    # parser.add_argument("--array_size", "-a", dest = "size", help = "The size of the four numpy arrays.", type = int, default = ARRAY_SIZE, required = True)
+    # settings = parser.parse_known_args()
+    # POLLING_THREADS = settings[0].threads
+    # ARRAY_SIZE = settings[0].size
     return run((Monitoring_Performance_Device, ), args = args, **kwargs)
 
 if __name__ == '__main__':
-- 
GitLab