Changeset 1746


Ignore:
Timestamp:
Aug 23, 2005, 3:39:30 PM (19 years ago)
Author:
ole
Message:

Fixed truncation of large arrays in caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/caching/caching.py

    r1745 r1746  
    22402240      argstr = argstr + "'"+str(args)+"'"
    22412241    else:
    2242       #FIXME Have a truncation for large Numeric arrays before using str()
     2242      #Truncate large Numeric arrays before using str()
    22432243      import Numeric
    22442244      if type(args) == Numeric.ArrayType:
    22452245        if len(args.flat) > textwidth:
    2246           args = 'Array: %s' %args.shape
     2246          args = 'Array: ' + str(args.shape)
    22472247
    22482248      argstr = argstr + str(args)
Note: See TracChangeset for help on using the changeset viewer.