Exemple #1
0
    def present_temporal_stream(self, temporal_stream):
        duration_cd = CountDown(ITEM_DURATION, start=False)
        mask_cd = CountDown(MASK_DURATION, start=False)

        response_window = CountDown(2, start=False)

        last_item = True if len(temporal_stream) == 1 else False

        item = temporal_stream.pop()

        if item[1]:
            self.target_onset = self.target_sw.elapsed()

        duration_cd.start()
        while duration_cd.counting():
            self.blit_img(item[0], reg=5, loc=P.screen_c)

        mask_cd.start()
        while mask_cd.counting():
            self.blit_img(self.mask, reg=5, loc=P.screen_c)

        if last_item:
            clear()
            response_window.start()
            while response_window.counting():
                fill()
                flip()
Exemple #2
0
    def present_stream(self):

        duration_cd = CountDown(self.item_duration, start=False)
        isi_cd = CountDown(self.isi, start=False)

        item = self.rsvp_stream.pop()

        fill()
        blit(item[0], registration=5, location=P.screen_c)
        flip()

        duration_cd.start()
        while duration_cd.counting():
            pass

        fill()

        if item[1]:
            self.target_onset = self.target_sw.elapsed()

        isi_cd.start()
        while isi_cd.counting():
            pass