from setup_spectro_only import *
import cbpassist as ca
import time

# first round of 10 exposures 
outdir = '../data/szf/spectro_test/test_1/'
if not os.path.exists(outdir):
    os.mkdir(outdir)

n_repeats = 1
exptimes = [10]
tot_exp_time = [1800]


for n in range(n_repeats):
    for i,e in enumerate(exptimes):
        print('Exposing spectrograph for time {}s, total camera time {}s'.format(e, tot_exp_time[i]))
        d['spectro.exptime'] = e
        sched.shoot(d, outdir)
