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

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

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

revision 4539 by gross, Thu Nov 28 00:38:10 2013 UTC revision 4541 by gross, Thu Nov 28 01:17:19 2013 UTC
# Line 63  class TestSeismicTools(unittest.TestCase Line 63  class TestSeismicTools(unittest.TestCase
63             data = np.random.ranf(3)             data = np.random.ranf(3)
64             sw.addRecord(data)             sw.addRecord(data)
65          sw.write(os.path.join(WORKDIR,"test2.sgy"))          sw.write(os.path.join(WORKDIR,"test2.sgy"))
66            
67         def test_ricker(self):
68               rw=Ricker(f_dom=40, t_dom=None)
69              
70               self.assertTrue(abs(rw.getValue(0)) < 1e-6)
71               self.assertAlmostEquals(rw.getValue(rw.getCenter()), 1. )
72               self.assertTrue(abs(rw.getAcceleration(0.)) < 1.)
73    
74  if __name__ == "__main__":  if __name__ == "__main__":
75      suite = unittest.TestSuite()      suite = unittest.TestSuite()

Legend:
Removed from v.4539  
changed lines
  Added in v.4541

  ViewVC Help
Powered by ViewVC 1.1.26