omerday / TIM-Task

0 stars 0 forks source link

Experiment Paradigm Modifications #20

Closed omerday closed 7 months ago

omerday commented 7 months ago
omerday commented 7 months ago

Added the logic and implemented like so:

def iti():
    blank_wait = random.uniform(3, 4)
    cross_wait = random.uniform(3, 5)
    win.flip()
    blank_start = ts.time()
    while ts.time() < blank_start + blank_wait:
        for ev in event.getKeys():
            if ev.key in ["esc", "escape", "q"]:
                win.close()
                core.quit()

    img = visual.ImageStim(win, image="./img/PlusOnly.jpg", pos=(0, 0), size=(2,2), units="norm")
    cross_start = ts.time()
    img.draw()
    win.flip()
    while ts.time() < cross_start + cross_wait:
        for ev in event.getKeys():
            if ev.key in ["esc", "escape", "q"]:
                win.close()
                core.quit()

    del img

Need to modify it to fit the new events

omerday commented 7 months ago

@rany-abend you can follow here

omerday commented 7 months ago

@rany-abend all done with God's help Will review tomorrow morning in the lab before merging

omerday commented 7 months ago

Additional modifications: