Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Nov 27, 2019
1 parent 8671f73 commit bd30ad3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions TruScanEEGpy/convert_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Submodule."""


def tenfive_system_128(channel):
def convert_to_tenfive(ch_names):
"""Convert channel names to 10-5 system
This function aims to convert the channel labeling (in number) to the standardized 10-5 electrode labeling.
Expand Down Expand Up @@ -122,18 +122,18 @@ def tenfive_system_128(channel):
"17" : "P8",
"112" : "P9",
"119" : "P10",

"24" : "TP9",
"29" : "TP10",


"113" : "PPO5",
"114" : "PPO3",
"115" : "PPO1",
"116" : "PPO2",
"117" : "PPO4",
"118" : "PPO6",


"31" : "PO9",
"60" : "PO7",
Expand All @@ -145,7 +145,7 @@ def tenfive_system_128(channel):

"121" : "POO1",
"122" : "POO2",

"120" : "OPO3",
"123" : "OPO4",

Expand All @@ -160,5 +160,5 @@ def tenfive_system_128(channel):
"127" : "Iz",
"128" : "I2"
}
channel = [correspondance.get(name, name) for name in channel]
return(channel)
ch_names = [correspondance.get(name, name) for name in ch_names]
return(ch_names)
4 changes: 2 additions & 2 deletions TruScanEEGpy/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from .layouts import Path
from .fix_channels import fix_channels_128
from .convert_channels import tenfive_system_128
from .convert_channels import convert_to_tenfive

def layout_128(names = "index"):
"""Create layout file
Expand All @@ -30,5 +30,5 @@ def layout_128(names = "index"):

# System
if names != "index":
layout["Name"] = tenfive_system_128(layout["Name"])
layout["Name"] = convert_to_tenfive(layout["Name"])
return(layout)
2 changes: 1 addition & 1 deletion TruScanEEGpy/montage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from .fix_channels import fix_channels_128
from .convert_channels import tenfive_system_128


def montage_mne_128(layout):
"""Create MNE montage
Expand Down
1 change: 0 additions & 1 deletion docs/.rst

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def find_version():
include_package_data=True,
keywords='TruScanEEGpy',
name='TruScanEEGpy',
packages=find_packages(include=['TruScanEEGpy']),
packages=find_packages(),
# package_data = {"TruScanEEGpy.layouts":["*.txt"]},
setup_requires=setup_requirements,
test_suite='pytest',
Expand Down

0 comments on commit bd30ad3

Please sign in to comment.