Changeset 710 for branches


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')

Location:
branches/decorate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/memoize.py

    r709 r710  
    44from functools import update_wrapper, wraps as functools_wraps 
    55from klepto.rounding import deep_round, simple_round 
    6 from klepto.archives import archive_dict 
     6from klepto.archives import cache as archive_dict 
    77from klepto.keymaps import stringmap 
    88from klepto import inf_cache 
  • 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.