import helperFcns as hf
import plotly
import plotly.graph_objs as go
from igraph import *
from plotly import tools
import numpy as np
import yaml

eType = 'epineural'
collapseCuffs = False

cuffParentsDict = hf.getCanonicalInnervation()
cuffDict = cuffParentsDict.keys()
cuffCoord = hf.getInnervationTreeCoords()
allCuffs = hf.allCuffs_mdf.keys()
subjectList = hf.getSubjects(eType)
allDRG = hf.allDRG

meanAmpDict = dict.fromkeys(subjectList)
for subject in subjectList:
    meanAmpDict[subject] = {}
    for DRG in allDRG:
        meanAmpDict[subject][DRG] = {}
        for cuff in allCuffs:
            meanAmpDict[subject][DRG][cuff] = []

for subject in subjectList:
    seshDict = {}

    # returns all sessions per DRG per subject
    res2 = hf.sessionPerDRG(
Beispiel #2
0
def getSubs(eTypeVal):
    subList = hf.getSubjects(eTypeVal)
    return [{'label': iSub, 'value': iSub} for iSub in subList]