Show
Ignore:
Timestamp:
03/09/07 16:38:11 (1 year ago)
Author:
ug
Message:

Handling of duplicates within GameList, also during process.
Better access to processing results.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/process.py

    r219 r239  
    3131    for filename in filenames: 
    3232        # print filename 
    33         counter += 1 
    3433        try: 
    3534            file = open(filename) 
     
    4140 
    4241        path, fn = os.path.split(filename) 
    43         gl.process(sgf, path, fn) 
     42        if gl.process(sgf, path, fn, '', CHECK_FOR_DUPLICATES_STRICT): 
     43            if gl.process_results() & IS_DUPLICATE:  
     44                print 'duplicate', counter 
     45        else: print 'SGF error' 
     46        counter += 1 
     47         
    4448    gl.finalize_processing() 
    4549    print 'Processed %d games in %.2f seconds' % (counter, time.time()-starttime)