def test(self): cfg = os.path.join(os.path.dirname(__file__), 'job.ini') job = self.run_hazard(cfg) [output] = export.core.get_outputs(job.id) # [exported_file] = export.hazard.export(output.id, '/tmp') actual = list(qa_utils.get_medians(output, 'PGA')) expected_medians_pga = [0.48155582, 0.21123045, 0.14484586] assert_almost_equal(actual, expected_medians_pga, decimal=2) actual = list(qa_utils.get_medians(output, 'SA(0.1)')) expected_medians_sa = [0.93913177, 0.40880148, 0.2692668] assert_almost_equal(actual, expected_medians_sa, decimal=2)
def test(self): cfg = os.path.join(os.path.dirname(__file__), 'job.ini') job = self.run_hazard(cfg) [output] = export.core.get_outputs(job.id) actual = list(qa_utils.get_medians(output, 'PGA')) expected_medians = [0.37412136, 0.19021782, 0.1365383] assert_almost_equal(actual, expected_medians, decimal=2)
def test(self): cfg = os.path.join(os.path.dirname(__file__), 'job.ini') job = self.run_hazard(cfg) [output] = export.core.get_outputs(job.id) actual = list(qa_utils.get_medians(output, 'PGA')) expected_medians = [0.48155582, 0.21123045, 0.14484586] assert_almost_equal(actual, expected_medians, decimal=2)