Exemple #1
0
def run():
	global bradb
	global parameters
#	bsim.injectBrain(bradb,parameters)
	bsim.injectStim(bradb,parameters,parameters['RATE1'],0.0,parameters['ENDSIM'],john) #john?
	bsim.injectStim(bradb,parameters,parameters['RATE2'],0.0,parameters['ENDSIM'],mary) #mary?
	bradb.parms['DURATION']=str(parameters['ENDSIM'])
	bsim.runBrain(bradb, (0.0,parameters['ENDSIM']))
Exemple #2
0
def Loves(x,y):
	global parameters
	global bradb
	global learn_preds
	parameters['RATE1']=rates[x]
	parameters['RATE2']=rates[y]
	parameters['ENDSIM']=parameters['ENDSIM']+(learntime*2) # extend simulation time

	# x as agent (rate 1) and y as object (rate 2)
	bsim.injectStim(bradb,parameters,parameters['RATE1'],learn_preds,learn_preds+learntime,agent)
	bsim.injectStim(bradb,parameters,parameters['RATE2'],learn_preds,learn_preds+learntime,object)
	learn_preds=learn_preds+1