Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CB-quakemodel committed Nov 1, 2023
1 parent b1efe5c commit 439fff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 1 addition & 6 deletions openquake/smt/tests/residuals/residual_plots_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class ResidualsTestCase(unittest.TestCase):
"""
Core test case for the residuals objects
"""

@classmethod
def setUpClass(cls):
"""
Expand Down Expand Up @@ -271,8 +270,4 @@ def tearDownClass(cls):
"""
Deletes the database
"""
shutil.rmtree(cls.out_location)


if __name__ == "__main__":
unittest.main()
shutil.rmtree(cls.out_location)
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class ResidualsTestCase(unittest.TestCase):
"""
Core test case for the residuals objects
"""

@classmethod
def setUpClass(cls):
"""
Expand Down Expand Up @@ -78,7 +77,7 @@ def test_correct_build_load(self):
self.assertListEqual([rec.id for rec in self.database],
EXPECTED_IDS)

def _check_residual_dictionary_correctness(self, res_dict):
def test_check_residual_dictionary_correctness(self, res_dict):
"""
Basic check for correctness of the residual dictionary
"""
Expand Down Expand Up @@ -111,7 +110,7 @@ def test_residuals_execution(self):
"""
residuals1 = res.Residuals(self.gsims, self.imts)
residuals1.get_residuals(self.database, component="Geometric")
self._check_residual_dictionary_correctness(residuals1.residuals)
self.test_check_residual_dictionary_correctness(residuals1.residuals)
stats1 = residuals1.get_residual_statistics()

# yes, we said we do not check for correctness of values.
Expand Down

0 comments on commit 439fff7

Please sign in to comment.