Exemple #1
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		# Generic settings
		self.tracker_type = u'Simple dummy'
		self.calibrate = u'yes'
		self.sacc_vel_thr = 35
		self.sacc_acc_thr = 9500
		self._logfile = u'automatic'
		# EyeLink-specific settings
		self.eyelink_calbeep = u'yes'
		self.eyelink_force_drift_correct = u'yes'
		# SMI-specific settings
		self.smi_ip = u'127.0.0.1'
		self.smi_send_port = 4444
		self.smi_recv_port = 5555
		item.__init__(self, name, experiment, script)
		self.reload_pygaze()
    def __init__(self, name, experiment, script=None):

        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        # Here we provide default values for the variables that are specified
        # in info.json. If you do not provide default values, the plug-in will
        # work, but the variables will be undefined when they are not explicitly
        # set in the GUI.

        # I'm not sure what the end user will need to control here yet.
        # Leaving the examples defaults here as placeholders.
        self._checkbox = u"yes"  # yes = checked, no = unchecked
        self._color = u"white"
        self._option = u"Option 1"
        self._file = u""
        self._text = u"Default text"
        self._spinbox_value = 1
        self._slider_value = 1
        self._script = u"print 10"
        # Then call the parent constructor
        item.__init__(self, name, experiment, script)
Exemple #3
0
	def __init__(self, name, experiment, script=None):
	
		"""
		Constructor
		
		Arguments:
		name -- item name
		experiment -- experiment instance
		
		Keyword arguments:
		script -- definition string (default=None)
		"""
		
		
		self._checkbox = u'no' # yes = checked, no = unchecked
		self._color = u'blue'
		self._option = u'Start Connection'
		self._file = u''
		self._text = u'Insert message here.'
		self._script = u'print 10'	

		global s
		global host
		global port
		global data
		global startTime
		global timeDiff
		global socketCreated

		item.__init__(self, name, experiment, script)
Exemple #4
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        # Generic settings
        self.tracker_type = u'Simple dummy'
        self.calibrate = u'yes'
        self.sacc_vel_thr = 35
        self.sacc_acc_thr = 9500
        self._logfile = u'automatic'
        # EyeLink-specific settings
        self.eyelink_calbeep = u'yes'
        self.eyelink_force_drift_correct = u'yes'
        # SMI-specific settings
        self.smi_ip = u'127.0.0.1'
        self.smi_send_port = 4444
        self.smi_recv_port = 5555
        item.__init__(self, name, experiment, script)
        self.reload_pygaze()
Exemple #5
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        # Here we provide default values for the variables that are specified
        # in info.json. If you do not provide default values, the plug-in will
        # work, but the variables will be undefined when they are not explicitly
        # set in the GUI.
        self._checkbox = u'yes'  # yes = checked, no = unchecked
        self._color = u'white'
        self._option = u'Option 1'
        self._file = u''
        self._text = u'Default text'
        self._spinbox_value = 1
        self._slider_value = 1
        self._script = u'print 10'
        # Then call the parent constructor
        item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		# Here we provide default values for the variables that are specified
		# in info.json. If you do not provide default values, the plug-in will
		# work, but the variables will be undefined when they are not explicitly
		# set in the GUI.
		self._checkbox = u'yes' # yes = checked, no = unchecked
		self._color = u'white'
		self._option = u'Option 1'
		self._file = u''
		self._text = u'Default text'
		self._spinbox_value = 1
		self._slider_value = 1
		self._script = u'print 10'
		# Then call the parent constructor
		item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		# Here we provide default values for the variables that are specified
		# in info.json. If you do not provide default values, the plug-in will
		# work, but the variables will be undefined when they are not explicitly
		# set in the GUI.
		self._runif = u'always'
		self._address = u'http://'
		# UI
		self._question = u'Submit data now?'
		self._yes = u'Yes'
		self._no = u'No'
		#self._variable = u'menu_choice'
		# Then call the parent constructor
		item.__init__(self, name, experiment, script)
Exemple #8
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""
		self._runif = u'always'
		item.__init__(self, name, experiment, script)
Exemple #9
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.event = u'Saccade start'
        item.__init__(self, name, experiment, script)
    def __init__(self, name, experiment, script=None):
        """
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.response_var = u'correct'
        item.__init__(self, name, experiment, script)
Exemple #11
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.status_msg = u'start_trial'
        item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""
		
		# Call the parent constructor.
		item.__init__(self, name, experiment, script)
Exemple #13
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self.status_msg = u'start_trial'
		item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self.response_var = u'correct'
		item.__init__(self, name, experiment, script)
Exemple #15
0
    def __init__(self, name, experiment, script=None):

        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.msg = u""
        self.auto_log = u"no"
        self.throttle = 2
        item.__init__(self, name, experiment, script)
Exemple #16
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self.msg = u''
		self.auto_log = u'no'
		self.throttle = 2
		item.__init__(self, name, experiment, script)
Exemple #17
0
    def __init__(self, name, experiment, string=None):
        """
		Constructor.

		Arguments:
		name		--	The name of the item,
		experiment	--	An experiment object.

		Keyword arguments:
		string		--	A definition string. (default=None)
		"""

        self.duration = u"keypress"
        self.align = u"center"
        self.content = u"Enter your text here."
        self.maxchar = 50
        item.__init__(self, name, experiment, string)
Exemple #18
0
	def __init__(self, name, experiment, string=None):

		"""
		Constructor.

		Arguments:
		name		--	The name of the item,
		experiment	--	An experiment object.

		Keyword arguments:
		string		--	A definition string. (default=None)
		"""

		self.duration = u"keypress"
		self.align = u"center"
		self.content = u"Enter your text here."
		self.maxchar = 50
		item.__init__(self, name, experiment, string)
    def __init__(self, name, experiment, script=None):
        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.xpos = 0
        self.ypos = 0
        self.fixation_triggered = u'no'
        self.target_color = u'[foreground]'
        self.target_style = u'default'
        self.draw_target = u'yes'
        item.__init__(self, name, experiment, script)
Exemple #20
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self._question = u'Your question?'
		self._resp1 = u'Response 1'
		self._resp2 = u'Response 2'
		self._responses = u'Response 1\nResponse2'
		self._variable = u'menu_choice'
		# Then call the parent constructor
		item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self.xpos = 0
		self.ypos = 0
		self.fixation_triggered = u'no'
		self.target_color = u'[foreground]'
		self.target_style = u'default'
		self.draw_target = u'yes'
		item.__init__(self, name, experiment, script)
Exemple #22
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        # Set default values.
        self.style = u'default'
        self.duration = 1000
        self.penwidth = 3
        self.x = 0
        self.y = 0
        # Call the parent constructor.
        item.__init__(self, name, experiment, script)
Exemple #23
0
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		# Set default values.
		self.style = u'default'
		self.duration = 1000
		self.penwidth = 3
		self.x = 0
		self.y = 0
		# Call the parent constructor.
		item.__init__(self, name, experiment, script)
Exemple #24
0
    def __init__(self, name, experiment, script=None):
        """
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        self.t_guess = .5
        self.t_guess_sd = .25
        self.p_threshold = .75
        self.beta = 3.5
        self.delta = .01
        self.gamma = .5
        self.test_value_method = u'quantile'
        self.min_test_value = 0
        self.max_test_value = 1
        self.var_test_value = u'quest_test_value'
        item.__init__(self, name, experiment, script)
Exemple #25
0
    def __init__(self, name, experiment, script=None):

        """
		Constructor.
		
		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.
		
		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

        # Here we provide default values for the variables that are specified
        # in info.json. If you do not provide default values, the plug-in will
        # work, but the variables will be undefined when they are not explicitly
        # set in the GUI.
        # self._log_all = u'yes' # yes = checked, no = unchecked
        self._vars_string = u""
        self.ignore_missing = u"yes"
        self.auto_log = u"yes"
        self.logvars = []
        # Then call the parent constructor
        item.__init__(self, name, experiment, script)
	def __init__(self, name, experiment, script=None):

		"""
		Constructor.

		Arguments:
		name		--	The name of the plug-in.
		experiment	--	The experiment object.

		Keyword arguments:
		script		--	A definition script. (default=None)
		"""

		self.t_guess = .5
		self.t_guess_sd = .25
		self.p_threshold = .75
		self.beta = 3.5
		self.delta = .01
		self.gamma = .5
		self.test_value_method = u'quantile'
		self.min_test_value = 0
		self.max_test_value = 1
		self.var_test_value = u'quest_test_value'
		item.__init__(self, name, experiment, script)
Exemple #27
0
	def __init__(self, name, experiment, string=None):

		item.__init__(self, name, experiment, string)
		self.reload_pygaze()
Exemple #28
0
    def __init__(self, name, experiment, string=None):

        item.__init__(self, name, experiment, string)
        self.verbose = u'no'
        self.poll_time = 100
    def __init__(self, name, experiment, string=None):

        item.__init__(self, name, experiment, string)
        self.verbose = u'no'
Exemple #30
0
    def __init__(self, name, experiment, string=None):

        self.verbose = u'no'
        self.modules_enabled = [u'alsaaudio', u'sounddevice', u'pyaudio']

        item.__init__(self, name, experiment, string)
Exemple #31
0
    def __init__(self, name, experiment, string=None):

        item.__init__(self, name, experiment, string)
        self.reload_pygaze()