import wx
import numpy as np
from ss_classes import Params   
from psychopy import core,event
import psychopy.monitors.calibTools as calib


#This brings in all of the classes defined in ss_classes:
from ss_classes import *
from ss_tools import start_data_file
    
if __name__ == "__main__":
    """ The main function. This actually runs the experiment """

    #Initialize params from file:
    params = Params()
    #For some reason, if this call is inside ss_classes, just importing
    #ss_classes starts an instance of the GUI, so we put it out here:
    app = wx.App()
    app.MainLoop()
    params.set_by_gui()
    
    f = start_data_file(params.subject)

    #Start by saving in the parameter setting:
    params.save(f)
    
    #For now, assume that the target and the annulus are going to have the same
    #orientation: 
    params.target_ori = params.annulus_ori
    
import wx
import numpy as np
from ss_classes import Params
from psychopy import core,event
import psychopy.monitors.calibTools as calib


#This brings in all of the classes defined in ss_classes:
from ss_classes import *
from ss_tools import start_data_file
    
if __name__ == "__main__":
    """ The main function. This actually runs the experiment """

    #Initialize params from file:
    params = Params()
    #For some reason, if this call is inside ss_classes, just importing
    #ss_classes starts an instance of the GUI, so we put it out here:
    app = wx.App()
    app.MainLoop()
    params.set_by_gui()
    if params.surround_ori == params.annulus_ori:
        params.subject = params.subject + '_parallel'
    elif abs(params.surround_ori - params.annulus_ori) == 90.0:
        params.subject = params.subject + '_orthogonal'
    else:
        params.subject = params.subject + '_' + str(abs(params.surround_ori - params.annulus_ori)) 
    f = start_data_file(params.subject)

    #Start by saving in the parameter setting:
    params.save(f)
Example #3
0
# not sure if the list is useful any more if changed to detection task
marker_list = ["1", "2", "3", "4"]
# (EDC02032013)

"""
"""

# This brings in all of the classes defined in ss_classes:
from ss_classes import *
from ss_tools import start_data_file

if __name__ == "__main__":
    """ The main function. This actually runs the experiment """

    # Initialize params from file:
    params = Params()
    # For some reason, if this call is inside ss_classes, just importing
    # ss_classes starts an instance of the GUI, so we put it out here:
    app = wx.App()
    app.MainLoop()
    params.set_by_gui()

    f = start_data_file(params.subject)

    # Start by saving in the parameter setting:
    params.save(f)

    # For now, assume that the  and the annulus are going to have the same
    # orientation:
    params.target_ori = params.annulus_ori