Changeset 6436


Ignore:
Timestamp:
Mar 3, 2009, 11:42:25 AM (16 years ago)
Author:
ole
Message:

Tidying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/numerical_tools.py

    r6174 r6436  
    231231
    232232       
    233 def ensure_numeric(A, typecode = None):
    234     """Ensure that sequence is a Numeric array.
     233def ensure_numeric(A, typecode=None):
     234    """Ensure that sequence is a numeric array.
     235   
    235236    Inputs:
    236237        A: Sequence. If A is already a Numeric array it will be returned
     
    254255        if type(A) == num.ArrayType:
    255256            if A.typecode == typecode:
    256 #                return num.array(A)  #FIXME: Shouldn't this just return A?
    257257                return A
    258258            else:
    259                 return num.array(A,typecode)
    260         else:
    261             return num.array(A,typecode)
     259                return num.array(A, typecode)
     260        else: 
     261            return num.array(A, typecode)
    262262
    263263
Note: See TracChangeset for help on using the changeset viewer.