Show
Ignore:
Timestamp:
07/17/13 22:17:23 (11 years ago)
Author:
jerome
Message:

Removed all references to psyco

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/inkcoverage.py

    r3474 r3573  
    3333 
    3434def getPercent(img, nbpix) : 
    35     """Extracts the percents per color component from a picture. 
    36  
    37        Faster without Psyco on my own machine. 
    38     """ 
     35    """Extracts the percents per color component from a picture.""" 
    3936    result = {} 
    4037    bands = img.split() 
     
    4744 
    4845       PIL doesn't produce useable CMYK for our algorithm, so we use the algorithm from PrintBill. 
    49        Psyco speeds this function up by around 2.5 times on my computer. 
    5046    """ 
    5147    if img.mode != "RGB" : 
     
    105101    colorspace = colorspace.upper() 
    106102    computation = globals()["getPercent%s" % colorspace] 
    107     if colorspace in ("CMYK", "GC") : # faster with psyco on my machine 
    108         try : 
    109             import psyco 
    110         except ImportError : 
    111             pass 
    112         else : 
    113             psyco.bind(getPercentCMYK) 
    114  
    115103    index = 0 
    116104    try :