from ProcessData import PTdata
import ProcessData
import WriteToGoogleSpreadSheet
from FileSelectClass import Example

def ProcessAFile(inputFile,subid,Tag):
    df1 = ProcessData.loadBehDataFile(inputFile)
    df1 = ProcessData.processBehavioralFile(df1)
    wkB = WriteToGoogleSpreadSheet.openWorkBook()
    wkS = WriteToGoogleSpreadSheet.createWorksheet(wkB, subid)
    writeSummaryBehavioralDataToFile(df1, wkS, Tag)

ex = Example()
# This will ask you to select on or more files
ex.showDialog()
df1 = ProcessData.loadBehDataFile(ex.fileName[0][0])
df1 = ProcessData.processBehavioralFile(df1)
ProcessData.createSPMDesignMatrix(df1, 'P00002001_S0001_Run1_DM')
df2 = ProcessData.loadBehDataFile(ex.fileName[0][1])
df2 = ProcessData.processBehavioralFile(df2)
ProcessData.createSPMDesignMatrix(df1, 'P00002001_S0001_Run2_DM')


wkB = WriteToGoogleSpreadSheet.openWorkBook()
wkS = WriteToGoogleSpreadSheet.createWorksheet(wkB, '2001')
writeSummaryBehavioralDataToFile(df1, wkS, 'Run1')




###########################################################################
Exemplo n.º 2
0
from FileSelectClass import Example
import ProcessAFile
import ProcessData
import WriteToGoogleSpreadSheet
ex = Example()


inFile = ex.showDialog()

subid = '2003'

print inFile
Tag = 'TrNoFB'
col = 8
ProcessAFile.ProcessAFile(inFile[0][0],subid,Tag,col)

df1 = ProcessData.loadBehDataFile(inFile[0][0])
df1.onlyKeepDataRows()
    # find load levels
df1.whatLoadIsThisRow()
    # check for accuracy
df1.areResponsesCorrect()

df1 = ProcessData.processBehavioralFile(df1)  



Tag = 'Run1'
col = 4
ProcessAFile.ProcessAFile(inFile[0][0],subid,Tag,col)
Exemplo n.º 3
0
from FileSelectClass import Example
import ProcessAFile
import ProcessData
import WriteToGoogleSpreadSheet

ex = Example()

inFile = ex.showDialog()

subid = '2003'

print inFile
Tag = 'TrNoFB'
col = 8
ProcessAFile.ProcessAFile(inFile[0][0], subid, Tag, col)

df1 = ProcessData.loadBehDataFile(inFile[0][0])
df1.onlyKeepDataRows()
# find load levels
df1.whatLoadIsThisRow()
# check for accuracy
df1.areResponsesCorrect()

df1 = ProcessData.processBehavioralFile(df1)

Tag = 'Run1'
col = 4
ProcessAFile.ProcessAFile(inFile[0][0], subid, Tag, col)

# Create SPM design matrices
ex = Example()