Repository: BUNPC/pysnirf2 (language: python)

Issue:
Refactored everything to remove "Class" is this is not good style
Also reworked a bit of logic in the varg validate function


Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index f6275ae..ed0b973 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
 **/venv
 **/__pycache__
 .idea
-*.snirf
 *.log
\ No newline at end of file
diff --git a/README.md b/README.md
index 1710de3..f1535e2 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+![example workflow](https://github.com/BUNPC/pysnirf2/actions/workflows/test.yml/badge.svg)
+
 # pysnirf2
 
 Dynamically generated Python library for loading, saving, and validating Snirf files.


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 646eaa0..5b2688d 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,7 +20,6 @@ jobs:
         with:
           python-version: 3.6
       - name: Install dependencies
-        working-directory: pysnirf2
         run: |
           python -m pip install --upgrade pip
           pip install -r requirements.txt
diff --git a/tests/data/subjA_run01.snirf b/tests/data/subjA_run01.snirf
new file mode 100644
index 0000000..6ed3ed2
Binary files /dev/null and b/tests/data/subjA_run01.snirf differ
diff --git a/tests/data/subjA_run02.snirf b/tests/data/subjA_run02.snirf
new file mode 100644
index 0000000..d30c3e8
Binary files /dev/null and b/tests/data/subjA_run02.snirf differ
diff --git a/tests/data/subjA_run03.snirf b/tests/data/subjA_run03.snirf
new file mode 100644
index 0000000..3717964
Binary files /dev/null and b/tests/data/subjA_run03.snirf differ
diff --git a/tests/test.py b/tests/test.py
index d66ffe3..f0e734e 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -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)