@@ -0,0 +1,1825 @@
+# -*- coding: utf-8 -*-%0A# vim: tabstop=4 shiftwidth=4 softtabstop=4%0A#%0A# Copyright (C) 2015-2019 GEM Foundation%0A#%0A# OpenQuake is free software: you can redistribute it and/or modify it%0A# under the terms of the GNU Affero General Public License as published%0A# by the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# OpenQuake is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU Affero General Public License for more details.%0A#%0A# You should have received a copy of the GNU Affero General Public License%0A# along with OpenQuake. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0Afrom openquake.hazardlib.gsim.skarlatoudis_2013 import (%0A    SkarlatoudisetalSlab2013)%0Afrom openquake.hazardlib.tests.gsim.utils import BaseGSIMTestCase%0A%0A%0Aclass SkarlatoudisetalSlab2013TestCase(BaseGSIMTestCase):%0A    %22%22%22%0A    Tests the Skarlatoudis et al. (2013) model for subduction%0A    intraslab earthquakes%0A    %22%22%22%0A    GSIM_CLASS = SkarlatoudisetalSlab2013%0A    MEAN_FILE = %22SKARL13/SKARL13_SSLAB_CENTRAL_MEAN_1.csv%22%0A    TOTAL_FILE = %22SKARL13/SKARL13_SSLAB_CENTRAL_STDDEV_TOTAL.csv%22%0A    INTER_FILE = %22SKARL13/SKARL13_SSLAB_CENTRAL_STDDEV_INTER.csv%22%0A    INTRA_FILE = %22SKARL13/SKARL13_SSLAB_CENTRAL_STDDEV_INTRA.csv%22%0A%0A    def test_mean(self):%0A        self.check(self.MEAN_FILE,%0A                   max_discrep_percentage=0.1)%0A%0A    def test_std_total(self):%0A        self.check(self.TOTAL_FILE,%0A                   max_discrep_percentage=0.1)%0A%0A    def test_std_inter(self):%0A        self.check(self.INTER_FILE,%0A                   max_discrep_percentage=0.1)%0A%0A    def test_std_intra(self):%0A        self.check(self.INTRA_FILE,%0A                   max_discrep_percentage=0.1)%0A

Add files via upload