From c5c45f4023d12d97e3276f8a5c446addd15f1ab4 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 27 Oct 2022 19:22:41 +0300 Subject: [PATCH] [bos #32756] [CEA 32377] Update paravis test scripts. Apply paravisMedUpdate.patch. --- bin/paravis_test.py | 2 +- src/Macro/ShowSalomeObject.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.2