Changeset 23562
- Timestamp:
- 12/19/18 07:33:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/consistency/checkfield.py
r22871 r23562 63 63 else: 64 64 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)) 67 67 except IndexError: 68 68 md = md.checkmessage(options.getfieldvalue('message',"field {} should have {} dimension".format(fieldname,len(fieldsize))))
Note:
See TracChangeset
for help on using the changeset viewer.