From: jfa Date: Thu, 27 Oct 2022 16:22:41 +0000 (+0300) Subject: [bos #32756] [CEA 32377] Update paravis test scripts. Apply paravisMedUpdate.patch. X-Git-Tag: V9_10_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5c45f4023d12d97e3276f8a5c446addd15f1ab4;p=modules%2Fparavis.git [bos #32756] [CEA 32377] Update paravis test scripts. Apply paravisMedUpdate.patch. --- diff --git a/bin/paravis_test.py b/bin/paravis_test.py index 1e8e81e9..54b87e94 100644 --- a/bin/paravis_test.py +++ b/bin/paravis_test.py @@ -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) diff --git a/src/Macro/ShowSalomeObject.py b/src/Macro/ShowSalomeObject.py index f35851fa..52b71f1d 100644 --- a/src/Macro/ShowSalomeObject.py +++ b/src/Macro/ShowSalomeObject.py @@ -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()