diff --git a/devices/test/devices/monitoring_performance_test.py b/devices/test/devices/monitoring_performance_test.py index 45d52032413751515a9586ee51c195ae9590faa7..e17b93a8e4024d904596b7238068b11bcdbcab6f 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__':