icarus/examples/JSON_results_test/plotresults.py
File plotresults.py
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python
"""Plot results read from a result set
"""
from __future__ import division
import os
Function run
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
def run(config, results, plotdir):
"""Run the plot script
Parameters
----------
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function plot_cache_hits_vs_alpha
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_cache_hits_vs_alpha(resultset, topology, cache_size, alpha_range, strategies, plotdir):
Function plot_latency_vs_alpha
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_latency_vs_alpha(resultset, topology, cache_size, alpha_range, strategies, plotdir):
Function plot_cache_hits_vs_cache_size
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_cache_hits_vs_cache_size(resultset, topology, alpha, cache_size_range, strategies, plotdir):
Function plot_latency_vs_cache_size
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_latency_vs_cache_size(resultset, topology, alpha, cache_size_range, strategies, plotdir):
Function plot_link_load_vs_topology
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_link_load_vs_topology(resultset, alpha, cache_size, topology_range, strategies, plotdir):
Function plot_link_load_vs_cache_size
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_link_load_vs_cache_size(resultset, topology, alpha, cache_size_range, strategies, plotdir):
Function plot_cache_hits_vs_topology
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_cache_hits_vs_topology(resultset, alpha, cache_size, topology_range, strategies, plotdir):
Function plot_link_load_vs_alpha
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_link_load_vs_alpha(resultset, topology, cache_size, alpha_range, strategies, plotdir):