#!/usr/bin/env python
# coding: utf-8

import numpy as np
import os

target = os.getcwd()

with open('launch.sh', 'w') as f:

    for i in np.arange(0, 10, 1):
        print(i)
        filename = '/3msplus'+str(i)
        for name in ['220-with-lvksky',  '221-with-lvksky',  '330-with-lvksky']:
            # sampling rate
            f.write('cd '+str(target)+'/'+filename+'/'+name+'\n')
            f.write('condor_submit sub.sub\n')
            f.write('sleep 1\n')
