Changeset 27526


Ignore:
Timestamp:
01/19/23 04:24:22 (2 years ago)
Author:
bdef
Message:

BUG: shape and type fix

File:
1 edited

Legend:

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

    r27458 r27526  
    5454    xflag = np.logical_and(x > xlim[0], x < xlim[1])
    5555    yflag = np.logical_and(y > ylim[0], y < ylim[1])
    56     bothind = np.nonzero(np.logical_and(xflag, yflag))
     56    bothind = np.squeeze(np.where(np.logical_and(xflag, yflag))).astype(int)
    5757    subdata = data[bothind]
    5858    subx = x[bothind]
Note: See TracChangeset for help on using the changeset viewer.