Skip to content

Commit

Permalink
Testing data upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sstucker committed Dec 1, 2021
1 parent 358f968 commit bff988b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
**/venv
**/__pycache__
.idea
*.snirf
*.log
Binary file added tests/data/subjA_run01.snirf
Binary file not shown.
Binary file added tests/data/subjA_run02.snirf
Binary file not shown.
Binary file added tests/data/subjA_run03.snirf
Binary file not shown.
9 changes: 7 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
import numpy as np

VERBOSE = True # Additional print statements in each test
snirf_directory = '/tests/data' # Sample data source
working_directory = '/tests/wd' # Working directory for testing

# Need to run from the repository root
snirf_directory = 'tests/data' # Sample data source
working_directory = 'tests/wd' # Working directory for testing

if not os.path.isdir(working_directory):
os.mkdir(working_directory)

if len(os.listdir(snirf_directory)) == 0:
sys.exit('Failed to find test data in '+ working_directory)
Expand Down

0 comments on commit bff988b

Please sign in to comment.