Commit 30229abb authored by Stephen Pearce's avatar Stephen Pearce Committed by Maxim Belkin
Browse files

code/ Harmonise with lesson text (#747)

parent 7fe15ecd
......@@ -7,18 +7,18 @@ def main():
action = sys.argv[1]
filenames = sys.argv[2:]
for f in filenames:
data = numpy.loadtxt(f, delimiter=',')
for filename in filenames:
data = numpy.loadtxt(filename, delimiter=',')
if action == '--min':
values = data.min(axis=1)
values = numpy.min(data, axis=1)
elif action == '--mean':
values = data.mean(axis=1)
values = numpy.mean(data, axis=1)
elif action == '--max':
values = data.max(axis=1)
values = numpy.max(data, axis=1)
for m in values:
for val in values:
if __name__ == '__main__':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment