Changeset 21176


Ignore:
Timestamp:
08/31/16 20:57:40 (9 years ago)
Author:
seroussi
Message:

BUG: need to change python type to int

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/Par/79North.py

    r21170 r21176  
    1515vx        = numpy.array(archread('../Data/79North.arch','vx'));
    1616vy        = numpy.array(archread('../Data/79North.arch','vy'));
    17 index     = numpy.array(archread('../Data/79North.arch','index'));
     17index     = numpy.array(archread('../Data/79North.arch','index')).astype(int);
    1818surface   = numpy.array(archread('../Data/79North.arch','surface'));
    1919thickness = numpy.array(archread('../Data/79North.arch','thickness'));
  • issm/trunk-jpl/test/Par/Pig.py

    r21170 r21176  
    1515vx_obs    = numpy.array(archread('../Data/Pig.arch','vx_obs'))
    1616vy_obs    = numpy.array(archread('../Data/Pig.arch','vy_obs'))
    17 index     = numpy.array(archread('../Data/Pig.arch','index'))
     17index     = numpy.array(archread('../Data/Pig.arch','index')).astype(int)
    1818surface   = numpy.array(archread('../Data/Pig.arch','surface'))
    1919thickness = numpy.array(archread('../Data/Pig.arch','thickness'))
  • issm/trunk-jpl/test/Par/SquareSheetShelf.py

    r21170 r21176  
    2929vx        = numpy.array(archread('../Data/SquareSheetShelf.arch','vx'));
    3030vy        = numpy.array(archread('../Data/SquareSheetShelf.arch','vy'));
    31 index     = numpy.array(archread('../Data/SquareSheetShelf.arch','index'));
     31index     = numpy.array(archread('../Data/SquareSheetShelf.arch','index')).astype(int);
    3232
    3333[md.initialization.vx]  = InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y)
Note: See TracChangeset for help on using the changeset viewer.