Changeset 5791
- Timestamp:
- Sep 26, 2008, 11:26:53 AM (15 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 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 -
anuga_core/source/anuga/fit_interpolate/interpolate.py
r5775 r5791 376 376 point_coordinates = ensure_numeric(point_coordinates, Float) 377 377 f = ensure_numeric(f, Float) 378 379 if use_cache is True: 378 379 import sys 380 if use_cache is True and sys.platform != 'win32': 381 # FIXME (Ole): (Why doesn't this work on windoze?) 382 380 383 X = cache(self._build_interpolation_matrix_A, 381 (point_coordinates),382 {'verbose': verbose},384 args=(point_coordinates,), 385 kwargs={'verbose': verbose}, 383 386 verbose=verbose) 384 387 else:
Note: See TracChangeset
for help on using the changeset viewer.