-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41e5bdf
commit 4c9b4b6
Showing
8 changed files
with
113 additions
and
81 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
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
"""Initialize eeg_positions.""" | ||
|
||
__version__ = '1.0.0' |
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
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
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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
"""Test whether the contour labels are complete.""" | ||
|
||
from eeg_positions.contour_labels import (all_contours, system1020, system1010, | ||
system1005) | ||
from eeg_positions.contour_labels import (ALL_CONTOURS, SYSTEM1020, SYSTEM1010, | ||
SYSTEM1005) | ||
|
||
|
||
def test_contour_lengths(): | ||
"""Check that we have 17 or 21 electrode per contour.""" | ||
for contour in all_contours: | ||
for contour in ALL_CONTOURS: | ||
assert len(contour) in [17, 21] | ||
|
||
|
||
def test_system_labels(): | ||
"""Check if systems have the correct number of labels.""" | ||
assert len(system1005) == 345 | ||
assert len(system1020) == 21 | ||
assert len(system1010) == 71 | ||
|
||
|
||
if __name__ == '__main__': | ||
print(all_contours) | ||
assert len(SYSTEM1005) == 345 | ||
assert len(SYSTEM1020) == 21 | ||
assert len(SYSTEM1010) == 71 |
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
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
Oops, something went wrong.