Skip to content

Commit

Permalink
Fixed test [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Dec 16, 2024
1 parent 1ebf0f3 commit d6bd8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openquake/calculators/tests/event_based_risk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def test_case_7a(self):
text = extract(self.calc.datastore, 'ruptures?threshold=.8').array
nrups = text.count('\n') - 2
losses = self.calc.datastore['loss_by_rupture/loss'][:]
aac(losses, [1356.609, 324.64624, 203.6374, 129.69826])
aac(losses, [1356.609, 324.64624, 203.6374, 129.69820], atol=5e-5)
self.assertEqual(nrups, 2) # two ruptures >= 80% of the losses

def test_case_8(self):
Expand Down

0 comments on commit d6bd8c9

Please sign in to comment.