commit ae18e7a7cbf1330f096ecd569eb45e9cfc039dda Author: Ana Custura <a...@netstat.org.uk> Date: Fri Jun 26 11:08:28 2020 +0100
Add TGenTools requirement, update code to use new OPAnalysis class --- onionperf/onionperf | 8 ++++---- requirements.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/onionperf/onionperf b/onionperf/onionperf index ddbeaf1..5e2c2fb 100755 --- a/onionperf/onionperf +++ b/onionperf/onionperf @@ -381,8 +381,8 @@ def analyze(args): logging.warning("No logfile paths were given, nothing will be analyzed") elif (args.tgen_logpath is None or os.path.isfile(args.tgen_logpath)) and (args.torctl_logpath is None or os.path.isfile(args.torctl_logpath)): - from onionperf.analysis import Analysis - analysis = Analysis(nickname=args.nickname, ip_address=args.ip_address) + from onionperf.analysis import OPAnalysis + analysis = OPAnalysis(nickname=args.nickname, ip_address=args.ip_address) if args.tgen_logpath is not None: analysis.add_tgen_file(args.tgen_logpath) if args.torctl_logpath is not None: @@ -403,13 +403,13 @@ def analyze(args): def visualize(args): from onionperf.visualization import TGenVisualization - from onionperf.analysis import Analysis + from onionperf.analysis import OPAnalysis tgen_viz = TGenVisualization() for (paths, label) in args.datasets: analyses = [] for path in paths: - analysis = Analysis.load(filename=path) + analysis = OPAnalysis.load(filename=path) if analysis is not None: analyses.append(analysis) tgen_viz.add_dataset(analyses, label) diff --git a/requirements.txt b/requirements.txt index f70e46a..46853f8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ pandas scipy seaborn stem >= 1.7.0 +tgentools _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits