diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-15 21:48:09 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-15 21:48:09 +0100 |
commit | 22169b99b7756349baddae84b2b4e058acce5599 (patch) | |
tree | 0872a0b01322f2b776ee99b43c54fd3e824cf85e /scripts/motan | |
parent | a961fbda426d79dc3c33a66848408e84b0737a98 (diff) | |
download | kutter-22169b99b7756349baddae84b2b4e058acce5599.tar.gz kutter-22169b99b7756349baddae84b2b4e058acce5599.tar.xz kutter-22169b99b7756349baddae84b2b4e058acce5599.zip |
Isort all scriptsv0.1.0-rc1
Diffstat (limited to 'scripts/motan')
-rw-r--r-- | scripts/motan/analyzers.py | 5 | ||||
-rwxr-xr-x | scripts/motan/data_logger.py | 10 | ||||
-rwxr-xr-x | scripts/motan/motan_graph.py | 12 | ||||
-rw-r--r-- | scripts/motan/readlog.py | 3 |
4 files changed, 23 insertions, 7 deletions
diff --git a/scripts/motan/analyzers.py b/scripts/motan/analyzers.py index 917cb032..15f87ffc 100644 --- a/scripts/motan/analyzers.py +++ b/scripts/motan/analyzers.py @@ -3,9 +3,10 @@ # Copyright (C) 2021 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. -import math, collections -import readlog +import collections +import math +import readlog ###################################################################### # Analysis code diff --git a/scripts/motan/data_logger.py b/scripts/motan/data_logger.py index 8a525747..78d0ccef 100755 --- a/scripts/motan/data_logger.py +++ b/scripts/motan/data_logger.py @@ -4,7 +4,15 @@ # Copyright (C) 2020-2021 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. -import sys, os, optparse, socket, select, json, errno, time, zlib +import errno +import json +import optparse +import os +import select +import socket +import sys +import time +import zlib INDEX_UPDATE_TIME = 5.0 ClientInfo = {"program": "motan_data_logger", "version": "v0.1"} diff --git a/scripts/motan/motan_graph.py b/scripts/motan/motan_graph.py index 8d551340..e2e8e559 100755 --- a/scripts/motan/motan_graph.py +++ b/scripts/motan/motan_graph.py @@ -4,9 +4,13 @@ # Copyright (C) 2019-2021 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. -import sys, optparse, ast +import ast +import optparse +import sys + +import analyzers import matplotlib -import readlog, analyzers +import readlog try: import urlparse @@ -75,7 +79,9 @@ def setup_matplotlib(output_to_file): global matplotlib if output_to_file: matplotlib.use("Agg") - import matplotlib.pyplot, matplotlib.dates, matplotlib.font_manager + import matplotlib.dates + import matplotlib.font_manager + import matplotlib.pyplot import matplotlib.ticker diff --git a/scripts/motan/readlog.py b/scripts/motan/readlog.py index 8f86d4e2..0d7651b6 100644 --- a/scripts/motan/readlog.py +++ b/scripts/motan/readlog.py @@ -3,7 +3,8 @@ # Copyright (C) 2021 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. -import json, zlib +import json +import zlib class error(Exception): |