Changeset 9393


Ignore:
Timestamp:
Jan 13, 2015, 2:49:40 PM (10 years ago)
Author:
davies
Message:

Bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/quantity_setting_functions.py

    r9392 r9393  
    375375                  'or evalute to nan over all datasets'
    376376            unset_inds = (isSet!=1).nonzero()[0]
    377             lui = min(5, length(unset_inds))
    378             print 'There are ', length(unset_inds), ' such points'
     377            lui = min(5, len(unset_inds))
     378            print 'There are ', len(unset_inds), ' such points'
    379379            print 'Here are a few:'
    380380            for i in range(lui):
    381                 print x[i]+xll, y[i]+yll
     381                print x[unset_inds[i]]+xll, y[unset_inds[i]]+yll
    382382            raise Exception('It seems the input data needs to be fixed')
    383383
Note: See TracChangeset for help on using the changeset viewer.