This is the code associated with the paper: Evans RC, Maniar YM, Blackwell KT (2013) Dynamic modulation of spike timing dependent calcium influx during cortico-striatal upstates. J Neurophysiol This archive contains the authors code. Usage instructions will be provided at a future date.