]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
0021803: EDF 2351 : Available versions of MED in TUI function ExportMED aren't consis... vsr/21803
authorvsr <vsr@opencascade.com>
Wed, 15 Feb 2017 12:04:30 +0000 (15:04 +0300)
committervsr <vsr@opencascade.com>
Wed, 15 Feb 2017 12:04:30 +0000 (15:04 +0300)
Update according changes of SMESH API.

src/tests/Test/test_4.py
src/tests/Test/test_5.py

index e4facd3df597330535f5a2fabdcf4bc6e1cae424..6d126285aca2cc880ee06ef743676eebd1b0254e 100755 (executable)
@@ -127,10 +127,10 @@ Python script for GEOM and SMESH
   #
     try:
       ficmed = os.path.join(DIRCASE, 'maill.00.med')
-      box_m.ExportMED( ficmed, 0, SMESH.MED_V2_2, 1, None, 1)
+      box_m.ExportMED(ficmed)
     except Exception, eee:
       error = 2
-      raise Exception('ExportToMEDX() failed. '+eee.message)
+      raise Exception('ExportMED() failed. '+eee.message)
   #
     break
   #
index 07aa93f30da1a45702e5a72544a577c42a0bded4..ad31482ca8b1b65834c553ca2ec9e4aa8ed9f8db 100755 (executable)
@@ -169,7 +169,7 @@ Python script for MED
       meshMEDFile3D.write(ficmed, 2)
     except Exception, eee:
       error = 2
-      raise Exception('ExportToMEDX() failed. '+eee.message)
+      raise Exception('MEDFileUMesh.write() failed. '+eee.message)
   #
     break
   #