]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
#19112 EDF - HYBRIDPLUGON_layersimprinting fails - fix area V9_5_0b1
authoreap <eap@opencascade.com>
Mon, 18 May 2020 12:36:54 +0000 (15:36 +0300)
committereap <eap@opencascade.com>
Mon, 18 May 2020 12:36:54 +0000 (15:36 +0300)
tests/layers_imprinting.py

index df2ef757600debf13eaa7b95b70bb38dd3db113d..40b60643311d87a0ad3a4db9ae6b438a31fed014 100644 (file)
@@ -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))