/[escript]/trunk/downunder/test/python/run_datasources.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_datasources.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3985 by caltinay, Fri Sep 21 06:44:17 2012 UTC revision 3987 by caltinay, Sun Sep 23 23:24:37 2012 UTC
# Line 88  class TestERSDataSource(unittest.TestCas Line 88  class TestERSDataSource(unittest.TestCas
88          s_ref=ref[:,1].reshape(NP)          s_ref=ref[:,1].reshape(NP)
89    
90          out=np.genfromtxt(outfn, delimiter=',', skip_header=1, dtype=float)          out=np.genfromtxt(outfn, delimiter=',', skip_header=1, dtype=float)
91            # recompute nz since ripley might have adjusted number of elements
92            nz=len(out)/(nx*ny)
93          g_out=out[:,0].reshape(nz,ny,nx)          g_out=out[:,0].reshape(nz,ny,nx)
94          s_out=out[:,1].reshape(nz,ny,nx)          s_out=out[:,1].reshape(nz,ny,nx)
95    

Legend:
Removed from v.3985  
changed lines
  Added in v.3987

  ViewVC Help
Powered by ViewVC 1.1.26