Changeset 5791 for anuga_core/source/anuga/caching
- Timestamp:
- Sep 26, 2008, 11:26:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/caching/caching.py
r5359 r5791 1029 1029 # ----------------------------------------------------------------------------- 1030 1030 1031 def save_args_to_cache(CD, FN,args,kwargs,compression):1031 def save_args_to_cache(CD, FN, args, kwargs, compression): 1032 1032 """Save arguments to cache 1033 1033 … … 1040 1040 (argsfile, compressed) = myopen(CD+FN+'_'+file_types[1], 'wb', compression) 1041 1041 1042 if not argsfile: 1043 if verbose: 1044 print 'ERROR (caching): Could not open %s' %argsfile.name 1045 raise IOError 1042 if argsfile is None: 1043 msg = 'ERROR (caching): Could not open argsfile for writing: %s' %FN 1044 raise IOError, msg 1046 1045 1047 1046 mysave((args,kwargs),argsfile,compression) # Save args and kwargs to cache
Note: See TracChangeset
for help on using the changeset viewer.