Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Oct 23, 2021
1 parent b0b1c20 commit f5b93c6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions TruScanEEGpy/layout.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# -*- coding: utf-8 -*-

"""Submodule."""
import os
import pandas as pd

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


def layout_128(names = "index"):
def layout_128(names="index"):
"""Create layout file
Parameters
----------
names : str
Can be 'index' or '10-5' for the 'mak-128' (an adpated version of 10-5) layout.
Can be 'index' or '10-5' for the 'mak-128' (an adapated version of 10-5) layout.
Examples
--------
Expand All @@ -23,12 +23,11 @@ def layout_128(names = "index"):
>>> layout = TruScanEEGpy.layout_128()
>>> layout = TruScanEEGpy.layout_128('10-5')
"""
layout = pd.read_csv(Path.layouts() + '/deymed_layout_128.txt', sep = '\t')
layout = pd.read_csv(Path.layouts() + "/deymed_layout_128.txt", sep="\t")
layout.columns = layout.columns.str.strip()
layout["Name"] = fix_channels_128()


# System
if names != "index":
layout["Name"] = convert_to_tenfive(layout["Name"])
return(layout)
return layout

0 comments on commit f5b93c6

Please sign in to comment.