import numpy as np
ini_file = '../ini/CCAT_init.ini'
for sensi in np.linspace(0.1, 5, 20):
    with open(ini_file, 'r') as f:
        text = f.read()
    new_text = text.replace('noise_file = ../data/noise_spectra/CCAT_v2.dat',
        'noise_file = ../data/noise_spectra/CCAT_{:3.2f}.dat'.format(sensi))
    new_file = '../ini/CCAT/CCAT_{:3.2f}.ini'.format(sensi)
    with open(new_file, 'w') as f:
        f.write(new_text)

f2706c8463565839de1b13a3147b2a2d36746a29
<mask token>

<mask token>
for sensi in np.linspace(0.1, 5, 20):
    with open(ini_file, 'r') as f:
        text = f.read()
    new_text = text.replace('noise_file = ../data/noise_spectra/CCAT_v2.dat',
        'noise_file = ../data/noise_spectra/CCAT_{:3.2f}.dat'.format(sensi))
    new_file = '../ini/CCAT/CCAT_{:3.2f}.ini'.format(sensi)
    with open(new_file, 'w') as f:
        f.write(new_text)

<mask token>
ini_file = '../ini/CCAT_init.ini'
for sensi in np.linspace(0.1, 5, 20):
    with open(ini_file, 'r') as f:
        text = f.read()
    new_text = text.replace('noise_file = ../data/noise_spectra/CCAT_v2.dat',
        'noise_file = ../data/noise_spectra/CCAT_{:3.2f}.dat'.format(sensi))
    new_file = '../ini/CCAT/CCAT_{:3.2f}.ini'.format(sensi)
    with open(new_file, 'w') as f:
        f.write(new_text)

import numpy as np
ini_file = '../ini/CCAT_init.ini'
for sensi in np.linspace(0.1, 5, 20):
    with open(ini_file, 'r') as f:
        text = f.read()
    new_text = text.replace('noise_file = ../data/noise_spectra/CCAT_v2.dat',
        'noise_file = ../data/noise_spectra/CCAT_{:3.2f}.dat'.format(sensi))
    new_file = '../ini/CCAT/CCAT_{:3.2f}.ini'.format(sensi)
    with open(new_file, 'w') as f:
        f.write(new_text)
