/[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 4782 by sshaw, Thu Mar 20 05:16:16 2014 UTC revision 4858 by sshaw, Wed Apr 9 23:34:17 2014 UTC
# Line 48  writeFailMessage = "This feature (Simple Line 48  writeFailMessage = "This feature (Simple
48    
49    
50  class TestSeismicTools(unittest.TestCase):  class TestSeismicTools(unittest.TestCase):
51        @unittest.skipIf(getMPISizeWorld() > 1,
52                "segywriters don't support multiple ranks")
53      def test_segy_writer1(self):      def test_segy_writer1(self):
54          sw= SimpleSEGYWriter(receiver_group=[0.,1.,2.], source=1., sampling_interval=10*U.msec, text="testing")          sw= SimpleSEGYWriter(receiver_group=[0.,1.,2.], source=1., sampling_interval=10*U.msec, text="testing")
55          self.assertRaises(ValueError, sw.addRecord, [1])          self.assertRaises(ValueError, sw.addRecord, [1])
# Line 61  class TestSeismicTools(unittest.TestCase Line 63  class TestSeismicTools(unittest.TestCase
63              if str(e) == writeFailMessage:              if str(e) == writeFailMessage:
64                  raise unittest.SkipTest("obspy not installed")                  raise unittest.SkipTest("obspy not installed")
65              raise e              raise e
66            
67        @unittest.skipIf(getMPISizeWorld() > 1,
68                "segywriters don't support multiple ranks")
69      def test_segy_writer2(self):      def test_segy_writer2(self):
70          sw= SimpleSEGYWriter(receiver_group=[(0.,0.),(1.,-1.),(2.,-2)], source=(3,3), sampling_interval=10*U.msec, text="testing")          sw= SimpleSEGYWriter(receiver_group=[(0.,0.),(1.,-1.),(2.,-2)], source=(3,3), sampling_interval=10*U.msec, text="testing")
71          self.assertRaises(ValueError, sw.addRecord, [1])          self.assertRaises(ValueError, sw.addRecord, [1])

Legend:
Removed from v.4782  
changed lines
  Added in v.4858

  ViewVC Help
Powered by ViewVC 1.1.26