Skip to content

Commit

Permalink
adding init to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klunk386 committed Nov 13, 2019
1 parent 14569c4 commit bea2752
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions tests/site/test_response.py
Expand Up @@ -141,70 +141,7 @@ def read_psvq_file(self, input_file):

return freq, ampf

def test_2_layer_model_free_surface(self):
"""
Case with two layers
"""

self.check_amplification('./data/psvq/2_layer_model/amp.i0.txt',
np.array([100., 0.]),
np.array([200., 1200.]),
np.array([1900., 2500.]),
np.array([10., 100.]),
0.,
0.)

def test_2_layer_model_1st_interface(self):
"""
Case with two layers and calculation at the 1st interface
"""

self.check_amplification('./data/psvq/2_layer_model/amp.i1.txt',
np.array([100., 0.]),
np.array([200., 1200.]),
np.array([1900., 2500.]),
np.array([10., 100.]),
0.,
100.)

def test_3_layer_model_free_surface(self):
"""
Case with three layers
"""

self.check_amplification('./data/psvq/3_layer_model/amp.i0.txt',
np.array([10., 50., 0]),
np.array([200., 500., 1200.]),
np.array([1900., 2100., 2500.]),
np.array([10., 20., 100.]),
0.,
0.)

def test_3_layer_model_1st_interface(self):
"""
Case with three layers and calculation at the 1st interface
"""

self.check_amplification('./data/psvq/3_layer_model/amp.i1.txt',
np.array([10., 50., 0]),
np.array([200., 500., 1200.]),
np.array([1900., 2100., 2500.]),
np.array([10., 20., 100.]),
0.,
10.)

def test_3_layer_model_2nd_interface(self):
"""
Case with three layers and calculation at the 2st interface
"""

self.check_amplification('./data/psvq/3_layer_model/amp.i2.txt',
np.array([10., 50., 0]),
np.array([200., 500., 1200.]),
np.array([1900., 2100., 2500.]),
np.array([10., 20., 100.]),
0.,
60.)

if __name__ == '__main__':
unittest.main()

0 comments on commit bea2752

Please sign in to comment.