BlueBrain/eFEL

View on GitHub
examples/parallel/scoop_example.py

Summary

Maintainability
C
1 day
Test Coverage

Showing 2 of 2 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for filename in ['example_trace1.txt', 'example_trace2.txt']:
# Use numpy to read the trace data from the txt file
data = numpy.loadtxt(filename)
 
# Time is the first column
Severity: Major
Found in examples/parallel/scoop_example.py and 1 other location - About 7 hrs to fix
examples/parallel/multiprocessing_example.py on lines 12..43

Identical blocks of code found in 2 locations. Consider refactoring.
Open

for trace_number, trace_results in enumerate(traces_results):
print("Results for trace %d" % (trace_number + 1))
# trace_result is a dictionary, with as keys the requested features
for feature_name, feature_values in trace_results.items():
print("Feature %s has the following values: %s" % \
Severity: Major
Found in examples/parallel/scoop_example.py and 1 other location - About 3 hrs to fix
examples/parallel/multiprocessing_example.py on lines 56..61
Category
Status