def fillupwig(wig,resolution,fillupval=0):
    
    fillupWig=Wig()
    for chrom in wig.get_chroms():
        # check the chromosome is empty or only single element
        if len(wig[chrom][0])== 0 or len(wig[chrom][0])== 1:
            fillupWig[chrom]=wig[chrom][:]
            break
        
        cs=wig[chrom][0]
        vs=wig[chrom][1]
        ncs=[cs[0]]
        nvs=[vs[0]]
        pc=cs[0]
        pv=vs[0]
        for c,v in itertools.izip(cs[1:],vs[1:]): 
            if c-pc > resolution:
                a=range(pc+resolution,c,resolution)
                ncs+=a
                nvs+=[0.0]*len(a)
            else:
                ncs.append(c)
                nvs.append(v)    
            pc=c
            pv=v
    
        fillupWig.wig[chrom]=[array('l',ncs), array('d',nvs)]
    
    return fillupWig
Remove ``instance`` from the :class:`SessionModel`. Instance
dataset/ETHPy150Open taoliu/taolib/Assoc/sampler.py/fillupwig--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/odm/session.py/SessionModel.pop