(f, rep, kill=False)
return DMP(rep, f.dom, lev)
Create a DMP out of the given representation.
Create a DMP out of the given representation.
Create a DMP out of the given representation .
def half_per(f, rep, kill=False):
        """Create a DMP out of the given representation. """
        lev = f.lev

        if kill:
            if not lev:
                return rep
            else:
                lev -= 1

        return DMP(rep, f.dom, lev)
def half_per ( f , rep , kill = False ) : lev = f . lev if kill : if not lev : return rep else : lev -= 1 return DMP ( rep , f . dom , lev )