Package pype :: Module lzones :: Class LandingZone
[frames] | no frames]

Class LandingZone

source code

object --+
         |
        LandingZone

Circular Landing zone detector -- this is sort of like a FixWin, but all done in pype (vs comedi_server subproc). A landing zone is circular region located at (x,y) with a radius of size pixels. Once the eyes enter the landing zone, a counter is started. If the eyes are still in the landing zone after fixtime, then it's considered a landing event the .inside() method returns one.

This depends on the .inside() method being in some sort of tight loop and called over and over again until something happens, otherwise you might miss exit/entry events..

Eyes must stay inside the zone for fixtime_ms before it's considered a fixation insize the zone. Use fixtime_ms=0 if you want to accept pass throughs w/o fixations.

Instance Methods
 
__init__(self, x, y, size, fixtime, app)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__del__(self) source code
 
inside(self, t=None, x=None, y=None)
If you have multiple landing zones, you can sit in a loop, use app.eye_txy() to query time and eye position ONCE, and then apply it to multiple landing zones by passing in (x,y) values
source code
 
draw(self, color='grey', dash=None, text=None) source code
 
clear(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, x, y, size, fixtime, app)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)