Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
twemyss committed Nov 19, 2020
1 parent 02fd879 commit 426254c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sagital_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import numpy as np


def run_averages(file_input='brain_sample.csv', file_output='brain_average.csv'):
"""
Calculates the average through the coronal planes
Expand All @@ -16,7 +15,7 @@ def run_averages(file_input='brain_sample.csv', file_output='brain_average.csv')

# Calculates the averages through the sagital/horizontal planes
# and makes it as a row vector
averages = planes.mean(axis=0)[np.newaxis, :]
averages = planes.mean(axis=1)[np.newaxis, :]

# write it out on my file
np.savetxt(file_output, averages, fmt='%.1f', delimiter=',')
Expand Down

0 comments on commit 426254c

Please sign in to comment.