Ignore:
Timestamp:
12/06/13 14:38:34 (2 years ago)
Author:
mmckerns
Message:

updated to match changes in klepto (archive_dict is now called 'cache')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/surrogate.py

    r709 r710  
    2222from klepto.safe import inf_cache as memoized 
    2323#from klepto import inf_cache as memoized 
    24 from klepto.archives import archive_dict, file_archive 
     24from klepto.archives import cache, file_archive 
    2525from klepto.keymaps import picklemap, stringmap, hashmap 
    2626dumps = picklemap(flat=False) 
    2727encode = stringmap(flat=False) 
    2828hashed = hashmap(flat=False) 
    29 cache = archive_dict(archive=file_archive('surrogate.pkl')) 
     29cache = cache(archive=file_archive('surrogate.pkl')) 
    3030#@memoized(keymap=dumps, tol=0, deep=True) # slower, but more robust 
    3131#@memoized(keymap=encode, tol=0, deep=True) 
Note: See TracChangeset for help on using the changeset viewer.