Changeset 16465


Ignore:
Timestamp:
10/18/13 16:28:52 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing check that is list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/consistency/checkfield.py

    r16460 r16465  
    140140        #Check row of strings
    141141        if options.exist('stringrow'):
    142                 if not numpy.size(field,1)==1 and not numpy.size(field,1)==0:
     142                if not isinstance(field,list):
    143143                        md = md.checkmessage(options.getfieldvalue('message',\
    144                                         "field '%s' should have 1 row" %fieldname))
     144                                        "field '%s' should be a list" %fieldname))
    145145
    146146        #Check forcings (size and times)
Note: See TracChangeset for help on using the changeset viewer.