assertcur_clustnumber>0andcur_clustnumber<cur_maxlen,"Error, found log with strange clustnumber! %s%s%s%s"%(str(cur_clust),str(cur_coef),str(cur_maxlen),
str(cur_clustnumber))
ifcur_coeffs:
assertlen(cur_coeffs)==cur_clenandcur_coeffs,"Error, there is a cluster witohut stuff? %s%s%s"%(str(cur_clust),str(cur_coef),str(cur_coeffs))
assertall([x>=0andx<=1forxincur_coeffs]),"Error, a coefficient is wrong here! Check me! %s%s%s"%(str(cur_clust),str(cur_coef),str(cur_coeffs))
cur_min=min(cur_coeffs)
cur_max=max(cur_coeffs)
cur_avg=sum(cur_coeffs)/cur_clen
update_status(status+0.4*quanta,' comulative per coeff...')