Changeset 1745 for inundation/caching


Ignore:
Timestamp:
Aug 23, 2005, 3:31:11 PM (20 years ago)
Author:
ole
Message:

Truncation of Numeric arguments to caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/caching/caching.py

    r130 r1745  
    22402240      argstr = argstr + "'"+str(args)+"'"
    22412241    else:
     2242      #FIXME Have a truncation for large Numeric arrays before using str()
     2243      import Numeric
     2244      if type(args) == Numeric.ArrayType:
     2245        if len(args.flat) > textwidth:
     2246          args = 'Array: %s' %args.shape
     2247
    22422248      argstr = argstr + str(args)
    22432249  else:
Note: See TracChangeset for help on using the changeset viewer.