Changeset 23562


Ignore:
Timestamp:
12/19/18 07:33:30 (6 years ago)
Author:
bdef
Message:

CHG:change in the treatment of dim2 tables (less agressive)

File:
1 edited

Legend:

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

    r22871 r23562  
    6363                        else:
    6464                                try:
    65                                          exec("md.{}=field[:,0]".format(fieldname))
    66                                          print('{} had a bad dimension, we fixed it but you should check it'.format(fieldname))
     65                                        exec("md.{}=np.squeeze(field)".format(fieldname))
     66                                        print('{} had been squeezed if it was a matrix with only one column'.format(fieldname))
    6767                                except IndexError:
    6868                                        md = md.checkmessage(options.getfieldvalue('message',"field {} should have {} dimension".format(fieldname,len(fieldsize))))
Note: See TracChangeset for help on using the changeset viewer.