Skip to content

Commit

Permalink
Update test script
Browse files Browse the repository at this point in the history
  • Loading branch information
twemyss committed Nov 26, 2020
1 parent 54b7568 commit e615a77
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion sagital_brain/brain_average.csv

This file was deleted.

20 changes: 0 additions & 20 deletions sagital_brain/brain_sample.csv

This file was deleted.

3 changes: 2 additions & 1 deletion sagital_brain/tests/test_average.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
import numpy as np
import subprocess

def test_average():
# Make new output file
Expand All @@ -8,7 +9,7 @@ def test_average():
np.savetxt("brain_sample.csv", data_input, fmt='%d', delimiter=',')

# Run sagital brain file to generate output
exec(open("sagital_brain.py").read())
subprocess.run(['python3', 'sagital_brain.py'])

# Load output
loaded = np.loadtxt('brain_average.csv', delimiter=',')
Expand Down

0 comments on commit e615a77

Please sign in to comment.