from setup_cbp import *

exptime = 1
d['cbp.pinhole'] = 'grid'
d['cbp.alt'] =  'IDLE'
d['cbp.az'] = 'IDLE'
d['sbig.FILTER'] = 'EMPTY'

outdir = 'mondrik_temp_test'

if not os.path.exists(outdir):
    os.mkdir(outdir)

#wl = np.linspace(360, 1100)
wl = np.arange(400, 1052, 2)
#wl = np.linspace(500, 600)
for i in range(len(wl)):
    d['sbig.EXPTIME'] = exptime+10.
    d['keithley.exptime'] = exptime
    d['sbig.FILTER'] = 'EMPTY'
    d['laser.wavelength'] = str(wl[i])
    d['ndfilter.pos'] = str(70)
    sched.shoot(d, outdir) 
