Changeset 22149


Ignore:
Timestamp:
10/07/17 13:10:10 (8 years ago)
Author:
kruegern
Message:

BUG: fixed bug in python tests 2003 and 2010 resulting in error. Removed extra commented imports in test2110.

Location:
issm/trunk-jpl/test/NightlyRun
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test2003.py

    r22134 r22149  
    2525late = sum(md.mesh.lat[md.mesh.elements - 1],1) / 3
    2626longe = sum(md.mesh.long[md.mesh.elements - 1],1) / 3
    27 pos = np.intersect1d(np.where(late < -75), np.where(longe < 0))
     27pos = np.intersect1d(np.array(np.where(late < -75)), np.array(np.where(longe < 0)))
    2828md.slr.deltathickness[pos] = -1
    2929
  • issm/trunk-jpl/test/NightlyRun/test2010.py

    r22134 r22149  
    2121
    2222md.slr.deltathickness = np.zeros((md.mesh.numberofelements,))
    23 pos = np.intersect1d(np.where(late < -75), np.where(longe > 0))
     23pos = np.intersect1d(np.array(np.where(late < -75)), np.array(np.where(longe > 0)))
    2424#python does not include last element in array slices, (6:7) -> [5:7]
    2525md.slr.deltathickness[pos[5:7]] = -1
  • issm/trunk-jpl/test/NightlyRun/test2110.py

    r22134 r22149  
    77from solve import *
    88from roundmesh import *
    9 #from gmshplanet import *
    109from love_numbers import *
    1110from paterson import *
    12 #from maskpsl import *
    13 #from gmtmask import *
    1411
    1512#mesh earth:
Note: See TracChangeset for help on using the changeset viewer.