%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ |
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/RE_Rect.pyo |
� ;�Pc @ s d Z d d l m Z m Z m Z d e f d � � YZ d e f d � � YZ d e e f d � � YZ d � Z d � Z d d d � � YZ d e e f d � � YZ d e e f d � � YZ d � Z g d g d d � Z d g d d � Z d � Z d � Z d S( s Support functions for RE simplification. This module is intended for use by the RE module. It is in a separate module to keep RE itself cleaner since the algorithm, 'rectangle selection', is a quite separate part that depends on some tricky heuristics. The primary entry function is chooserects(lines, gauges, trace) It chooses 'the best' rectangles from lines to base simplification on. A weight on atoms is given by gauges. The trace parameter is for debugging. pr() gives some example usages of chooserects. i����( t immbitsett mutbitsett immbitranget Rectc B sD e Z d Z d � Z d � Z d � Z d d � Z d � Z e Z RS( t widtht linest gainmemot lnost all_linest common_partc C s | | _ | | _ i | _ d S( N( R R R ( t selfR R ( ( sD /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/RE_Rect.pyt __init__ s c C sK | | _ t g | j D] } | t | � ^ q � | _ | j � | _ d S( N( R R R t idR t get_common_partR ( R t lnobyidR t line( ( sD /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/RE_Rect.pyt init2 s /c C s~ | j } | | @} | | k rO | | _ g | D] } | j | ^ q0 | _ n t | � d k rz t | j d � | _ n d S( Ni i ( R R R t lenR ( R R t olnost lno( ( sD /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/RE_Rect.pyt reducelines# s &i c C s7 g } x* | j | @D] } | j | j | � q W| S( N( R t appendR ( R t pickednosR t i( ( sD /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/RE_Rect.pyt get_lines/ s c C s&