Changeset 1831 for inundation/caching
- Timestamp:
- Sep 14, 2005, 6:16:06 PM (19 years ago)
- Location:
- inundation/caching
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/caching/caching.py
r1746 r1831 2 2 # caching.py - Supervised caching of function results. 3 3 # Copyright (C) 1999, 2000, 2001, 2002 Ole Moller Nielsen 4 # Australian National University (1999-2003) 5 # Geoscience Australia (2003-present) 4 6 # 5 7 # This program is free software; you can redistribute it and/or modify … … 19 21 # 20 22 # 21 # Contact address: Ole.Nielsen@ anu.edu.au23 # Contact address: Ole.Nielsen@ga.gov.au 22 24 # 23 25 # Version 1.5.6 February 2002 … … 67 69 'verbose': 1, # Write messages to standard output 68 70 'bin': 1, # Use binary format (more efficient) 69 'compression': 1, # Use zli pcompression71 'compression': 1, # Use zlib compression 70 72 'bytecode': 0, # Recompute if bytecode has changed 71 73 'expire': 0 # Automatically remove files that have been accessed … … 232 234 # 233 235 import types, time, string 234 ###FIXME DELETEfrom string import *235 236 236 237 if not cachedir: … … 402 403 # ----------------------------------------------------------------------------- 403 404 405 #FIXME - moving to unit test 404 406 def test(cachedir=None,verbose=0,compression=None): 405 407 """Test the functionality of caching. … … 660 662 else: 661 663 test_error('Recomputed value with changed dependencies failed') 662 664 663 665 # Performance test (with statistics) 664 666 # Don't really rely on this as it will depend on specific computer. … … 722 724 # Test setoption (not yet implemented) 723 725 # 726 724 727 725 728 #==============================================================================
Note: See TracChangeset
for help on using the changeset viewer.