コード例 #1
0
ファイル: viewing_test.py プロジェクト: anjith2006/gazehound
 def test_combiner_drops_out_of_bounds_points(self):
     # Some gazepoints are outside of the event timeline...
     combiner = viewing.Combiner(
         timeline = self.timeline,
         scanpath = self.scanpath
     )
     viewings = combiner.viewings()
     lt_(
         sum(len(pres.scanpath) for pres in viewings),
         len(self.scanpath)
     )
コード例 #2
0
ファイル: viewing_test.py プロジェクト: anjith2006/gazehound
 def test_viewings_drops_fixations_outside_stimuli(self):
     lt_(
         sum(len(pres.scanpath) for pres in self.viewings),
         len(self.fixations)
     )