From: abn Date: Tue, 28 Oct 2014 14:42:32 +0000 (+0100) Subject: Further porting: ImportFile is now replaced by OpenDataFile X-Git-Tag: V7_5_0b1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15f57fb7a3bc930e468e7d0e268449c6f321ecac;p=modules%2Fparavis.git Further porting: ImportFile is now replaced by OpenDataFile --- diff --git a/test/VisuPrs/3D_viewer/A1.py b/test/VisuPrs/3D_viewer/A1.py index 5b90cc73..1b1fc5de 100644 --- a/test/VisuPrs/3D_viewer/A1.py +++ b/test/VisuPrs/3D_viewer/A1.py @@ -47,7 +47,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A2.py b/test/VisuPrs/3D_viewer/A2.py index 68050bf2..e75a9e21 100644 --- a/test/VisuPrs/3D_viewer/A2.py +++ b/test/VisuPrs/3D_viewer/A2.py @@ -47,7 +47,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A3.py b/test/VisuPrs/3D_viewer/A3.py index d0f04a09..6b05dd91 100644 --- a/test/VisuPrs/3D_viewer/A3.py +++ b/test/VisuPrs/3D_viewer/A3.py @@ -47,7 +47,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A4.py b/test/VisuPrs/3D_viewer/A4.py index 964cfdc0..034cbd8d 100644 --- a/test/VisuPrs/3D_viewer/A4.py +++ b/test/VisuPrs/3D_viewer/A4.py @@ -46,7 +46,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A5.py b/test/VisuPrs/3D_viewer/A5.py index 3c391317..3362a85f 100644 --- a/test/VisuPrs/3D_viewer/A5.py +++ b/test/VisuPrs/3D_viewer/A5.py @@ -47,7 +47,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -myParavis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A6.py b/test/VisuPrs/3D_viewer/A6.py index 883f7a9d..ff50c0c5 100644 --- a/test/VisuPrs/3D_viewer/A6.py +++ b/test/VisuPrs/3D_viewer/A6.py @@ -48,7 +48,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A7.py b/test/VisuPrs/3D_viewer/A7.py index 327a5f05..4e37a3b7 100644 --- a/test/VisuPrs/3D_viewer/A7.py +++ b/test/VisuPrs/3D_viewer/A7.py @@ -46,7 +46,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A8.py b/test/VisuPrs/3D_viewer/A8.py index c0dcac8a..778c1887 100644 --- a/test/VisuPrs/3D_viewer/A8.py +++ b/test/VisuPrs/3D_viewer/A8.py @@ -46,7 +46,7 @@ print " --------------------------------- " print "file ", file_name print " --------------------------------- " -my_paravis.ImportFile(file_name) +OpenDataFile(file_name) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/A9.py b/test/VisuPrs/3D_viewer/A9.py index d205c95f..dab1d225 100644 --- a/test/VisuPrs/3D_viewer/A9.py +++ b/test/VisuPrs/3D_viewer/A9.py @@ -73,7 +73,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/3D_viewer/B0.py b/test/VisuPrs/3D_viewer/B0.py index 9e281adb..771229a9 100644 --- a/test/VisuPrs/3D_viewer/B0.py +++ b/test/VisuPrs/3D_viewer/B0.py @@ -47,7 +47,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) proxy = GetActiveSource() if proxy is None: raise RuntimeError("Error: can't import file.") diff --git a/test/VisuPrs/Animation/A0.py b/test/VisuPrs/Animation/A0.py index 68e4a2b8..86e95d52 100644 --- a/test/VisuPrs/Animation/A0.py +++ b/test/VisuPrs/Animation/A0.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/A1.py b/test/VisuPrs/Animation/A1.py index 7daa457c..c26a4252 100644 --- a/test/VisuPrs/Animation/A1.py +++ b/test/VisuPrs/Animation/A1.py @@ -32,7 +32,7 @@ my_paravis = paravis.myParavis # 1. TimeStamps.med import print 'Importing "TimeStamps.med"................', file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None: print "FAILED" diff --git a/test/VisuPrs/Animation/A2.py b/test/VisuPrs/Animation/A2.py index dc349469..fa27d603 100644 --- a/test/VisuPrs/Animation/A2.py +++ b/test/VisuPrs/Animation/A2.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/A4.py b/test/VisuPrs/Animation/A4.py index 2cbde37e..a1e11178 100644 --- a/test/VisuPrs/Animation/A4.py +++ b/test/VisuPrs/Animation/A4.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/A7.py b/test/VisuPrs/Animation/A7.py index ede7e45d..802107e2 100644 --- a/test/VisuPrs/Animation/A7.py +++ b/test/VisuPrs/Animation/A7.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/A8.py b/test/VisuPrs/Animation/A8.py index 364df99a..04d3e71d 100644 --- a/test/VisuPrs/Animation/A8.py +++ b/test/VisuPrs/Animation/A8.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/B2.py b/test/VisuPrs/Animation/B2.py index eee076cb..89f9c616 100644 --- a/test/VisuPrs/Animation/B2.py +++ b/test/VisuPrs/Animation/B2.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/B5.py b/test/VisuPrs/Animation/B5.py index f37ebfe6..4c7f3485 100644 --- a/test/VisuPrs/Animation/B5.py +++ b/test/VisuPrs/Animation/B5.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/B6.py b/test/VisuPrs/Animation/B6.py index 6d4fa5f4..52ad97f2 100644 --- a/test/VisuPrs/Animation/B6.py +++ b/test/VisuPrs/Animation/B6.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/C0.py b/test/VisuPrs/Animation/C0.py index b6893156..144510b8 100644 --- a/test/VisuPrs/Animation/C0.py +++ b/test/VisuPrs/Animation/C0.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/C1.py b/test/VisuPrs/Animation/C1.py index a9134959..956e9f74 100644 --- a/test/VisuPrs/Animation/C1.py +++ b/test/VisuPrs/Animation/C1.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/C3.py b/test/VisuPrs/Animation/C3.py index f1c85515..814c61e7 100644 --- a/test/VisuPrs/Animation/C3.py +++ b/test/VisuPrs/Animation/C3.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/C8.py b/test/VisuPrs/Animation/C8.py index 29756502..1069156d 100644 --- a/test/VisuPrs/Animation/C8.py +++ b/test/VisuPrs/Animation/C8.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/D1.py b/test/VisuPrs/Animation/D1.py index 6bde60cf..95403482 100644 --- a/test/VisuPrs/Animation/D1.py +++ b/test/VisuPrs/Animation/D1.py @@ -39,7 +39,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/D2.py b/test/VisuPrs/Animation/D2.py index 6b88567b..cc645d22 100644 --- a/test/VisuPrs/Animation/D2.py +++ b/test/VisuPrs/Animation/D2.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/D6.py b/test/VisuPrs/Animation/D6.py index c049bb1a..780bdbbc 100644 --- a/test/VisuPrs/Animation/D6.py +++ b/test/VisuPrs/Animation/D6.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/D9.py b/test/VisuPrs/Animation/D9.py index ae75f6e4..78f9d733 100644 --- a/test/VisuPrs/Animation/D9.py +++ b/test/VisuPrs/Animation/D9.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/E0.py b/test/VisuPrs/Animation/E0.py index 458685ae..75ccb76b 100644 --- a/test/VisuPrs/Animation/E0.py +++ b/test/VisuPrs/Animation/E0.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/E4.py b/test/VisuPrs/Animation/E4.py index 23d8b38c..849951da 100644 --- a/test/VisuPrs/Animation/E4.py +++ b/test/VisuPrs/Animation/E4.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/E7.py b/test/VisuPrs/Animation/E7.py index 11d3a36b..d699d4f1 100644 --- a/test/VisuPrs/Animation/E7.py +++ b/test/VisuPrs/Animation/E7.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/E8.py b/test/VisuPrs/Animation/E8.py index f5cd1f14..f2cf4ba6 100644 --- a/test/VisuPrs/Animation/E8.py +++ b/test/VisuPrs/Animation/E8.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/F2.py b/test/VisuPrs/Animation/F2.py index 4fdedff6..99be4240 100644 --- a/test/VisuPrs/Animation/F2.py +++ b/test/VisuPrs/Animation/F2.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/F5.py b/test/VisuPrs/Animation/F5.py index e6e99a53..45fa683c 100644 --- a/test/VisuPrs/Animation/F5.py +++ b/test/VisuPrs/Animation/F5.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/F6.py b/test/VisuPrs/Animation/F6.py index 196aa841..b4b7e3c0 100644 --- a/test/VisuPrs/Animation/F6.py +++ b/test/VisuPrs/Animation/F6.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/G0.py b/test/VisuPrs/Animation/G0.py index f293af82..4a8c072f 100644 --- a/test/VisuPrs/Animation/G0.py +++ b/test/VisuPrs/Animation/G0.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/G3.py b/test/VisuPrs/Animation/G3.py index d1425c9a..c11a7457 100644 --- a/test/VisuPrs/Animation/G3.py +++ b/test/VisuPrs/Animation/G3.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: diff --git a/test/VisuPrs/Animation/G4.py b/test/VisuPrs/Animation/G4.py index befdf604..33623bdb 100644 --- a/test/VisuPrs/Animation/G4.py +++ b/test/VisuPrs/Animation/G4.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: diff --git a/test/VisuPrs/Animation/G8.py b/test/VisuPrs/Animation/G8.py index b29edbf6..e4ae70c6 100644 --- a/test/VisuPrs/Animation/G8.py +++ b/test/VisuPrs/Animation/G8.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/H1.py b/test/VisuPrs/Animation/H1.py index 61762e20..e70445c1 100644 --- a/test/VisuPrs/Animation/H1.py +++ b/test/VisuPrs/Animation/H1.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Animation/H2.py b/test/VisuPrs/Animation/H2.py index 04508af6..803bc438 100644 --- a/test/VisuPrs/Animation/H2.py +++ b/test/VisuPrs/Animation/H2.py @@ -38,7 +38,7 @@ print " --------------------------------- " print "file ", theFileName print " --------------------------------- " -myParavis.ImportFile(theFileName) +OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/CutLines/G2.py b/test/VisuPrs/CutLines/G2.py index 1085b0af..0f365d12 100644 --- a/test/VisuPrs/CutLines/G2.py +++ b/test/VisuPrs/CutLines/G2.py @@ -37,7 +37,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/CutPlanes/B3.py b/test/VisuPrs/CutPlanes/B3.py index c0ebf20d..6d4f9f0d 100644 --- a/test/VisuPrs/CutPlanes/B3.py +++ b/test/VisuPrs/CutPlanes/B3.py @@ -32,7 +32,7 @@ print "**** Stage1: Importing MED file" print 'Import "ResOK_0000.med"...............', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/CutPlanes/G2.py b/test/VisuPrs/CutPlanes/G2.py index 53c3dec0..cf185e41 100644 --- a/test/VisuPrs/CutPlanes/G2.py +++ b/test/VisuPrs/CutPlanes/G2.py @@ -37,7 +37,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/DeformedShape/B3.py b/test/VisuPrs/DeformedShape/B3.py index cace4b1a..e8cfb30a 100755 --- a/test/VisuPrs/DeformedShape/B3.py +++ b/test/VisuPrs/DeformedShape/B3.py @@ -33,7 +33,7 @@ print "**** Stage1: Import from MED file in ParaVis" print 'Import "Tria3.med"....................', file_path = datadir + "Tria3.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/DeformedShape/B4.py b/test/VisuPrs/DeformedShape/B4.py index dc3ef44f..7983aa76 100644 --- a/test/VisuPrs/DeformedShape/B4.py +++ b/test/VisuPrs/DeformedShape/B4.py @@ -33,7 +33,7 @@ print "**** Stage1: Import from MED file in ParaVis" print 'Import "Hexa8.med"....................', file_path = datadir + "Hexa8.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/DeformedShape/F9.py b/test/VisuPrs/DeformedShape/F9.py index a7eb977e..f04d7c86 100644 --- a/test/VisuPrs/DeformedShape/F9.py +++ b/test/VisuPrs/DeformedShape/F9.py @@ -38,7 +38,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/GaussPoints/A0.py b/test/VisuPrs/GaussPoints/A0.py index 3cf23a94..302f675f 100644 --- a/test/VisuPrs/GaussPoints/A0.py +++ b/test/VisuPrs/GaussPoints/A0.py @@ -39,7 +39,7 @@ file_name = datadir + "hexa_28320_ELEM.med" field_name = "pression_elem_dom_pb1" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A1.py b/test/VisuPrs/GaussPoints/A1.py index 31c0d706..c503e333 100644 --- a/test/VisuPrs/GaussPoints/A1.py +++ b/test/VisuPrs/GaussPoints/A1.py @@ -40,7 +40,7 @@ field_name = "fieldcelldoublescalar" #field_name = "fieldcelldoublevector" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A2.py b/test/VisuPrs/GaussPoints/A2.py index 1a870690..edcf284c 100644 --- a/test/VisuPrs/GaussPoints/A2.py +++ b/test/VisuPrs/GaussPoints/A2.py @@ -39,7 +39,7 @@ file_name = datadir + "Fields_group3D.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A3.py b/test/VisuPrs/GaussPoints/A3.py index 4761844f..9ee947e6 100644 --- a/test/VisuPrs/GaussPoints/A3.py +++ b/test/VisuPrs/GaussPoints/A3.py @@ -39,7 +39,7 @@ file_name = datadir + "Hexa8.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A4.py b/test/VisuPrs/GaussPoints/A4.py index 4240bc39..2091ac55 100644 --- a/test/VisuPrs/GaussPoints/A4.py +++ b/test/VisuPrs/GaussPoints/A4.py @@ -39,7 +39,7 @@ file_name = datadir + "Penta6.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A5.py b/test/VisuPrs/GaussPoints/A5.py index 3209aaa5..8f8c06a0 100644 --- a/test/VisuPrs/GaussPoints/A5.py +++ b/test/VisuPrs/GaussPoints/A5.py @@ -39,7 +39,7 @@ file_name = datadir + "Tetra4.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A6.py b/test/VisuPrs/GaussPoints/A6.py index 7a7a817b..302cf745 100644 --- a/test/VisuPrs/GaussPoints/A6.py +++ b/test/VisuPrs/GaussPoints/A6.py @@ -39,7 +39,7 @@ file_name = datadir + "Tria3.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A7.py b/test/VisuPrs/GaussPoints/A7.py index 148d906e..a666a0f3 100644 --- a/test/VisuPrs/GaussPoints/A7.py +++ b/test/VisuPrs/GaussPoints/A7.py @@ -39,7 +39,7 @@ file_name = datadir + "Quad4.med" field_name = "scalar field" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/A9.py b/test/VisuPrs/GaussPoints/A9.py index 327d2bd7..ad41bed6 100644 --- a/test/VisuPrs/GaussPoints/A9.py +++ b/test/VisuPrs/GaussPoints/A9.py @@ -39,7 +39,7 @@ file_name = datadir + "carre_en_quad4_seg2_fields.med" field_name = "AREA" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B0.py b/test/VisuPrs/GaussPoints/B0.py index 40bf9d4d..97d56b79 100644 --- a/test/VisuPrs/GaussPoints/B0.py +++ b/test/VisuPrs/GaussPoints/B0.py @@ -39,7 +39,7 @@ file_name = datadir + "cube_hexa8_quad4.med" field_name = "fieldcelldouble" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B1.py b/test/VisuPrs/GaussPoints/B1.py index d5ac2e69..85026f02 100644 --- a/test/VisuPrs/GaussPoints/B1.py +++ b/test/VisuPrs/GaussPoints/B1.py @@ -39,7 +39,7 @@ file_name = datadir + "test_55_solid_concentr_dom.med" field_name = "RN_precipite_restr" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B2.py b/test/VisuPrs/GaussPoints/B2.py index 1ad5aae0..d62870a2 100644 --- a/test/VisuPrs/GaussPoints/B2.py +++ b/test/VisuPrs/GaussPoints/B2.py @@ -39,7 +39,7 @@ file_name = datadir + "H_COUPLEX1.med" field_name = "Head" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B3.py b/test/VisuPrs/GaussPoints/B3.py index 7f8cf444..d7271a3c 100644 --- a/test/VisuPrs/GaussPoints/B3.py +++ b/test/VisuPrs/GaussPoints/B3.py @@ -39,7 +39,7 @@ file_name = datadir + "cas2_2d_couplage_chess_castem.med" field_name = "pH" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B4.py b/test/VisuPrs/GaussPoints/B4.py index 2132c463..5f968650 100644 --- a/test/VisuPrs/GaussPoints/B4.py +++ b/test/VisuPrs/GaussPoints/B4.py @@ -39,7 +39,7 @@ file_name = datadir + "champc.med" field_name = "Am241_restriction" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B5.py b/test/VisuPrs/GaussPoints/B5.py index 8d6e7db4..f907dc70 100644 --- a/test/VisuPrs/GaussPoints/B5.py +++ b/test/VisuPrs/GaussPoints/B5.py @@ -39,7 +39,7 @@ file_name = datadir + "hydro_sea_alv.med" field_name = "Head" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B6.py b/test/VisuPrs/GaussPoints/B6.py index c3eda7ff..daae848c 100644 --- a/test/VisuPrs/GaussPoints/B6.py +++ b/test/VisuPrs/GaussPoints/B6.py @@ -39,7 +39,7 @@ file_name = datadir + "toto.med" field_name = "erreur" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B7.py b/test/VisuPrs/GaussPoints/B7.py index b233dbd1..83bd8eeb 100644 --- a/test/VisuPrs/GaussPoints/B7.py +++ b/test/VisuPrs/GaussPoints/B7.py @@ -39,7 +39,7 @@ file_name = datadir + "couplex_alain.med" field_name = "Conc. I129" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B8.py b/test/VisuPrs/GaussPoints/B8.py index 389f871d..f8b67fa6 100644 --- a/test/VisuPrs/GaussPoints/B8.py +++ b/test/VisuPrs/GaussPoints/B8.py @@ -39,7 +39,7 @@ file_name = datadir + "KCOUPLEX1.med" field_name = "Head" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/B9.py b/test/VisuPrs/GaussPoints/B9.py index a6b872af..ac9fa26a 100644 --- a/test/VisuPrs/GaussPoints/B9.py +++ b/test/VisuPrs/GaussPoints/B9.py @@ -39,7 +39,7 @@ file_name = datadir + "test_hydro.med" field_name = "Head" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C0.py b/test/VisuPrs/GaussPoints/C0.py index e9f29951..8110090f 100644 --- a/test/VisuPrs/GaussPoints/C0.py +++ b/test/VisuPrs/GaussPoints/C0.py @@ -39,7 +39,7 @@ file_name = datadir + "ml.med" field_name = "head_restriction" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C1.py b/test/VisuPrs/GaussPoints/C1.py index 51200612..aa3b9693 100644 --- a/test/VisuPrs/GaussPoints/C1.py +++ b/test/VisuPrs/GaussPoints/C1.py @@ -39,7 +39,7 @@ file_name = datadir + "T_COUPLEX1.med" field_name = "Conc. I129" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C2.py b/test/VisuPrs/GaussPoints/C2.py index 9cd5fba3..fa60f4c3 100644 --- a/test/VisuPrs/GaussPoints/C2.py +++ b/test/VisuPrs/GaussPoints/C2.py @@ -39,7 +39,7 @@ file_name = datadir + "test_hydro_darcy4_out.med" field_name = "DarcyVelocity" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C3.py b/test/VisuPrs/GaussPoints/C3.py index bbc9915b..64043e84 100644 --- a/test/VisuPrs/GaussPoints/C3.py +++ b/test/VisuPrs/GaussPoints/C3.py @@ -39,7 +39,7 @@ file_name = datadir + "UO2_250ans.med" field_name = "Concentration_O2(aq)_mol per l" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C4.py b/test/VisuPrs/GaussPoints/C4.py index 060ad8cc..bd12a2f5 100644 --- a/test/VisuPrs/GaussPoints/C4.py +++ b/test/VisuPrs/GaussPoints/C4.py @@ -39,7 +39,7 @@ file_name = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med" field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"] timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C5.py b/test/VisuPrs/GaussPoints/C5.py index 95e5e185..6ecb6c6b 100644 --- a/test/VisuPrs/GaussPoints/C5.py +++ b/test/VisuPrs/GaussPoints/C5.py @@ -39,7 +39,7 @@ file_name = datadir + "occ4050.med" field_name = "champ_reel" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C6.py b/test/VisuPrs/GaussPoints/C6.py index 750e34f4..9f0aaa9a 100644 --- a/test/VisuPrs/GaussPoints/C6.py +++ b/test/VisuPrs/GaussPoints/C6.py @@ -39,7 +39,7 @@ file_name = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med" field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"] timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C7.py b/test/VisuPrs/GaussPoints/C7.py index 36aecd8d..21f3f4fb 100644 --- a/test/VisuPrs/GaussPoints/C7.py +++ b/test/VisuPrs/GaussPoints/C7.py @@ -39,7 +39,7 @@ file_name = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med" field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"] timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C8.py b/test/VisuPrs/GaussPoints/C8.py index 22701000..d49b2316 100644 --- a/test/VisuPrs/GaussPoints/C8.py +++ b/test/VisuPrs/GaussPoints/C8.py @@ -40,7 +40,7 @@ field_name = "gravit__VARI_ELGA" #timestamp_nb = 1 timestamp_nb = 6 # timestamp 1 is empty -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/GaussPoints/C9.py b/test/VisuPrs/GaussPoints/C9.py index 070b8d20..1ed5020d 100644 --- a/test/VisuPrs/GaussPoints/C9.py +++ b/test/VisuPrs/GaussPoints/C9.py @@ -39,7 +39,7 @@ file_name = datadir + "petit.rmed" field_name = "RESPIL__SIEF_ELGA" timestamp_nb = -1 # last timestamp -paravis.myParavis.ImportFile(file_name) +paravis.OpenDataFile(file_name) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError("File wasn't imported!!!") diff --git a/test/VisuPrs/IsoSurfaces/G2.py b/test/VisuPrs/IsoSurfaces/G2.py index 12d0df52..5f13c929 100644 --- a/test/VisuPrs/IsoSurfaces/G2.py +++ b/test/VisuPrs/IsoSurfaces/G2.py @@ -37,7 +37,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G3.py b/test/VisuPrs/MeshPresentation/G3.py index 0b4f7c06..2c87ba47 100644 --- a/test/VisuPrs/MeshPresentation/G3.py +++ b/test/VisuPrs/MeshPresentation/G3.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G4.py b/test/VisuPrs/MeshPresentation/G4.py index 5db834ee..a3af7098 100644 --- a/test/VisuPrs/MeshPresentation/G4.py +++ b/test/VisuPrs/MeshPresentation/G4.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G5.py b/test/VisuPrs/MeshPresentation/G5.py index 4557f1ce..620d2ef1 100644 --- a/test/VisuPrs/MeshPresentation/G5.py +++ b/test/VisuPrs/MeshPresentation/G5.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G6.py b/test/VisuPrs/MeshPresentation/G6.py index 3e2ee01b..62f9fa66 100644 --- a/test/VisuPrs/MeshPresentation/G6.py +++ b/test/VisuPrs/MeshPresentation/G6.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G7.py b/test/VisuPrs/MeshPresentation/G7.py index 324900b0..e19737ed 100644 --- a/test/VisuPrs/MeshPresentation/G7.py +++ b/test/VisuPrs/MeshPresentation/G7.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G8.py b/test/VisuPrs/MeshPresentation/G8.py index c6bf5c86..749745ad 100644 --- a/test/VisuPrs/MeshPresentation/G8.py +++ b/test/VisuPrs/MeshPresentation/G8.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/G9.py b/test/VisuPrs/MeshPresentation/G9.py index 3ce780dd..8035e168 100644 --- a/test/VisuPrs/MeshPresentation/G9.py +++ b/test/VisuPrs/MeshPresentation/G9.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H0.py b/test/VisuPrs/MeshPresentation/H0.py index 25e1902c..4bc6217f 100644 --- a/test/VisuPrs/MeshPresentation/H0.py +++ b/test/VisuPrs/MeshPresentation/H0.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H1.py b/test/VisuPrs/MeshPresentation/H1.py index 61db2faf..a498965e 100644 --- a/test/VisuPrs/MeshPresentation/H1.py +++ b/test/VisuPrs/MeshPresentation/H1.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H2.py b/test/VisuPrs/MeshPresentation/H2.py index eb89cdf3..404f4b16 100644 --- a/test/VisuPrs/MeshPresentation/H2.py +++ b/test/VisuPrs/MeshPresentation/H2.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H3.py b/test/VisuPrs/MeshPresentation/H3.py index 2edccc53..633af923 100644 --- a/test/VisuPrs/MeshPresentation/H3.py +++ b/test/VisuPrs/MeshPresentation/H3.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H4.py b/test/VisuPrs/MeshPresentation/H4.py index 9f50724e..6a96a8ce 100644 --- a/test/VisuPrs/MeshPresentation/H4.py +++ b/test/VisuPrs/MeshPresentation/H4.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H5.py b/test/VisuPrs/MeshPresentation/H5.py index 1e0d492f..f3d98a22 100644 --- a/test/VisuPrs/MeshPresentation/H5.py +++ b/test/VisuPrs/MeshPresentation/H5.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H6.py b/test/VisuPrs/MeshPresentation/H6.py index 9f87c8b3..156ce9f7 100644 --- a/test/VisuPrs/MeshPresentation/H6.py +++ b/test/VisuPrs/MeshPresentation/H6.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H7.py b/test/VisuPrs/MeshPresentation/H7.py index 7f0041c9..2fd9a046 100644 --- a/test/VisuPrs/MeshPresentation/H7.py +++ b/test/VisuPrs/MeshPresentation/H7.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H8.py b/test/VisuPrs/MeshPresentation/H8.py index fa40baae..bb25aeaf 100644 --- a/test/VisuPrs/MeshPresentation/H8.py +++ b/test/VisuPrs/MeshPresentation/H8.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/H9.py b/test/VisuPrs/MeshPresentation/H9.py index f6716c6f..6f510ffb 100644 --- a/test/VisuPrs/MeshPresentation/H9.py +++ b/test/VisuPrs/MeshPresentation/H9.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I0.py b/test/VisuPrs/MeshPresentation/I0.py index 69b84547..ee66a3c5 100644 --- a/test/VisuPrs/MeshPresentation/I0.py +++ b/test/VisuPrs/MeshPresentation/I0.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I1.py b/test/VisuPrs/MeshPresentation/I1.py index e214a034..ee6179c5 100644 --- a/test/VisuPrs/MeshPresentation/I1.py +++ b/test/VisuPrs/MeshPresentation/I1.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I2.py b/test/VisuPrs/MeshPresentation/I2.py index c85aa0f4..ad458957 100644 --- a/test/VisuPrs/MeshPresentation/I2.py +++ b/test/VisuPrs/MeshPresentation/I2.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I3.py b/test/VisuPrs/MeshPresentation/I3.py index 72569c2b..cc5f0382 100644 --- a/test/VisuPrs/MeshPresentation/I3.py +++ b/test/VisuPrs/MeshPresentation/I3.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I4.py b/test/VisuPrs/MeshPresentation/I4.py index 936505c2..23149bb2 100644 --- a/test/VisuPrs/MeshPresentation/I4.py +++ b/test/VisuPrs/MeshPresentation/I4.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I5.py b/test/VisuPrs/MeshPresentation/I5.py index 9855ec54..866dee1f 100644 --- a/test/VisuPrs/MeshPresentation/I5.py +++ b/test/VisuPrs/MeshPresentation/I5.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I6.py b/test/VisuPrs/MeshPresentation/I6.py index 278d6aa5..b64e7579 100644 --- a/test/VisuPrs/MeshPresentation/I6.py +++ b/test/VisuPrs/MeshPresentation/I6.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I7.py b/test/VisuPrs/MeshPresentation/I7.py index 8002b66e..eaf51f85 100644 --- a/test/VisuPrs/MeshPresentation/I7.py +++ b/test/VisuPrs/MeshPresentation/I7.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I8.py b/test/VisuPrs/MeshPresentation/I8.py index 3ee41bb6..6a06075e 100644 --- a/test/VisuPrs/MeshPresentation/I8.py +++ b/test/VisuPrs/MeshPresentation/I8.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/I9.py b/test/VisuPrs/MeshPresentation/I9.py index d83a23fe..54885152 100644 --- a/test/VisuPrs/MeshPresentation/I9.py +++ b/test/VisuPrs/MeshPresentation/I9.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J0.py b/test/VisuPrs/MeshPresentation/J0.py index 308224eb..940fd2ee 100644 --- a/test/VisuPrs/MeshPresentation/J0.py +++ b/test/VisuPrs/MeshPresentation/J0.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J1.py b/test/VisuPrs/MeshPresentation/J1.py index f111ed5e..969c8736 100644 --- a/test/VisuPrs/MeshPresentation/J1.py +++ b/test/VisuPrs/MeshPresentation/J1.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J2.py b/test/VisuPrs/MeshPresentation/J2.py index 96f8da80..06c16a7b 100644 --- a/test/VisuPrs/MeshPresentation/J2.py +++ b/test/VisuPrs/MeshPresentation/J2.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J3.py b/test/VisuPrs/MeshPresentation/J3.py index 051f4335..2f6c2b1f 100644 --- a/test/VisuPrs/MeshPresentation/J3.py +++ b/test/VisuPrs/MeshPresentation/J3.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J4.py b/test/VisuPrs/MeshPresentation/J4.py index 16f10b03..e3aa50b4 100644 --- a/test/VisuPrs/MeshPresentation/J4.py +++ b/test/VisuPrs/MeshPresentation/J4.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J5.py b/test/VisuPrs/MeshPresentation/J5.py index 0dc6c940..178478c7 100644 --- a/test/VisuPrs/MeshPresentation/J5.py +++ b/test/VisuPrs/MeshPresentation/J5.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J6.py b/test/VisuPrs/MeshPresentation/J6.py index e8d31c39..e4e31cfd 100644 --- a/test/VisuPrs/MeshPresentation/J6.py +++ b/test/VisuPrs/MeshPresentation/J6.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J7.py b/test/VisuPrs/MeshPresentation/J7.py index 575e008a..dba9fa3d 100644 --- a/test/VisuPrs/MeshPresentation/J7.py +++ b/test/VisuPrs/MeshPresentation/J7.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J8.py b/test/VisuPrs/MeshPresentation/J8.py index 1175cb77..6d3cdf56 100644 --- a/test/VisuPrs/MeshPresentation/J8.py +++ b/test/VisuPrs/MeshPresentation/J8.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/J9.py b/test/VisuPrs/MeshPresentation/J9.py index f32e1ab1..5aacfcea 100644 --- a/test/VisuPrs/MeshPresentation/J9.py +++ b/test/VisuPrs/MeshPresentation/J9.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K0.py b/test/VisuPrs/MeshPresentation/K0.py index 4f777e1a..9d73b003 100644 --- a/test/VisuPrs/MeshPresentation/K0.py +++ b/test/VisuPrs/MeshPresentation/K0.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K1.py b/test/VisuPrs/MeshPresentation/K1.py index be55e208..d0ac30e1 100644 --- a/test/VisuPrs/MeshPresentation/K1.py +++ b/test/VisuPrs/MeshPresentation/K1.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K2.py b/test/VisuPrs/MeshPresentation/K2.py index c1b5ec62..3857399b 100644 --- a/test/VisuPrs/MeshPresentation/K2.py +++ b/test/VisuPrs/MeshPresentation/K2.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K3.py b/test/VisuPrs/MeshPresentation/K3.py index 19f5a369..8c4dc48e 100644 --- a/test/VisuPrs/MeshPresentation/K3.py +++ b/test/VisuPrs/MeshPresentation/K3.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K4.py b/test/VisuPrs/MeshPresentation/K4.py index c4d58f27..ad661406 100644 --- a/test/VisuPrs/MeshPresentation/K4.py +++ b/test/VisuPrs/MeshPresentation/K4.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K5.py b/test/VisuPrs/MeshPresentation/K5.py index 57e3f0af..542a17ec 100644 --- a/test/VisuPrs/MeshPresentation/K5.py +++ b/test/VisuPrs/MeshPresentation/K5.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K6.py b/test/VisuPrs/MeshPresentation/K6.py index 7196e960..2e4cc280 100644 --- a/test/VisuPrs/MeshPresentation/K6.py +++ b/test/VisuPrs/MeshPresentation/K6.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K7.py b/test/VisuPrs/MeshPresentation/K7.py index 3c766937..d7273548 100644 --- a/test/VisuPrs/MeshPresentation/K7.py +++ b/test/VisuPrs/MeshPresentation/K7.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K8.py b/test/VisuPrs/MeshPresentation/K8.py index 0f410239..925dcfc7 100644 --- a/test/VisuPrs/MeshPresentation/K8.py +++ b/test/VisuPrs/MeshPresentation/K8.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/K9.py b/test/VisuPrs/MeshPresentation/K9.py index 41663c34..07407a5a 100644 --- a/test/VisuPrs/MeshPresentation/K9.py +++ b/test/VisuPrs/MeshPresentation/K9.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/L0.py b/test/VisuPrs/MeshPresentation/L0.py index dc71a711..33a9be7c 100644 --- a/test/VisuPrs/MeshPresentation/L0.py +++ b/test/VisuPrs/MeshPresentation/L0.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/MeshPresentation/L1.py b/test/VisuPrs/MeshPresentation/L1.py index b3e09c8d..03c7eee2 100644 --- a/test/VisuPrs/MeshPresentation/L1.py +++ b/test/VisuPrs/MeshPresentation/L1.py @@ -36,7 +36,7 @@ print "file ", theFileName print " --------------------------------- " -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/Plot3D/G2.py b/test/VisuPrs/Plot3D/G2.py index e05f7300..c5ca5b83 100755 --- a/test/VisuPrs/Plot3D/G2.py +++ b/test/VisuPrs/Plot3D/G2.py @@ -38,7 +38,7 @@ print " --------------------------------- " #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/SWIG_scripts/A1.py b/test/VisuPrs/SWIG_scripts/A1.py index 6c7074c7..6e465b72 100644 --- a/test/VisuPrs/SWIG_scripts/A1.py +++ b/test/VisuPrs/SWIG_scripts/A1.py @@ -33,7 +33,7 @@ print "**** Stage1: Importing MED file" print 'Import "ResOK_0000.med"...............', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: @@ -122,7 +122,7 @@ else: print 'Import "Fields_group3D.med"...............', file_path = datadir + "Fields_group3D.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader1 = pvsimple.GetActiveSource() if med_reader1 is None: diff --git a/test/VisuPrs/SWIG_scripts/A3.py b/test/VisuPrs/SWIG_scripts/A3.py index 0fb7147a..8967a7bd 100644 --- a/test/VisuPrs/SWIG_scripts/A3.py +++ b/test/VisuPrs/SWIG_scripts/A3.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis print 'Importing "TimeStamps.med"...............', file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/SWIG_scripts/A4.py b/test/VisuPrs/SWIG_scripts/A4.py index a98e5bf2..3b566dc9 100644 --- a/test/VisuPrs/SWIG_scripts/A4.py +++ b/test/VisuPrs/SWIG_scripts/A4.py @@ -55,7 +55,7 @@ field_name = "fieldnodedouble" entity = EntityType.NODE timestamp = 1 -my_paravis.ImportFile(med_file) +OpenDataFile(med_file) med_reader = pvsimple.GetActiveSource() @@ -256,7 +256,7 @@ field_name = "vitesse" entity = EntityType.NODE timestamp = 2 -my_paravis.ImportFile(med_file) +OpenDataFile(med_file) med_reader = pvsimple.GetActiveSource() isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp) diff --git a/test/VisuPrs/SWIG_scripts/A7.py b/test/VisuPrs/SWIG_scripts/A7.py index d20b493f..7ce8d8f0 100644 --- a/test/VisuPrs/SWIG_scripts/A7.py +++ b/test/VisuPrs/SWIG_scripts/A7.py @@ -96,7 +96,7 @@ file_path = datadir + "ResOK_0000.med" field_name = 'vitesse' node_entity = EntityType.NODE -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: @@ -132,7 +132,7 @@ file_path = datadir + "fra.med" field_name = 'VITESSE' pvsimple.SetActiveSource(None) -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/SWIG_scripts/B1.py b/test/VisuPrs/SWIG_scripts/B1.py index 20a0d78f..608cf238 100644 --- a/test/VisuPrs/SWIG_scripts/B1.py +++ b/test/VisuPrs/SWIG_scripts/B1.py @@ -55,7 +55,7 @@ field_name = "fieldnodedouble" entity = EntityType.NODE timestamp = 1 -my_paravis.ImportFile(med_file) +OpenDataFile(med_file) med_reader = pvsimple.GetActiveSource() @@ -288,7 +288,7 @@ field_name = "vitesse" entity = EntityType.NODE timestamp = 2 -my_paravis.ImportFile(med_file) +OpenDataFile(med_file) med_reader = pvsimple.GetActiveSource() isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp) diff --git a/test/VisuPrs/SWIG_scripts/B4.py b/test/VisuPrs/SWIG_scripts/B4.py index 36843248..063d1983 100644 --- a/test/VisuPrs/SWIG_scripts/B4.py +++ b/test/VisuPrs/SWIG_scripts/B4.py @@ -32,7 +32,7 @@ my_paravis = paravis.myParavis # Import MED file med_file_path = datadir + "pointe.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/SWIG_scripts/B5.py b/test/VisuPrs/SWIG_scripts/B5.py index 1d880ebd..2c072eb9 100644 --- a/test/VisuPrs/SWIG_scripts/B5.py +++ b/test/VisuPrs/SWIG_scripts/B5.py @@ -34,7 +34,7 @@ my_paravis = paravis.myParavis # Step 1 print 'Importing "pointe.med"...............', file_path = datadir + "pointe.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/SWIG_scripts/B9.py b/test/VisuPrs/SWIG_scripts/B9.py index 0c6d4180..e12f2fd2 100644 --- a/test/VisuPrs/SWIG_scripts/B9.py +++ b/test/VisuPrs/SWIG_scripts/B9.py @@ -36,7 +36,7 @@ field_name = "fieldnodedouble" entity = EntityType.NODE timestamp = 1 -my_paravis.ImportFile(med_file) +OpenDataFile(med_file) med_reader = pvsimple.GetActiveSource() # Create presentations diff --git a/test/VisuPrs/ScalarMap/B3.py b/test/VisuPrs/ScalarMap/B3.py index e3527ee9..ca931a26 100644 --- a/test/VisuPrs/ScalarMap/B3.py +++ b/test/VisuPrs/ScalarMap/B3.py @@ -31,7 +31,7 @@ my_paravis = paravis.myParavis print 'Importing "fra.med"...', file_path = datadir + "fra.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/ScalarMap/G2.py b/test/VisuPrs/ScalarMap/G2.py index 767f9aff..f76ace3c 100644 --- a/test/VisuPrs/ScalarMap/G2.py +++ b/test/VisuPrs/ScalarMap/G2.py @@ -40,7 +40,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) proxy = GetActiveSource() if proxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py b/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py index 0efbb176..6a4568f2 100644 --- a/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py +++ b/test/VisuPrs/ScalarMap_On_DeformedShape/B3.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis #====================Stage1: Import MED file========================= print 'Importing "fra.med"...................', medFile = datadir + "fra.med" -my_paravis.ImportFile(medFile) +OpenDataFile(medFile) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/StreamLines/B4.py b/test/VisuPrs/StreamLines/B4.py index ae6feb52..ec1167dc 100644 --- a/test/VisuPrs/StreamLines/B4.py +++ b/test/VisuPrs/StreamLines/B4.py @@ -30,7 +30,7 @@ my_paravis = paravis.myParavis # 1. Import MED file print 'Import "ResOK_0000.med"...............', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: print "FAILED" diff --git a/test/VisuPrs/StreamLines/F9.py b/test/VisuPrs/StreamLines/F9.py index 6bce2f13..99a29a69 100644 --- a/test/VisuPrs/StreamLines/F9.py +++ b/test/VisuPrs/StreamLines/F9.py @@ -36,7 +36,7 @@ picturedir = get_picture_dir("StreamLines/F9") # Import of the "Bug829_resu_mode.med" file file_path = datadir + "Bug829_resu_mode.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/StreamLines/G0.py b/test/VisuPrs/StreamLines/G0.py index f0f605d1..7abe227c 100644 --- a/test/VisuPrs/StreamLines/G0.py +++ b/test/VisuPrs/StreamLines/G0.py @@ -30,7 +30,7 @@ my_paravis = paravis.myParavis # 1. Import MED file file_path = datadir + "new_case.rmed" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError, "new_case.rmed was not imported!!!" diff --git a/test/VisuPrs/Vectors/B3.py b/test/VisuPrs/Vectors/B3.py index 8c0c1522..c0868e5f 100644 --- a/test/VisuPrs/Vectors/B3.py +++ b/test/VisuPrs/Vectors/B3.py @@ -34,7 +34,7 @@ print "**** Stage1: Importing MED file" print 'Import "ResOK_0000.med"...............', medFile = datadir + "ResOK_0000.med" -my_paravis.ImportFile(medFile) +OpenDataFile(medFile) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/Vectors/F9.py b/test/VisuPrs/Vectors/F9.py index 827175e4..2b1cb107 100644 --- a/test/VisuPrs/Vectors/F9.py +++ b/test/VisuPrs/Vectors/F9.py @@ -38,7 +38,7 @@ print " --------------------------------- " """Build presentations of the given types for all fields of the given file.""" #print "Import %s..." % theFileName.split('/')[-1], -result = myParavis.ImportFile(theFileName) +result = OpenDataFile(theFileName) aProxy = GetActiveSource() if aProxy is None: raise RuntimeError, "Error: can't import file." diff --git a/test/VisuPrs/bugs/A0.py b/test/VisuPrs/bugs/A0.py index 5ec74f87..31c8377c 100644 --- a/test/VisuPrs/bugs/A0.py +++ b/test/VisuPrs/bugs/A0.py @@ -33,7 +33,7 @@ picturedir = get_picture_dir("bugs/A0") # 1. Import MED file print 'Importing "hydro_sea_alv.med"...', file_path = datadir + "hydro_sea_alv.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/A1.py b/test/VisuPrs/bugs/A1.py index d1d5ec5f..bb8500e9 100644 --- a/test/VisuPrs/bugs/A1.py +++ b/test/VisuPrs/bugs/A1.py @@ -35,7 +35,7 @@ med_file_path = datadir + "fra1.med" pic_path = os.path.join(picturedir, "A1." + pictureext) # 1. Import MED file -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() # 2. Create mesh diff --git a/test/VisuPrs/bugs/A2.py b/test/VisuPrs/bugs/A2.py index 6506109c..5332918f 100644 --- a/test/VisuPrs/bugs/A2.py +++ b/test/VisuPrs/bugs/A2.py @@ -37,7 +37,7 @@ pic_path = os.path.join(picturedir, "A2." + pictureext) print "BREAKPOINT_1" # 1. Import MED file print 'Importing "carre_MIXTE_0000.med"...', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/A3.py b/test/VisuPrs/bugs/A3.py index 0c3f9ce7..272c8e92 100644 --- a/test/VisuPrs/bugs/A3.py +++ b/test/VisuPrs/bugs/A3.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis # 1. Import MED file med_file_path = datadir + "hexa_28320_ELEM.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() # 2. Create vectors diff --git a/test/VisuPrs/bugs/A4.py b/test/VisuPrs/bugs/A4.py index 143b82e4..9a0622e6 100644 --- a/test/VisuPrs/bugs/A4.py +++ b/test/VisuPrs/bugs/A4.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis # 1. Import MED file med_file_path = datadir + "carre_ELEM_0000.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() # 2. Create vectors diff --git a/test/VisuPrs/bugs/A5.py b/test/VisuPrs/bugs/A5.py index 647a5c72..98271a6e 100644 --- a/test/VisuPrs/bugs/A5.py +++ b/test/VisuPrs/bugs/A5.py @@ -39,7 +39,7 @@ if tmp_dir == None: save_file = tmp_dir + "/TimeStamps_save.hdf" print "Save to file ", save_file -paravis.myParavis.ImportFile(data_file) +paravis.OpenDataFile(data_file) myStudyManager.SaveAs(save_file, myStudy, 0) myStudyManager.Close(myStudy) openedStudy = myStudyManager.Open(data_file) diff --git a/test/VisuPrs/bugs/A6.py b/test/VisuPrs/bugs/A6.py index c0f02934..e4cd18ad 100644 --- a/test/VisuPrs/bugs/A6.py +++ b/test/VisuPrs/bugs/A6.py @@ -34,7 +34,7 @@ med_file_path = datadir + "fra.med" # 1. Import MED file print 'Importing "fra.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/A9.py b/test/VisuPrs/bugs/A9.py index b5cabfef..1f108846 100644 --- a/test/VisuPrs/bugs/A9.py +++ b/test/VisuPrs/bugs/A9.py @@ -37,7 +37,7 @@ print "**** Step1: Importing MED file" print 'Import "sortie_med_volumique.med"...............', file_path = datadir + "sortie_med_volumique_v3.0.6.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/B1.py b/test/VisuPrs/bugs/B1.py index 6775e3c4..12a37865 100644 --- a/test/VisuPrs/bugs/B1.py +++ b/test/VisuPrs/bugs/B1.py @@ -34,7 +34,7 @@ picturedir = get_picture_dir("bugs/B1") med_file_path = datadir + "resultat.01.med" print 'Importing "resultat.01.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/C3.py b/test/VisuPrs/bugs/C3.py index 280a38a0..eddb2d0a 100644 --- a/test/VisuPrs/bugs/C3.py +++ b/test/VisuPrs/bugs/C3.py @@ -30,7 +30,7 @@ my_paravis = paravis.myParavis med_file_path = datadir + "MEDfileForStructuredMesh.med" print 'Importing "MEDfileForStructuredMesh.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/C4.py b/test/VisuPrs/bugs/C4.py index 3a859c53..9a9aea17 100644 --- a/test/VisuPrs/bugs/C4.py +++ b/test/VisuPrs/bugs/C4.py @@ -34,7 +34,7 @@ picturedir = get_picture_dir("bugs/C4") med_file_path = datadir + "forma01f.resu.med" print 'Importing "forma01f.resu.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/C5.py b/test/VisuPrs/bugs/C5.py index ba795d49..77902338 100644 --- a/test/VisuPrs/bugs/C5.py +++ b/test/VisuPrs/bugs/C5.py @@ -47,7 +47,7 @@ class DisplayManager: def loadData(self, medFile, meshName=None, myEntity=EntityType.NODE): self.medFile = medFile - my_paravis.ImportFile(medFile) + OpenDataFile(medFile) self.myData = pvsimple.GetActiveSource() self.myEntity = myEntity if meshName is not None: diff --git a/test/VisuPrs/bugs/C6.py b/test/VisuPrs/bugs/C6.py index bb00a535..3451ed1e 100644 --- a/test/VisuPrs/bugs/C6.py +++ b/test/VisuPrs/bugs/C6.py @@ -34,7 +34,7 @@ picturedir = get_picture_dir("bugs/C6") med_file_path = datadir + "relachement_brutal_sans_dudg_gauss.med" print 'Importing "relachement_brutal_sans_dudg_gauss.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/C7.py b/test/VisuPrs/bugs/C7.py index cac11e14..a8cbb7f7 100644 --- a/test/VisuPrs/bugs/C7.py +++ b/test/VisuPrs/bugs/C7.py @@ -34,7 +34,7 @@ picturedir = get_picture_dir("bugs/C7") med_file_path = datadir + "Bug583-Quadratique.resu.med" print 'Importing "Bug583-Quadratique.resu.med"....', -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/C9.py b/test/VisuPrs/bugs/C9.py index 8519f94e..5b73e4c0 100644 --- a/test/VisuPrs/bugs/C9.py +++ b/test/VisuPrs/bugs/C9.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis # 1. Import MED file med_file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/D0.py b/test/VisuPrs/bugs/D0.py index 187a2fb9..a65733b2 100644 --- a/test/VisuPrs/bugs/D0.py +++ b/test/VisuPrs/bugs/D0.py @@ -46,7 +46,7 @@ def get_group_full_name(source, group_name): # 1. Import of the "Bug619-result_calcul_OCC.med" file med_file_path = datadir + "Bug619-result_calcul_OCC.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/bugs/D1.py b/test/VisuPrs/bugs/D1.py index d7d72477..14c0631f 100644 --- a/test/VisuPrs/bugs/D1.py +++ b/test/VisuPrs/bugs/D1.py @@ -32,7 +32,7 @@ picturedir = get_picture_dir("bugs/D1") # 1. Import of the "Bug829_resu_mode.med" file at first time med_file_path = datadir + "Bug829_resu_mode.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader1 = pvsimple.GetActiveSource() if med_reader1 is None: raise RuntimeError, "Bug829_resu_mode.med was not imported!!!" @@ -60,7 +60,7 @@ if abs(max(sizes)-min(sizes)) > 0.01*max(sizes): raise RuntimeError # 3. Import of the "Bug829_resu_mode.med" file at second time -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader2 = pvsimple.GetActiveSource() if med_reader2 is None: raise RuntimeError, "Bug829_resu_mode.med was not imported second time!!!" diff --git a/test/VisuPrs/bugs/D3.py b/test/VisuPrs/bugs/D3.py index fa3339be..20882ad5 100644 --- a/test/VisuPrs/bugs/D3.py +++ b/test/VisuPrs/bugs/D3.py @@ -28,7 +28,7 @@ my_paravis = paravis.myParavis # 1. Import of the "LinearStaticsSTA9.resu.med" file med_file_path = datadir + "LinearStaticsSTA9.resu.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError, "LinearStaticsSTA9.resu.med was not imported!!!" diff --git a/test/VisuPrs/bugs/D6.py b/test/VisuPrs/bugs/D6.py index d3cd983f..590aeafc 100644 --- a/test/VisuPrs/bugs/D6.py +++ b/test/VisuPrs/bugs/D6.py @@ -29,7 +29,7 @@ my_paravis = paravis.myParavis # 1. Import MED file med_file_path = datadir + "fra.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() # 2. Creation of CutSegment presentations, based on time stamps of "VITESSE" field diff --git a/test/VisuPrs/bugs/D7.py b/test/VisuPrs/bugs/D7.py index 84224a18..b7336046 100644 --- a/test/VisuPrs/bugs/D7.py +++ b/test/VisuPrs/bugs/D7.py @@ -32,7 +32,7 @@ my_paravis = paravis.myParavis print 'Importing "Fields_group3D.med"........', med_file_path = datadir + "Fields_group3D.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: print "FAILED" diff --git a/test/VisuPrs/bugs/E0.py b/test/VisuPrs/bugs/E0.py index c45711de..69789d9b 100644 --- a/test/VisuPrs/bugs/E0.py +++ b/test/VisuPrs/bugs/E0.py @@ -31,7 +31,7 @@ my_paravis = paravis.myParavis # 1. MED file import print 'Import "ResOK_0000.med"...............', med_file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError, "ResOK_0000.med was not imported!!!" diff --git a/test/VisuPrs/dump_study/A0.py b/test/VisuPrs/dump_study/A0.py index 1cd8be2c..81604aef 100644 --- a/test/VisuPrs/dump_study/A0.py +++ b/test/VisuPrs/dump_study/A0.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A1.py b/test/VisuPrs/dump_study/A1.py index c25481ae..63c29c0e 100644 --- a/test/VisuPrs/dump_study/A1.py +++ b/test/VisuPrs/dump_study/A1.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A2.py b/test/VisuPrs/dump_study/A2.py index 6ba78898..1452218d 100644 --- a/test/VisuPrs/dump_study/A2.py +++ b/test/VisuPrs/dump_study/A2.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A3.py b/test/VisuPrs/dump_study/A3.py index f6352ddb..a7b11e38 100644 --- a/test/VisuPrs/dump_study/A3.py +++ b/test/VisuPrs/dump_study/A3.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A4.py b/test/VisuPrs/dump_study/A4.py index 9d430856..5a80476c 100644 --- a/test/VisuPrs/dump_study/A4.py +++ b/test/VisuPrs/dump_study/A4.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 1), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A5.py b/test/VisuPrs/dump_study/A5.py index 4a5d8d38..3f917b24 100644 --- a/test/VisuPrs/dump_study/A5.py +++ b/test/VisuPrs/dump_study/A5.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "fra.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A6.py b/test/VisuPrs/dump_study/A6.py index f19c091a..1cc94883 100644 --- a/test/VisuPrs/dump_study/A6.py +++ b/test/VisuPrs/dump_study/A6.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None: raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A7.py b/test/VisuPrs/dump_study/A7.py index 24baf41c..3ca48721 100644 --- a/test/VisuPrs/dump_study/A7.py +++ b/test/VisuPrs/dump_study/A7.py @@ -46,7 +46,7 @@ errors = 0 # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A8.py b/test/VisuPrs/dump_study/A8.py index a2b7d891..b15d7be9 100644 --- a/test/VisuPrs/dump_study/A8.py +++ b/test/VisuPrs/dump_study/A8.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/A9.py b/test/VisuPrs/dump_study/A9.py index b02eb79a..a383f189 100644 --- a/test/VisuPrs/dump_study/A9.py +++ b/test/VisuPrs/dump_study/A9.py @@ -30,7 +30,7 @@ settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Posi # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/dump_study/B0.py b/test/VisuPrs/dump_study/B0.py index fe7b971d..2d26d497 100644 --- a/test/VisuPrs/dump_study/B0.py +++ b/test/VisuPrs/dump_study/B0.py @@ -28,7 +28,7 @@ my_paravis = paravis.myParavis # 1. TimeStamps.med import file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = GetActiveSource() if med_reader is None : raise RuntimeError, "TimeStamps.med wasn't imported..." diff --git a/test/VisuPrs/imps/A1.py b/test/VisuPrs/imps/A1.py index 40d50cc9..3868bf83 100644 --- a/test/VisuPrs/imps/A1.py +++ b/test/VisuPrs/imps/A1.py @@ -59,7 +59,7 @@ def set_prs_colored(prs, proxy, entity, field_name, vector_mode, timestamp_nb): # 1. Import of the "Penta6.med" file print 'Import "Penta6.med" file........', file_path = datadir + "Penta6.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: raise RuntimeError, "Penta6.med was not imported!!!" diff --git a/test/VisuPrs/imps/A2.py b/test/VisuPrs/imps/A2.py index 44692361..684d8325 100644 --- a/test/VisuPrs/imps/A2.py +++ b/test/VisuPrs/imps/A2.py @@ -36,7 +36,7 @@ timestamp = 1 # 1. Import MED file print 'Import "pointe.med"....................', med_file_path = datadir + med_file -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/imps/A3.py b/test/VisuPrs/imps/A3.py index c0b3d978..17406855 100644 --- a/test/VisuPrs/imps/A3.py +++ b/test/VisuPrs/imps/A3.py @@ -29,7 +29,7 @@ error =0 # Import MED file file_path = datadir + "fra.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/imps/A4.py b/test/VisuPrs/imps/A4.py index a7c8cbbd..b717a803 100644 --- a/test/VisuPrs/imps/A4.py +++ b/test/VisuPrs/imps/A4.py @@ -29,7 +29,7 @@ error = 0 # Import MED file med_file_path = datadir + "fra.med" -my_paravis.ImportFile(med_file_path) +OpenDataFile(med_file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/imps/A6.py b/test/VisuPrs/imps/A6.py index 0ae595ed..0d16c469 100644 --- a/test/VisuPrs/imps/A6.py +++ b/test/VisuPrs/imps/A6.py @@ -29,7 +29,7 @@ error =0 # Import MED file file_path = datadir + "Bug891_Box.resu.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/imps/B1.py b/test/VisuPrs/imps/B1.py index 956881d0..38656170 100644 --- a/test/VisuPrs/imps/B1.py +++ b/test/VisuPrs/imps/B1.py @@ -28,7 +28,7 @@ my_paravis = paravis.myParavis # Import MED file file_path = datadir + "fra.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() entity = EntityType.NODE diff --git a/test/VisuPrs/imps/B2.py b/test/VisuPrs/imps/B2.py index be8f3da6..f053b1f8 100644 --- a/test/VisuPrs/imps/B2.py +++ b/test/VisuPrs/imps/B2.py @@ -30,7 +30,7 @@ my_paravis = paravis.myParavis print 'Import "ResOK_0000.med"...............', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/united/A1.py b/test/VisuPrs/united/A1.py index 61b1a8cb..8e4e7147 100644 --- a/test/VisuPrs/united/A1.py +++ b/test/VisuPrs/united/A1.py @@ -31,7 +31,7 @@ print "**** Step1: Import MED file" print 'Import "ResOK_0000.med"...', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: @@ -108,7 +108,7 @@ print "**** Step3: Import another MED file" print 'Import "Fields_group3D.med"...............', file_path = datadir + "Fields_group3D.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader1 = pvsimple.GetActiveSource() if med_reader1 is None: diff --git a/test/VisuPrs/united/A2.py b/test/VisuPrs/united/A2.py index a36aeb33..4c31a36c 100644 --- a/test/VisuPrs/united/A2.py +++ b/test/VisuPrs/united/A2.py @@ -35,7 +35,7 @@ print "**** Step1: Import MED file" print 'Import "fra.med"....................', file_path = datadir + "fra.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/united/A4.py b/test/VisuPrs/united/A4.py index 3a0b4006..ea228f82 100644 --- a/test/VisuPrs/united/A4.py +++ b/test/VisuPrs/united/A4.py @@ -34,7 +34,7 @@ print "**** Step1: Import MED file" print 'Import "Hexa8.med"....................', file_path = datadir + "Hexa8.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader1 = pvsimple.GetActiveSource() if med_reader1 is None: @@ -116,7 +116,7 @@ hide_all(view) print 'Importing file "cube_hexa8_quad4.med".', file_path = datadir + "cube_hexa8_quad4.med" mesh_name2 = 'CUBE_EN_HEXA8_QUAD4' -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader2 = pvsimple.GetActiveSource() if med_reader2 is None: @@ -160,7 +160,7 @@ hide_all(view) print 'Importing file "Penta6.med"...........', file_path = datadir + "Penta6.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader3 = pvsimple.GetActiveSource() if med_reader3 is None: @@ -221,7 +221,7 @@ hide_all(view) print 'Importing "Quad4.med".................', file_path = datadir + "Quad4.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader4 = pvsimple.GetActiveSource() if med_reader4 is None: @@ -269,7 +269,7 @@ print "OK" print 'Importing "Tetra4.med"................', file_path = datadir + "Tetra4.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader5 = pvsimple.GetActiveSource() if med_reader5 is None: @@ -305,7 +305,7 @@ print "OK" print 'Importing "Tria3.med".................', file_path = datadir + "Tria3.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader6 = pvsimple.GetActiveSource() if med_reader6 is None: diff --git a/test/VisuPrs/united/A5.py b/test/VisuPrs/united/A5.py index 7219b03f..e61d66e2 100644 --- a/test/VisuPrs/united/A5.py +++ b/test/VisuPrs/united/A5.py @@ -34,7 +34,7 @@ print "**** Step1: Import MED file" print 'Import "ResOK_0000.med"...............', file_path = datadir + "ResOK_0000.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: diff --git a/test/VisuPrs/united/B0.py b/test/VisuPrs/united/B0.py index 8bbee4d1..1a6c7c57 100644 --- a/test/VisuPrs/united/B0.py +++ b/test/VisuPrs/united/B0.py @@ -30,7 +30,7 @@ error=0 # 1. Import MED file file_path = datadir + "TimeStamps.med" -my_paravis.ImportFile(file_path) +OpenDataFile(file_path) med_reader = pvsimple.GetActiveSource() if med_reader is None: