]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
[bos #32756] [CEA 32377] Update paravis test scripts. Apply paravisMedUpdate.patch.
authorjfa <jfa@opencascade.com>
Thu, 27 Oct 2022 16:22:41 +0000 (19:22 +0300)
committerjfa <jfa@opencascade.com>
Thu, 27 Oct 2022 16:22:41 +0000 (19:22 +0300)
bin/paravis_test.py
src/Macro/ShowSalomeObject.py

index 1e8e81e984d5003171f44cb7f5c840e4834daee9..54b87e94e403897fd62aec0ed36aaf66f28f5520 100644 (file)
@@ -57,7 +57,7 @@ class TestParavis(unittest.TestCase):
             # ---- import med File
             print('... Load MED file')
             file_path = os.path.join(os.getenv('DATA_DIR'), 'MedFiles', 'ResOK_0000.med')
-            med_reader = pvs.MEDReader(FileName=file_path)
+            med_reader = pvs.MEDReader(FileNames=file_path)
             self.assertIsNotNone(med_reader)
             times = med_reader.TimestepValues.GetData()
             self.assertEqual(len(times), 2)
index f35851fa63991fc261aca11373c781ecd30ce675..52b71f1d2cd7919720c1c3d5404f4df6bb8c53e2 100644 (file)
@@ -72,7 +72,7 @@ for entry in selection:
             tmpf.close()
             mo.ExportMED(fname, True, True, True)
             ShowParaviewView()
-            p = MEDReader(FileName=fname)
+            p = MEDReader(FileNames=fname)
             renderView = GetActiveViewOrCreate('RenderView')
             pd = Show(p, renderView)
             renderView.ResetCamera()