Commit 611d9ffd authored by Philipp Frank's avatar Philipp Frank
Browse files

remove unused function

parent 0c72667b
Pipeline #109591 passed with stages
in 15 minutes and 51 seconds
......@@ -29,23 +29,6 @@ from config import doms, eps, min_timestamps_per_bin, nthreads
from config import sky_movie_mf as sky
from config import startt, dt, npixt
def stat_plotting(pos, KL):
if master:
sc = ift.StatCalculator()
sc_mean = ift.StatCalculator()
sc_spectral = ift.StatCalculator()
skysamples = {'hi': [], 'lo': []}
# CAUTION: the loop and the if-clause cannot be interchanged!
for ss in KL.samples:
if master:
samp = sky(pos+ss)
skysamples['hi'].append(samp['hi'])
skysamples['lo'].append(samp['lo'])
sc.add(samp)
sc_mean.add(0.5*(samp['hi']+samp['lo']).val)
sc_spectral.add(2 * (samp['lo']-samp['hi']).val / (samp['lo']+samp['hi']).val )
def optimization_heuristic(ii, likelihoods):
lh_full, lh_full_amp, lh_full_ph, lh_cut, lh_cut_amp, lh_cut_ph = likelihoods
N_samples = 10 * (1 + ii // 8)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment