Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

set the eye used (pygaze+eyetribe)

hi.

i need to set the eye_used (i need the right eye) to an experiment.

thanks.

Comments

  • Hi mordurx,

    Are you using the EyeTribe? So far it doesn't seem like the eyetribe actually uses eye_used.
    The only function that references eye_used for the EyeTribe is in the libeyetribe.py in the comments... When the function is actually called it is getting 'psize' which is the average pupil size.

    If you are interested in pupil size, you could get only the right pupil by editing the function pupil_size() in pytribe.py so that it looks like this:

    def pupil_size(self):
    
        """Returns the most recent pupil size sample (an average of the size
        of both pupils)
        arguments
        None
        returns
        pupsize --  a float indicating the pupil size (in arbitrary units)
        """
    
        global _current_sample
    
        if _current_sample == None:
            return None
        else:
            return _current_sample['Rpsize']
    

    I haven't tested this myself so no guarantees.

Sign In or Register to comment.