forked from UCL-RITS/rsd-sagital_average
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CLI entry point to module (Addresses UCL-RITS/rse-classwork-2020#144
- Loading branch information
Showing
8 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .sagital_brain import run_averages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter | ||
import sagital_brain | ||
|
||
def process(): | ||
parser = ArgumentParser(description="Calculates the average for each sagital-horizontal plane.", | ||
formatter_class=ArgumentDefaultsHelpFormatter) | ||
parser.add_argument('file_input', nargs='?', default="brain_sample.csv", | ||
help="Input CSV file with the results from scikit-brain binning algorithm.") | ||
parser.add_argument('--file_output', '-o', default="brain_average.csv", | ||
help="Name of the output CSV file.") | ||
arguments = parser.parse_args() | ||
sagital_brain.run_averages(arguments.file_input, arguments.file_output) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters