From 8d2352551be85e89b532ed4e8ad2e1e883e986f9 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Fri, 20 Sep 2024 10:29:57 +0200 Subject: [PATCH] Fixed test [ci skip] --- openquake/calculators/tests/event_based_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openquake/calculators/tests/event_based_test.py b/openquake/calculators/tests/event_based_test.py index e4f5b736ed22..b8dcb2d08905 100644 --- a/openquake/calculators/tests/event_based_test.py +++ b/openquake/calculators/tests/event_based_test.py @@ -389,9 +389,9 @@ def test_case_16(self): # checking mea_tau_phi df = self.calc.datastore.read_df('mea_tau_phi') ae(len(df.rup_id.unique()), 12) - ae(df.site_id.unique(), [101, 108]) - ae(df.gsim_id.unique(), [0, 3, 1]) - ae(df.imt_id.unique(), [0, 1, 2]) + ae(sorted(df.site_id.unique()), [101, 108]) + ae(sorted(df.gsim_id.unique()), [0, 1, 3]) + ae(sorted(df.imt_id.unique()), [0, 1, 2]) ae(len(df.mea.unique()), 54) ae(len(df.tau.unique()), 7) ae(len(df.phi.unique()), 7)