From a13344681c1013c01a8d5092ef3c7d968581d236 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 18 May 2020 15:36:54 +0300 Subject: [PATCH] #19112 EDF - HYBRIDPLUGON_layersimprinting fails - fix area --- tests/layers_imprinting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/layers_imprinting.py b/tests/layers_imprinting.py index df2ef75..40b6064 100644 --- a/tests/layers_imprinting.py +++ b/tests/layers_imprinting.py @@ -252,6 +252,5 @@ for name in faces_imprinted: assert gr_2.GetMeshInfo()[7] == gr_3.GetMeshInfo()[7] # Compare mesh group with imprinting set by ids and mesh group with imprinting set by geom group - area_error_3 = abs(smesh.GetArea(gr_2)-smesh.GetArea(gr_3))/smesh.GetArea(gr_2) - assert area_error_3 < 1e-10 + assert math.isclose( smesh.GetArea(gr_2), smesh.GetArea(gr_3)) -- 2.39.2