Пример #1
0
#!/usr/bin/env python
#-*- coding:utf-8 -*-

"""
This file is part of P0015.

P0015 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

P0015 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0015.  If not, see <http://www.gnu.org/licenses/>.
"""

from exparser import Tools
from analysis import helpers, parse, tracePlot, barPlot, validate, polar, \
	regress
Tools.analysisLoop(
	parse.getDataMatrix(cacheId='data'),
	mods=[helpers, tracePlot, barPlot, validate, polar, regress],
	pre=['_filter'],
	full=['fullBarPlot', 'fullTracePlot', 'fullTracePlotBySubject',
		'descriptives']
	)
Пример #2
0
from analysis import helpers, fitting
from exparser import Cache, Tools

exp = None
for a in sys.argv:
	if 'exp1' in a:
		exp = a
if exp == None:
	raise Exception('Please specify exp1 or exp1.antiBias')

if 'exp1.antiBias' in sys.argv and '@matchBias' not in sys.argv and \
	'@matchBias:redo' not in sys.argv:
	raise Exception('Don\'t forget to enable @matchBias for exp1.antiBias!')
if exp == 'exp1' and '@matchBias' in sys.argv:
	raise Exception('Don\'t enable @matchBias for exp1!')
if '-' not in sys.argv and '@checkMissing' not in sys.argv:
	raise Exception('Don\'t forget to enable @checkMissing!')

print 'Session %s' % exp

if 'exp1' in exp:
	print 'Reading exp1 data ...'
	dm = DataMatrix('data/data.exp1.npy')
else:
	print 'Reading exp2 data ...'
	dm = DataMatrix('data/data.exp2.npy')
print 'Done'

Tools.analysisLoop(dm, mods=[helpers, fitting], pre=['filter'],
	cachePrefix='autoCache.%s.' % exp)
Пример #3
0
#!/usr/bin/env python
#-*- coding:utf-8 -*-

"""
This file is part of P0015.

P0015 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

P0015 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0015.  If not, see <http://www.gnu.org/licenses/>.
"""

from exparser import Tools
from analysis import helpers, parse
Tools.analysisLoop(
	parse.getDataMatrix(cacheId='data'),
	mods=[helpers],
	pre=['_filter'],
	)
Пример #4
0
#!/usr/bin/env python
#-*- coding:utf-8 -*-

"""
This file is part of P0014.1.

P0014.1 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

P0014.1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0014.1.  If not, see <http://www.gnu.org/licenses/>.
"""

from exparser import Tools
from analysis import constants
constants.exp = 'exp3'
constants.gazeModel = None
constants.defaultTraceParams = constants.exp3TraceParams
from analysis import helpers, parse, pupil, corr
Tools.analysisLoop(parse.getDataMatrix(cacheId='data'),
	mods=[helpers, pupil, corr], pre=['filter'])
Пример #5
0
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0009.1.  If not, see <http://www.gnu.org/licenses/>.
"""

from exparser import Tools
from analysis import helpers, parse
Tools.analysisLoop(
	parse.getDataMatrix(cacheId='data'),
	mods=[helpers],
	pre=['filter'],
	full=[
		'dontShow',
		'descriptives',
		'lmeBehavior',
		'trialPlot100',
		'trialPlot1000',
		'trialPlot2500',
		'corrPlot100_100',
		'corrPlot100_1000',
		'corrPlot100_2500',
		'corrPlot1000_100',
		'corrPlot1000_2500',
		'corrPlot1000',
		'corrPlot2500',
		'corrPlot2500_100',
		'corrPlot2500_1000'
		]
	)
Пример #6
0
#!/usr/bin/env python
#-*- coding:utf-8 -*-

"""
This file is part of P0014.1.

P0014.1 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

P0014.1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0014.1.  If not, see <http://www.gnu.org/licenses/>.
"""

import sys
sys.path.append('..')
from exparser import Tools
from analysis import pupilPlot, parse
Tools.analysisLoop(
	parse.getDataMatrix(cacheId='data'),
	pre=['check'], mods=[pupilPlot]
	)
Пример #7
0
"""
This file is part of P0010.5.

P0010.5 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

P0010.5 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0010.5.  If not, see <http://www.gnu.o#!/bin/basjhrg/licenses/>.
"""

import sys
from exparser import Tools
from analysis import helpers, helpersExp1, helpersExp2, helpersExp3, \
	constants, helpersCrossExp
if constants.exp != None:
	dm = helpers.getDataMatrix(cacheId='data.%s' % constants.exp)
	dm = helpers.filter(dm, cacheId='filter.%s' % constants.exp)
	print('N = %d' % len(dm))
else:
	dm = None
Tools.analysisLoop(dm, mods=[helpers, helpersExp1, helpersExp2, helpersExp3,
	helpersCrossExp])
Пример #8
0
(at your option) any later version.

P0014.1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with P0014.1.  If not, see <http://www.gnu.org/licenses/>.
"""

from analysis import constants
constants.exp = 'expX'
from exparser import Tools
from analysis import helpers, parse, pupil
Tools.analysisLoop(
	parse.getDataMatrix(cacheId='data'),
	mods=[helpers, pupil],
	pre=['filter'],
	full=[
		'descriptives',
		'behavior',
		'pupilTracePlotIndividual',
		'pupilTracePlotCue',
		'pupilTracePlotCorrect',
		'pupilTracePlotExp',
		'subjectDiffMatrix',
		'sortedHeatmap'
		]
	)