Changeset 6462


Ignore:
Timestamp:
Mar 5, 2009, 10:25:25 AM (15 years ago)
Author:
rwilson
Message:

Removed attempt to raise exception is a string is passed. It wasn't a useful or complete test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/utilities/numerical_tools.py

    r6456 r6462  
    257257    """
    258258
    259     #if isinstance(A, basestring):
    260     if isinstance(A, str):
    261         msg = 'ASorry, cannot handle strings in ensure_numeric()'
    262         raise Exception, msg
    263 
    264     try:
    265         elt = A[0]
    266     except TypeError:
    267         pass
    268     else:
    269         if isinstance(A, basestring):
    270             msg = 'BSorry, cannot handle strings in ensure_numeric()'
    271             raise Exception, msg
    272 
     259#    if isinstance(A, basestring):
     260#        msg = 'Sorry, cannot handle strings in ensure_numeric()'
     261#        raise Exception, msg
    273262
    274263    if typecode is None:
Note: See TracChangeset for help on using the changeset viewer.