]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
some fixes in tests
authorCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 10 Feb 2015 11:15:46 +0000 (12:15 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 27 Mar 2015 14:45:33 +0000 (15:45 +0100)
some fixes in tests

some fixes in tests

563 files changed:
src/PV_SWIG/presentations.py
src/PV_SWIG/pvsimple.py
test/VisuPrs/3D_viewer/A1.py
test/VisuPrs/3D_viewer/A2.py
test/VisuPrs/3D_viewer/A3.py
test/VisuPrs/3D_viewer/A4.py
test/VisuPrs/3D_viewer/A5.py
test/VisuPrs/3D_viewer/A6.py
test/VisuPrs/3D_viewer/A7.py
test/VisuPrs/3D_viewer/A8.py
test/VisuPrs/3D_viewer/A9.py
test/VisuPrs/3D_viewer/B0.py
test/VisuPrs/3D_viewer/B1.py
test/VisuPrs/3D_viewer/B2.py
test/VisuPrs/Animation/A0.py
test/VisuPrs/Animation/A1.py
test/VisuPrs/Animation/A2.py
test/VisuPrs/Animation/A4.py
test/VisuPrs/Animation/A7.py
test/VisuPrs/Animation/A8.py
test/VisuPrs/Animation/B2.py
test/VisuPrs/Animation/B5.py
test/VisuPrs/Animation/B6.py
test/VisuPrs/Animation/C0.py
test/VisuPrs/Animation/C1.py
test/VisuPrs/Animation/C3.py
test/VisuPrs/Animation/C8.py
test/VisuPrs/Animation/D1.py
test/VisuPrs/Animation/D2.py
test/VisuPrs/Animation/D6.py
test/VisuPrs/Animation/D9.py
test/VisuPrs/Animation/E0.py
test/VisuPrs/Animation/E4.py
test/VisuPrs/Animation/E7.py
test/VisuPrs/Animation/E8.py
test/VisuPrs/Animation/F2.py
test/VisuPrs/Animation/F5.py
test/VisuPrs/Animation/F6.py
test/VisuPrs/Animation/G0.py
test/VisuPrs/Animation/G3.py
test/VisuPrs/Animation/G4.py
test/VisuPrs/Animation/G8.py
test/VisuPrs/Animation/H1.py
test/VisuPrs/Animation/H2.py
test/VisuPrs/CutLines/A0.py
test/VisuPrs/CutLines/A1.py
test/VisuPrs/CutLines/A2.py
test/VisuPrs/CutLines/A3.py
test/VisuPrs/CutLines/A4.py
test/VisuPrs/CutLines/A5.py
test/VisuPrs/CutLines/A6.py
test/VisuPrs/CutLines/A7.py
test/VisuPrs/CutLines/A8.py
test/VisuPrs/CutLines/A9.py
test/VisuPrs/CutLines/B0.py
test/VisuPrs/CutLines/B1.py
test/VisuPrs/CutLines/B2.py
test/VisuPrs/CutLines/E0.py
test/VisuPrs/CutLines/E1.py
test/VisuPrs/CutLines/E2.py
test/VisuPrs/CutLines/E3.py
test/VisuPrs/CutLines/E4.py
test/VisuPrs/CutLines/E5.py
test/VisuPrs/CutLines/E6.py
test/VisuPrs/CutLines/E7.py
test/VisuPrs/CutLines/E8.py
test/VisuPrs/CutLines/E9.py
test/VisuPrs/CutLines/F1.py
test/VisuPrs/CutLines/F2.py
test/VisuPrs/CutLines/F3.py
test/VisuPrs/CutLines/F4.py
test/VisuPrs/CutLines/F5.py
test/VisuPrs/CutLines/F6.py
test/VisuPrs/CutLines/F7.py
test/VisuPrs/CutLines/F8.py
test/VisuPrs/CutLines/F9.py
test/VisuPrs/CutLines/G0.py
test/VisuPrs/CutLines/G1.py
test/VisuPrs/CutLines/G2.py
test/VisuPrs/CutPlanes/A0.py
test/VisuPrs/CutPlanes/A1.py
test/VisuPrs/CutPlanes/A2.py
test/VisuPrs/CutPlanes/A3.py
test/VisuPrs/CutPlanes/A4.py
test/VisuPrs/CutPlanes/A5.py
test/VisuPrs/CutPlanes/A6.py
test/VisuPrs/CutPlanes/A7.py
test/VisuPrs/CutPlanes/A8.py
test/VisuPrs/CutPlanes/A9.py
test/VisuPrs/CutPlanes/B0.py
test/VisuPrs/CutPlanes/B1.py
test/VisuPrs/CutPlanes/B2.py
test/VisuPrs/CutPlanes/B3.py
test/VisuPrs/CutPlanes/E0.py
test/VisuPrs/CutPlanes/E1.py
test/VisuPrs/CutPlanes/E2.py
test/VisuPrs/CutPlanes/E3.py
test/VisuPrs/CutPlanes/E4.py
test/VisuPrs/CutPlanes/E5.py
test/VisuPrs/CutPlanes/E6.py
test/VisuPrs/CutPlanes/E7.py
test/VisuPrs/CutPlanes/E8.py
test/VisuPrs/CutPlanes/E9.py
test/VisuPrs/CutPlanes/F1.py
test/VisuPrs/CutPlanes/F2.py
test/VisuPrs/CutPlanes/F3.py
test/VisuPrs/CutPlanes/F4.py
test/VisuPrs/CutPlanes/F5.py
test/VisuPrs/CutPlanes/F6.py
test/VisuPrs/CutPlanes/F7.py
test/VisuPrs/CutPlanes/F8.py
test/VisuPrs/CutPlanes/F9.py
test/VisuPrs/CutPlanes/G0.py
test/VisuPrs/CutPlanes/G1.py
test/VisuPrs/CutPlanes/G2.py
test/VisuPrs/DeformedShape/A0.py
test/VisuPrs/DeformedShape/A1.py
test/VisuPrs/DeformedShape/A2.py
test/VisuPrs/DeformedShape/A3.py
test/VisuPrs/DeformedShape/A4.py
test/VisuPrs/DeformedShape/A5.py
test/VisuPrs/DeformedShape/A6.py
test/VisuPrs/DeformedShape/A7.py
test/VisuPrs/DeformedShape/A8.py
test/VisuPrs/DeformedShape/A9.py
test/VisuPrs/DeformedShape/B0.py
test/VisuPrs/DeformedShape/B1.py
test/VisuPrs/DeformedShape/B2.py
test/VisuPrs/DeformedShape/B3.py
test/VisuPrs/DeformedShape/B4.py
test/VisuPrs/DeformedShape/E0.py
test/VisuPrs/DeformedShape/E1.py
test/VisuPrs/DeformedShape/E2.py
test/VisuPrs/DeformedShape/E3.py
test/VisuPrs/DeformedShape/E4.py
test/VisuPrs/DeformedShape/E5.py
test/VisuPrs/DeformedShape/E6.py
test/VisuPrs/DeformedShape/E7.py
test/VisuPrs/DeformedShape/E8.py
test/VisuPrs/DeformedShape/E9.py
test/VisuPrs/DeformedShape/F1.py
test/VisuPrs/DeformedShape/F2.py
test/VisuPrs/DeformedShape/F3.py
test/VisuPrs/DeformedShape/F4.py
test/VisuPrs/DeformedShape/F5.py
test/VisuPrs/DeformedShape/F6.py
test/VisuPrs/DeformedShape/F7.py
test/VisuPrs/DeformedShape/F8.py
test/VisuPrs/DeformedShape/F9.py
test/VisuPrs/GaussPoints/A0.py
test/VisuPrs/GaussPoints/A1.py
test/VisuPrs/GaussPoints/A2.py
test/VisuPrs/GaussPoints/A3.py
test/VisuPrs/GaussPoints/A4.py
test/VisuPrs/GaussPoints/A5.py
test/VisuPrs/GaussPoints/A6.py
test/VisuPrs/GaussPoints/A7.py
test/VisuPrs/GaussPoints/A9.py
test/VisuPrs/GaussPoints/B0.py
test/VisuPrs/GaussPoints/B1.py
test/VisuPrs/GaussPoints/B2.py
test/VisuPrs/GaussPoints/B3.py
test/VisuPrs/GaussPoints/B4.py
test/VisuPrs/GaussPoints/B5.py
test/VisuPrs/GaussPoints/B6.py
test/VisuPrs/GaussPoints/B7.py
test/VisuPrs/GaussPoints/B8.py
test/VisuPrs/GaussPoints/B9.py
test/VisuPrs/GaussPoints/C0.py
test/VisuPrs/GaussPoints/C1.py
test/VisuPrs/GaussPoints/C2.py
test/VisuPrs/GaussPoints/C3.py
test/VisuPrs/GaussPoints/C4.py
test/VisuPrs/GaussPoints/C5.py
test/VisuPrs/GaussPoints/C6.py
test/VisuPrs/GaussPoints/C7.py
test/VisuPrs/GaussPoints/C8.py
test/VisuPrs/GaussPoints/C9.py
test/VisuPrs/ImportMedField/A0.py
test/VisuPrs/ImportMedField/A1.py
test/VisuPrs/ImportMedField/A2.py
test/VisuPrs/ImportMedField/A3.py
test/VisuPrs/ImportMedField/A4.py
test/VisuPrs/ImportMedField/A5.py
test/VisuPrs/ImportMedField/A6.py
test/VisuPrs/ImportMedField/A7.py
test/VisuPrs/ImportMedField/A8.py
test/VisuPrs/ImportMedField/A9.py
test/VisuPrs/ImportMedField/B0.py
test/VisuPrs/ImportMedField/B1.py
test/VisuPrs/ImportMedField/B2.py
test/VisuPrs/ImportMedField/B3.py
test/VisuPrs/ImportMedField/B4.py
test/VisuPrs/ImportMedField/B5.py
test/VisuPrs/ImportMedField/B6.py
test/VisuPrs/ImportMedField/B7.py
test/VisuPrs/ImportMedField/B8.py
test/VisuPrs/ImportMedField/B9.py
test/VisuPrs/ImportMedField/C0.py
test/VisuPrs/ImportMedField/C1.py
test/VisuPrs/ImportMedField/C2.py
test/VisuPrs/IsoSurfaces/A0.py
test/VisuPrs/IsoSurfaces/A1.py
test/VisuPrs/IsoSurfaces/A2.py
test/VisuPrs/IsoSurfaces/A3.py
test/VisuPrs/IsoSurfaces/A4.py
test/VisuPrs/IsoSurfaces/A5.py
test/VisuPrs/IsoSurfaces/A6.py
test/VisuPrs/IsoSurfaces/A7.py
test/VisuPrs/IsoSurfaces/A8.py
test/VisuPrs/IsoSurfaces/A9.py
test/VisuPrs/IsoSurfaces/B0.py
test/VisuPrs/IsoSurfaces/B1.py
test/VisuPrs/IsoSurfaces/B2.py
test/VisuPrs/IsoSurfaces/E0.py
test/VisuPrs/IsoSurfaces/E1.py
test/VisuPrs/IsoSurfaces/E2.py
test/VisuPrs/IsoSurfaces/E3.py
test/VisuPrs/IsoSurfaces/E4.py
test/VisuPrs/IsoSurfaces/E5.py
test/VisuPrs/IsoSurfaces/E6.py
test/VisuPrs/IsoSurfaces/E7.py
test/VisuPrs/IsoSurfaces/E8.py
test/VisuPrs/IsoSurfaces/E9.py
test/VisuPrs/IsoSurfaces/F1.py
test/VisuPrs/IsoSurfaces/F2.py
test/VisuPrs/IsoSurfaces/F3.py
test/VisuPrs/IsoSurfaces/F4.py
test/VisuPrs/IsoSurfaces/F5.py
test/VisuPrs/IsoSurfaces/F6.py
test/VisuPrs/IsoSurfaces/F7.py
test/VisuPrs/IsoSurfaces/F8.py
test/VisuPrs/IsoSurfaces/F9.py
test/VisuPrs/IsoSurfaces/G0.py
test/VisuPrs/IsoSurfaces/G1.py
test/VisuPrs/IsoSurfaces/G2.py
test/VisuPrs/MeshPresentation/A0.py
test/VisuPrs/MeshPresentation/A1.py
test/VisuPrs/MeshPresentation/A2.py
test/VisuPrs/MeshPresentation/A3.py
test/VisuPrs/MeshPresentation/A4.py
test/VisuPrs/MeshPresentation/A5.py
test/VisuPrs/MeshPresentation/A6.py
test/VisuPrs/MeshPresentation/A7.py
test/VisuPrs/MeshPresentation/A8.py
test/VisuPrs/MeshPresentation/A9.py
test/VisuPrs/MeshPresentation/B0.py
test/VisuPrs/MeshPresentation/B1.py
test/VisuPrs/MeshPresentation/B2.py
test/VisuPrs/MeshPresentation/E0.py
test/VisuPrs/MeshPresentation/E1.py
test/VisuPrs/MeshPresentation/E2.py
test/VisuPrs/MeshPresentation/E3.py
test/VisuPrs/MeshPresentation/E4.py
test/VisuPrs/MeshPresentation/E5.py
test/VisuPrs/MeshPresentation/E6.py
test/VisuPrs/MeshPresentation/E7.py
test/VisuPrs/MeshPresentation/E8.py
test/VisuPrs/MeshPresentation/E9.py
test/VisuPrs/MeshPresentation/F0.py
test/VisuPrs/MeshPresentation/F1.py
test/VisuPrs/MeshPresentation/F2.py
test/VisuPrs/MeshPresentation/F3.py
test/VisuPrs/MeshPresentation/F4.py
test/VisuPrs/MeshPresentation/F5.py
test/VisuPrs/MeshPresentation/F6.py
test/VisuPrs/MeshPresentation/F7.py
test/VisuPrs/MeshPresentation/F8.py
test/VisuPrs/MeshPresentation/F9.py
test/VisuPrs/MeshPresentation/G0.py
test/VisuPrs/MeshPresentation/G1.py
test/VisuPrs/MeshPresentation/G3.py
test/VisuPrs/MeshPresentation/G4.py
test/VisuPrs/MeshPresentation/G5.py
test/VisuPrs/MeshPresentation/G6.py
test/VisuPrs/MeshPresentation/G7.py
test/VisuPrs/MeshPresentation/G8.py
test/VisuPrs/MeshPresentation/G9.py
test/VisuPrs/MeshPresentation/H0.py
test/VisuPrs/MeshPresentation/H1.py
test/VisuPrs/MeshPresentation/H2.py
test/VisuPrs/MeshPresentation/H3.py
test/VisuPrs/MeshPresentation/H4.py
test/VisuPrs/MeshPresentation/H5.py
test/VisuPrs/MeshPresentation/H6.py
test/VisuPrs/MeshPresentation/H7.py
test/VisuPrs/MeshPresentation/H8.py
test/VisuPrs/MeshPresentation/H9.py
test/VisuPrs/MeshPresentation/I0.py
test/VisuPrs/MeshPresentation/I1.py
test/VisuPrs/MeshPresentation/I2.py
test/VisuPrs/MeshPresentation/I3.py
test/VisuPrs/MeshPresentation/I4.py
test/VisuPrs/MeshPresentation/I5.py
test/VisuPrs/MeshPresentation/I6.py
test/VisuPrs/MeshPresentation/I7.py
test/VisuPrs/MeshPresentation/I8.py
test/VisuPrs/MeshPresentation/I9.py
test/VisuPrs/MeshPresentation/J0.py
test/VisuPrs/MeshPresentation/J1.py
test/VisuPrs/MeshPresentation/J2.py
test/VisuPrs/MeshPresentation/J3.py
test/VisuPrs/MeshPresentation/J4.py
test/VisuPrs/MeshPresentation/J5.py
test/VisuPrs/MeshPresentation/J6.py
test/VisuPrs/MeshPresentation/J7.py
test/VisuPrs/MeshPresentation/J8.py
test/VisuPrs/MeshPresentation/J9.py
test/VisuPrs/MeshPresentation/K0.py
test/VisuPrs/MeshPresentation/K1.py
test/VisuPrs/MeshPresentation/K2.py
test/VisuPrs/MeshPresentation/K3.py
test/VisuPrs/MeshPresentation/K4.py
test/VisuPrs/MeshPresentation/K5.py
test/VisuPrs/MeshPresentation/K6.py
test/VisuPrs/MeshPresentation/K7.py
test/VisuPrs/MeshPresentation/K8.py
test/VisuPrs/MeshPresentation/K9.py
test/VisuPrs/MeshPresentation/L0.py
test/VisuPrs/MeshPresentation/L1.py
test/VisuPrs/Plot3D/A0.py
test/VisuPrs/Plot3D/A1.py
test/VisuPrs/Plot3D/A2.py
test/VisuPrs/Plot3D/A3.py
test/VisuPrs/Plot3D/A4.py
test/VisuPrs/Plot3D/A5.py
test/VisuPrs/Plot3D/A6.py
test/VisuPrs/Plot3D/A7.py
test/VisuPrs/Plot3D/A8.py
test/VisuPrs/Plot3D/A9.py
test/VisuPrs/Plot3D/B0.py
test/VisuPrs/Plot3D/B1.py
test/VisuPrs/Plot3D/B2.py
test/VisuPrs/Plot3D/E0.py
test/VisuPrs/Plot3D/E1.py
test/VisuPrs/Plot3D/E2.py
test/VisuPrs/Plot3D/E3.py
test/VisuPrs/Plot3D/E4.py
test/VisuPrs/Plot3D/E5.py
test/VisuPrs/Plot3D/E6.py
test/VisuPrs/Plot3D/E7.py
test/VisuPrs/Plot3D/E8.py
test/VisuPrs/Plot3D/E9.py
test/VisuPrs/Plot3D/F1.py
test/VisuPrs/Plot3D/F2.py
test/VisuPrs/Plot3D/F3.py
test/VisuPrs/Plot3D/F4.py
test/VisuPrs/Plot3D/F5.py
test/VisuPrs/Plot3D/F6.py
test/VisuPrs/Plot3D/F7.py
test/VisuPrs/Plot3D/F8.py
test/VisuPrs/Plot3D/F9.py
test/VisuPrs/Plot3D/G0.py
test/VisuPrs/Plot3D/G1.py
test/VisuPrs/Plot3D/G2.py
test/VisuPrs/SWIG_scripts/A1.py
test/VisuPrs/SWIG_scripts/A3.py
test/VisuPrs/SWIG_scripts/A4.py
test/VisuPrs/SWIG_scripts/A5.py
test/VisuPrs/SWIG_scripts/A6.py
test/VisuPrs/SWIG_scripts/A7.py
test/VisuPrs/SWIG_scripts/B0.py
test/VisuPrs/SWIG_scripts/B1.py
test/VisuPrs/SWIG_scripts/B4.py
test/VisuPrs/SWIG_scripts/B5.py
test/VisuPrs/SWIG_scripts/B6.py
test/VisuPrs/SWIG_scripts/B7.py
test/VisuPrs/SWIG_scripts/B8.py
test/VisuPrs/SWIG_scripts/B9.py
test/VisuPrs/SWIG_scripts/C6.py
test/VisuPrs/SWIG_scripts/C7.py
test/VisuPrs/ScalarMap/A0.py
test/VisuPrs/ScalarMap/A1.py
test/VisuPrs/ScalarMap/A2.py
test/VisuPrs/ScalarMap/A3.py
test/VisuPrs/ScalarMap/A4.py
test/VisuPrs/ScalarMap/A5.py
test/VisuPrs/ScalarMap/A6.py
test/VisuPrs/ScalarMap/A7.py
test/VisuPrs/ScalarMap/A8.py
test/VisuPrs/ScalarMap/A9.py
test/VisuPrs/ScalarMap/B0.py
test/VisuPrs/ScalarMap/B1.py
test/VisuPrs/ScalarMap/B2.py
test/VisuPrs/ScalarMap/B3.py
test/VisuPrs/ScalarMap/E0.py
test/VisuPrs/ScalarMap/E1.py
test/VisuPrs/ScalarMap/E2.py
test/VisuPrs/ScalarMap/E3.py
test/VisuPrs/ScalarMap/E4.py
test/VisuPrs/ScalarMap/E5.py
test/VisuPrs/ScalarMap/E6.py
test/VisuPrs/ScalarMap/E7.py
test/VisuPrs/ScalarMap/E8.py
test/VisuPrs/ScalarMap/E9.py
test/VisuPrs/ScalarMap/F1.py
test/VisuPrs/ScalarMap/F2.py
test/VisuPrs/ScalarMap/F3.py
test/VisuPrs/ScalarMap/F4.py
test/VisuPrs/ScalarMap/F5.py
test/VisuPrs/ScalarMap/F6.py
test/VisuPrs/ScalarMap/F7.py
test/VisuPrs/ScalarMap/F8.py
test/VisuPrs/ScalarMap/F9.py
test/VisuPrs/ScalarMap/G0.py
test/VisuPrs/ScalarMap/G1.py
test/VisuPrs/ScalarMap/G2.py
test/VisuPrs/ScalarMap_On_DeformedShape/A0.py
test/VisuPrs/ScalarMap_On_DeformedShape/A1.py
test/VisuPrs/ScalarMap_On_DeformedShape/A2.py
test/VisuPrs/ScalarMap_On_DeformedShape/A3.py
test/VisuPrs/ScalarMap_On_DeformedShape/A4.py
test/VisuPrs/ScalarMap_On_DeformedShape/A5.py
test/VisuPrs/ScalarMap_On_DeformedShape/A6.py
test/VisuPrs/ScalarMap_On_DeformedShape/A7.py
test/VisuPrs/ScalarMap_On_DeformedShape/A8.py
test/VisuPrs/ScalarMap_On_DeformedShape/A9.py
test/VisuPrs/ScalarMap_On_DeformedShape/B0.py
test/VisuPrs/ScalarMap_On_DeformedShape/B1.py
test/VisuPrs/ScalarMap_On_DeformedShape/B2.py
test/VisuPrs/ScalarMap_On_DeformedShape/B3.py
test/VisuPrs/ScalarMap_On_DeformedShape/E0.py
test/VisuPrs/ScalarMap_On_DeformedShape/E1.py
test/VisuPrs/ScalarMap_On_DeformedShape/E2.py
test/VisuPrs/ScalarMap_On_DeformedShape/E3.py
test/VisuPrs/ScalarMap_On_DeformedShape/E4.py
test/VisuPrs/ScalarMap_On_DeformedShape/E5.py
test/VisuPrs/ScalarMap_On_DeformedShape/E6.py
test/VisuPrs/ScalarMap_On_DeformedShape/E7.py
test/VisuPrs/ScalarMap_On_DeformedShape/E8.py
test/VisuPrs/ScalarMap_On_DeformedShape/E9.py
test/VisuPrs/ScalarMap_On_DeformedShape/F1.py
test/VisuPrs/ScalarMap_On_DeformedShape/F2.py
test/VisuPrs/ScalarMap_On_DeformedShape/F3.py
test/VisuPrs/ScalarMap_On_DeformedShape/F4.py
test/VisuPrs/ScalarMap_On_DeformedShape/F5.py
test/VisuPrs/ScalarMap_On_DeformedShape/F6.py
test/VisuPrs/ScalarMap_On_DeformedShape/F7.py
test/VisuPrs/ScalarMap_On_DeformedShape/F8.py
test/VisuPrs/StreamLines/A0.py
test/VisuPrs/StreamLines/A1.py
test/VisuPrs/StreamLines/A2.py
test/VisuPrs/StreamLines/A3.py
test/VisuPrs/StreamLines/A4.py
test/VisuPrs/StreamLines/A5.py
test/VisuPrs/StreamLines/A6.py
test/VisuPrs/StreamLines/A7.py
test/VisuPrs/StreamLines/A8.py
test/VisuPrs/StreamLines/A9.py
test/VisuPrs/StreamLines/B0.py
test/VisuPrs/StreamLines/B1.py
test/VisuPrs/StreamLines/B2.py
test/VisuPrs/StreamLines/B3.py
test/VisuPrs/StreamLines/B4.py
test/VisuPrs/StreamLines/E0.py
test/VisuPrs/StreamLines/E1.py
test/VisuPrs/StreamLines/E2.py
test/VisuPrs/StreamLines/E3.py
test/VisuPrs/StreamLines/E4.py
test/VisuPrs/StreamLines/E5.py
test/VisuPrs/StreamLines/E6.py
test/VisuPrs/StreamLines/E7.py
test/VisuPrs/StreamLines/E8.py
test/VisuPrs/StreamLines/E9.py
test/VisuPrs/StreamLines/F1.py
test/VisuPrs/StreamLines/F2.py
test/VisuPrs/StreamLines/F3.py
test/VisuPrs/StreamLines/F4.py
test/VisuPrs/StreamLines/F5.py
test/VisuPrs/StreamLines/F6.py
test/VisuPrs/StreamLines/F7.py
test/VisuPrs/StreamLines/F8.py
test/VisuPrs/StreamLines/F9.py
test/VisuPrs/StreamLines/G0.py
test/VisuPrs/Tables/A0.py
test/VisuPrs/Tables/A2.py
test/VisuPrs/Util/paravistest.py
test/VisuPrs/Util/paravistesthelper.py
test/VisuPrs/Vectors/A0.py
test/VisuPrs/Vectors/A1.py
test/VisuPrs/Vectors/A2.py
test/VisuPrs/Vectors/A3.py
test/VisuPrs/Vectors/A4.py
test/VisuPrs/Vectors/A5.py
test/VisuPrs/Vectors/A6.py
test/VisuPrs/Vectors/A7.py
test/VisuPrs/Vectors/A8.py
test/VisuPrs/Vectors/A9.py
test/VisuPrs/Vectors/B0.py
test/VisuPrs/Vectors/B1.py
test/VisuPrs/Vectors/B2.py
test/VisuPrs/Vectors/B3.py
test/VisuPrs/Vectors/E0.py
test/VisuPrs/Vectors/E1.py
test/VisuPrs/Vectors/E2.py
test/VisuPrs/Vectors/E3.py
test/VisuPrs/Vectors/E4.py
test/VisuPrs/Vectors/E5.py
test/VisuPrs/Vectors/E6.py
test/VisuPrs/Vectors/E7.py
test/VisuPrs/Vectors/E8.py
test/VisuPrs/Vectors/E9.py
test/VisuPrs/Vectors/F1.py
test/VisuPrs/Vectors/F2.py
test/VisuPrs/Vectors/F3.py
test/VisuPrs/Vectors/F4.py
test/VisuPrs/Vectors/F5.py
test/VisuPrs/Vectors/F6.py
test/VisuPrs/Vectors/F7.py
test/VisuPrs/Vectors/F8.py
test/VisuPrs/Vectors/F9.py
test/VisuPrs/bugs/A0.py
test/VisuPrs/bugs/A1.py
test/VisuPrs/bugs/A2.py
test/VisuPrs/bugs/A3.py
test/VisuPrs/bugs/A4.py
test/VisuPrs/bugs/A5.py
test/VisuPrs/bugs/A6.py
test/VisuPrs/bugs/A7.py
test/VisuPrs/bugs/A9.py
test/VisuPrs/bugs/B1.py
test/VisuPrs/bugs/C3.py
test/VisuPrs/bugs/C4.py
test/VisuPrs/bugs/C5.py
test/VisuPrs/bugs/C6.py
test/VisuPrs/bugs/C7.py
test/VisuPrs/bugs/C8.py
test/VisuPrs/bugs/C9.py
test/VisuPrs/bugs/D0.py
test/VisuPrs/bugs/D1.py
test/VisuPrs/bugs/D3.py
test/VisuPrs/bugs/D5.py
test/VisuPrs/bugs/D6.py
test/VisuPrs/bugs/D7.py
test/VisuPrs/bugs/E0.py
test/VisuPrs/dump_study/A0.py
test/VisuPrs/dump_study/A1.py
test/VisuPrs/dump_study/A2.py
test/VisuPrs/dump_study/A3.py
test/VisuPrs/dump_study/A4.py
test/VisuPrs/dump_study/A5.py
test/VisuPrs/dump_study/A6.py
test/VisuPrs/dump_study/A7.py
test/VisuPrs/dump_study/A8.py
test/VisuPrs/dump_study/A9.py
test/VisuPrs/dump_study/B0.py
test/VisuPrs/dump_study/B1.py
test/VisuPrs/dump_study/B3.py
test/VisuPrs/dump_study/B4.py
test/VisuPrs/dump_study/B5.py
test/VisuPrs/imps/A1.py
test/VisuPrs/imps/A2.py
test/VisuPrs/imps/A3.py
test/VisuPrs/imps/A4.py
test/VisuPrs/imps/A6.py
test/VisuPrs/imps/A9.py
test/VisuPrs/imps/B1.py
test/VisuPrs/imps/B2.py
test/VisuPrs/united/A1.py
test/VisuPrs/united/A2.py
test/VisuPrs/united/A4.py
test/VisuPrs/united/A5.py
test/VisuPrs/united/B0.py

index 979d338061c566a023fb324d0de642fd21549bd6..766f89784d7fab8b25c6900737a85e83533f870f 100644 (file)
@@ -222,6 +222,7 @@ def process_prs_for_test(prs, view, picture_name, show_bar=True):
     display_only(prs, view)
 
     # Show scalar bar
+    global _current_bar
     if show_bar and _current_bar:
         _current_bar.Visibility = 1
 
@@ -235,6 +236,7 @@ def process_prs_for_test(prs, view, picture_name, show_bar=True):
         os.makedirs(pic_dir)
 
     # Save picture
+    print "Write image:", file_name
     pvs.WriteImage(file_name, view=view, Magnification=1)
 
 
@@ -292,7 +294,7 @@ def display_only(prs, view=None):
 
 def set_visible_lines(xy_prs, lines):
     """Set visible only the given lines for XYChartRepresentation."""
-    sv = xy_prs.GetProperty("SeriesVisibilityInfo").GetData()
+    sv = xy_prs.GetProperty("SeriesVisibility").GetData()
     visible = '0'
 
     for i in xrange(0, len(sv)):
@@ -805,9 +807,6 @@ def select_cells_with_data(proxy, on_points=[], on_cells=[], on_gauss=[]):
         fields_info = proxy.GetProperty("FieldsTreeInfo")[::2]
         arr_name_with_dis=[elt.split("/")[-1] for elt in fields_info]
 
-        proxy.AllArrays = []
-        proxy.UpdatePipeline()
-        
         fields = []
         for name in on_gauss:
             fields.append(name+_med_field_sep+'GAUSS')
@@ -821,13 +820,14 @@ def select_cells_with_data(proxy, on_points=[], on_cells=[], on_gauss=[]):
             if arr_name_with_dis.count(name) > 0:
                 index = arr_name_with_dis.index(name)
                 field_list.append(fields_info[index])
-                
-        proxy.AllArrays = field_list
-        proxy.UpdatePipeline()
+
+        if field_list:
+            proxy.AllArrays = field_list
+            proxy.UpdatePipeline()
         return len(field_list) != 0
 
     # TODO: VTN. Looks like this code is out of date.
-    
+
     #all_cell_types = proxy.CellTypes.Available
     all_cell_types = proxy.Entity.Available
     all_arrays = list(proxy.CellArrays.GetData())
@@ -927,13 +927,11 @@ def add_scalar_bar(field_name, nb_components,
     # Reassign the current bar
     _current_bar = scalar_bar
 
-    return scalar_bar
+    return _current_bar
 
 
 def get_bar():
     """Get current scalar bar."""
-    global _current_bar
-
     return _current_bar
 
 
@@ -1002,10 +1000,10 @@ def get_group_names(extrGrps):
 
 def get_time(proxy, timestamp_nb):
     """Get time value by timestamp number."""
-    proxy.UpdatePipeline()
+    #proxy.UpdatePipeline()
     # Check timestamp number
     timestamps = []
-    
+
     if (hasattr(proxy, 'TimestepValues')):
         timestamps = proxy.TimestepValues.GetData()
     elif (hasattr(proxy.Input, 'TimestepValues')):
@@ -1015,6 +1013,9 @@ def get_time(proxy, timestamp_nb):
     if (timestamp_nb > 0 and (timestamp_nb - 1) not in xrange(length) ) or (timestamp_nb < 0 and -timestamp_nb > length):
         raise ValueError("Timestamp number is out of range: " + str(timestamp_nb))
 
+    if not timestamps:
+        return 0.0
+
     # Return time value
     if timestamp_nb > 0:
         return timestamps[timestamp_nb - 1]
@@ -1195,7 +1196,7 @@ def CutPlanesOnField(proxy, entity, field_name, timestamp_nb,
     lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
 
     # Set properties
-    cut_planes.ColorArrayName = (EntityType.get_pvtype(entity), field_name) 
+    cut_planes.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     cut_planes.LookupTable = lookup_table
 
     # Add scalar bar
@@ -1526,9 +1527,9 @@ def VectorsOnField(proxy, entity, field_name, timestamp_nb,
 
     # Set properties
     if (is_colored):
-        vectors.ColorArrayName = 'GlyphVector'
+        vectors.ColorArrayName = (EntityType.get_pvtype(entity), 'GlyphVector')
     else:
-        vectors.ColorArrayName = ''
+        vectors.ColorArrayName = (None, '')
     vectors.LookupTable = lookup_table
 
     vectors.LineWidth = 1.0
@@ -1585,6 +1586,7 @@ def DeformedShapeOnField(proxy, entity, field_name,
 
     # Do merge
     source = pvs.MergeBlocks(proxy)
+    pvs.UpdatePipeline()
 
     # Cell data to point data
     if is_data_on_cells(proxy, field_name):
@@ -1625,7 +1627,7 @@ def DeformedShapeOnField(proxy, entity, field_name,
     if is_colored:
         defshape.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     else:
-        defshape.ColorArrayName = ''
+        defshape.ColorArrayName = (None, '')
     defshape.LookupTable = lookup_table
 
     # Set wireframe represenatation mode
@@ -1702,6 +1704,7 @@ def DeformedShapeAndScalarMapOnField(proxy, entity, field_name,
 
     # Do merge
     source = pvs.MergeBlocks(proxy)
+    pvs.UpdatePipeline()
 
     # Cell data to point data
     if is_data_on_cells(proxy, field_name):
@@ -1963,6 +1966,7 @@ def IsoSurfacesOnField(proxy, entity, field_name, timestamp_nb,
 
     # Do merge
     source = pvs.MergeBlocks(proxy)
+    pvs.UpdatePipeline()
 
     # Transform cell data into point data if necessary
     if is_data_on_cells(proxy, field_name):
@@ -2011,7 +2015,7 @@ def IsoSurfacesOnField(proxy, entity, field_name, timestamp_nb,
     if (is_colored):
         isosurfaces.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     else:
-        isosurfaces.ColorArrayName = ''
+        isosurfaces.ColorArrayName = (None, '')
         if color:
             isosurfaces.DiffuseColor = color
     isosurfaces.LookupTable = lookup_table
@@ -2080,7 +2084,7 @@ def GaussPointsOnField(proxy, entity, field_name,
 
     # Set timestamp
     pvs.GetRenderView().ViewTime = time_value
-    proxy.UpdatePipeline(time=time_value)
+    pvs.UpdatePipeline(time_value, proxy)
 
     source = proxy
 
@@ -2102,8 +2106,7 @@ def GaussPointsOnField(proxy, entity, field_name,
         vector_array = field_name
         # If the given vector array has only 2 components, add the third one
         if nb_components == 2:
-            calc = get_add_component_calc(source,
-                                          EntityType.NODE, field_name)
+            calc = get_add_component_calc(source, EntityType.NODE, field_name)
             vector_array = calc.ResultArrayName
             source = calc
 
@@ -2135,7 +2138,7 @@ def GaussPointsOnField(proxy, entity, field_name,
     if is_colored:
         gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     else:
-        gausspnt.ColorArrayName = ''
+        gausspnt.ColorArrayName = (None, '')
         if color:
             gausspnt.DiffuseColor = color
 
@@ -2249,7 +2252,7 @@ def GaussPointsOnField1(proxy, entity, field_name,
     # Create Gauss Points object
     source = pvs.GaussPoints(proxy)
     source.UpdatePipeline()
-  
+
     # Get Gauss Points representation object
     gausspnt = pvs.GetRepresentation(source)
 
@@ -2266,7 +2269,7 @@ def GaussPointsOnField1(proxy, entity, field_name,
     if is_colored:
         gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     else:
-        gausspnt.ColorArrayName = ''
+        gausspnt.ColorArrayName = (None, '')
         if color:
             gausspnt.DiffuseColor = color
 
@@ -2375,12 +2378,13 @@ def StreamLinesOnField(proxy, entity, field_name, timestamp_nb,
 
     # Do merge
     source = pvs.MergeBlocks(proxy)
+    pvs.UpdatePipeline()
 
     # Cell data to point data
     if is_data_on_cells(proxy, field_name):
         cell_to_point = pvs.CellDatatoPointData(source)
         cell_to_point.PassCellData = 1
-        cell_to_point.UpdatePipeline()
+        pvs.UpdatePipeline()
         source = cell_to_point
 
     vector_array = field_name
@@ -2388,14 +2392,13 @@ def StreamLinesOnField(proxy, entity, field_name, timestamp_nb,
     if nb_components == 2:
         calc = get_add_component_calc(source, EntityType.NODE, field_name)
         vector_array = calc.ResultArrayName
-        calc.UpdatePipeline()
+        pvs.UpdatePipeline()
         source = calc
 
     # Stream Tracer
     stream = pvs.StreamTracer(source)
     stream.SeedType = "Point Source"
     stream.Vectors = ['POINTS', vector_array]
-    stream.SeedType = "Point Source"
     stream.IntegrationDirection = direction
     stream.IntegratorType = 'Runge-Kutta 2'
     stream.UpdatePipeline()
@@ -2418,7 +2421,7 @@ def StreamLinesOnField(proxy, entity, field_name, timestamp_nb,
     if is_colored:
         streamlines.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
     else:
-        streamlines.ColorArrayName = ''
+        streamlines.ColorArrayName = (None, '')
         if color:
             streamlines.DiffuseColor = color
 
@@ -2452,8 +2455,6 @@ def MeshOnEntity(proxy, mesh_name, entity):
     if not mesh_full_name:
         raise RuntimeError, "The given mesh name was not found"
     # Select only the given mesh
-    proxy.AllArrays = []
-    proxy.UpdatePipeline()
     proxy.AllArrays = [mesh_full_name]
     proxy.UpdatePipeline()
 
@@ -2461,8 +2462,9 @@ def MeshOnEntity(proxy, mesh_name, entity):
     prs = None
     if (proxy.GetDataInformation().GetNumberOfPoints() or
         proxy.GetDataInformation().GetNumberOfCells()):
-        prs = pvs.GetRepresentation(proxy)
-        prs.ColorArrayName = ''
+        my_view = pvs.GetRenderView()
+        prs = pvs.GetRepresentation(proxy, view=my_view)
+        prs.ColorArrayName = (None, '')
 
     return prs
 
@@ -2507,14 +2509,13 @@ def MeshOnGroup(proxy, extrGroups, group_name):
     return prs
 
 
-def CreatePrsForFile(paravis_instance, file_name, prs_types,
+def CreatePrsForFile(file_name, prs_types,
                      picture_dir, picture_ext):
     """Build presentations of the given types for the file.
 
     Build presentations for all fields on all timestamps.
 
     Arguments:
-      paravis_instance: ParaVis module instance object
       file_name: full path to the MED file
       prs_types: the list of presentation types to build
       picture_dir: the directory path for saving snapshots
@@ -2529,13 +2530,16 @@ def CreatePrsForFile(paravis_instance, file_name, prs_types,
         if proxy is None:
             print "FAILED"
         else:
-            proxy.UpdatePipeline()
+            #proxy.UpdatePipeline()
             print "OK"
     except:
         print "FAILED"
     else:
         # Get view
         view = pvs.GetRenderView()
+        time_value = get_time(proxy, 0)
+        view.ViewTime = time_value
+        pvs.UpdatePipeline(time=time_value, proxy=proxy)
 
         # Create required presentations for the proxy
         CreatePrsForProxy(proxy, view, prs_types,
@@ -2578,7 +2582,7 @@ def CreatePrsForProxy(proxy, view, prs_types, picture_dir, picture_ext):
                 print "OK"
             # Construct image file name
             pic_name = picture_dir + get_field_short_name(mesh_name) + "." + picture_ext
-            
+
             # Show and dump the presentation into a graphics file
             process_prs_for_test(prs, view, pic_name, False)
 
@@ -2596,7 +2600,7 @@ def CreatePrsForProxy(proxy, view, prs_types, picture_dir, picture_ext):
                         print "OK"
                     # Construct image file name
                     pic_name = picture_dir + get_group_short_name(group) + "." + picture_ext
-                    
+
                     # Show and dump the presentation into a graphics file
                     process_prs_for_test(prs, view, pic_name, False)
 
@@ -2607,12 +2611,9 @@ def CreatePrsForProxy(proxy, view, prs_types, picture_dir, picture_ext):
         if field_name == get_field_mesh_name(field):
             continue
         field_entity = get_field_entity(field)
-        # Clear fields selection state
-        proxy.AllArrays = []
-        proxy.UpdatePipeline()
         # Select only the current field:
         # necessary for getting the right timestamps
-        proxy.AllArrays = field
+        proxy.AllArrays = [field]
         proxy.UpdatePipeline()
 
         # Get timestamps
index b5f95d9f5220b6177234e83f5d65eca6870bcafe..642884353c3e8bb216fcf0eed8c00996b531317e 100644 (file)
@@ -47,8 +47,8 @@ def __getFromGUI():
 
 def ShowParaviewView():
     """
-    If the import is made from SALOME embedded console, the ParaView application needs to 
-    be instanciated to avoid a future crash. 
+    If the import is made from SALOME embedded console, the ParaView application needs to
+    be instanciated to avoid a future crash.
     """
     if __getFromGUI():
       __my_log("Initializing ParaView main elements, please be patient ...")
@@ -58,14 +58,14 @@ def ShowParaviewView():
       if len(viewIds):
         sgPyQt.setViewVisible(viewIds[0], True)
         sgPyQt.activateView(viewIds[0])
-      else:  
+      else:
         sgPyQt.createView("ParaView")
       # Now let the GUI main loop process the initialization event posted above
-      sgPyQt.processEvents()  
+      sgPyQt.processEvents()
       __my_log("ParaView initialized.")
 
 ## The below has to called BEFORE importing paraview!!! This is crazy, but it has to be.
-ShowParaviewView()  
+ShowParaviewView()
 
 import paraview
 import pvserver
@@ -97,7 +97,7 @@ def SalomeConnectToPVServer():
         __my_log("*******************************************")
         raise e
     pass
-    
+
 if __getFromGUI() < 1:
     # Only if not in GUI (otherwise the createView will do the connection)
     SalomeConnectToPVServer()
@@ -108,4 +108,3 @@ for name in dir(simple):
   if not name.startswith("__"):
     globals()[name] = getattr(simple, name)
 del simple
-   
index 0874da8a082810a94cfdef578e1848b5455bf4b6..57db26486c63d3d476240987e4ef422b4a5756f9 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -34,9 +33,6 @@ picturedir = get_picture_dir("3D_viewer/A1")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-my_paravis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index ef8e82e3f3117963e75631d210eedcc28e950296..f75d2ef9a9953e358fe93025b117adf71da0e967 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -34,9 +33,6 @@ picturedir = get_picture_dir("3D_viewer/A2")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-my_paravis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index ca71daf924825821fec83084edfdd7aa2918eda9..2776f594816b9fc9a573734cdc95b7877ada8b37 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -34,9 +33,6 @@ picturedir = get_picture_dir("3D_viewer/A3")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-my_paravis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
@@ -48,6 +44,17 @@ print "file ", file_name
 print " --------------------------------- "
 
 OpenDataFile(file_name)
+#reader = OpenDataFile(file_name)
+#reader = MEDReader(FileName=file_name)
+#keys = reader.GetProperty("FieldsTreeInfo")[::2]
+#reader.AllArrays = [keys[0]]
+#SetActiveSource(reader)
+
+#reader.UpdatePipelineInformation()
+#from paraview import servermanager
+#res = servermanager.Fetch(reader,0)
+#print res
+
 proxy = GetActiveSource()
 if proxy is None:
     raise RuntimeError("Error: can't import file.")
@@ -56,6 +63,7 @@ else:
 
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
+
 shrinks = [0, 1]
 shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
@@ -66,10 +74,10 @@ field_name = 'vectoriel field'
 
 print "\nCreating stream_lines......."
 stream_lines = StreamLinesOnField(proxy, EntityType.CELL,
-field_name, 1, is_colored=True)
+                                  field_name, 1, is_colored=True)
 stream_tracer = stream_lines.Input
 print "stream_tracer:", stream_tracer
-stream_tracer.Input = None
+#stream_tracer.Input = None
 stream_tracer.InitialStepLength = 0.00940275
 stream_tracer.MaximumStreamlineLength = 140.373
 stream_tracer.MaximumStepLength = 0.5319
index 6454dbb151971de536cf8c5fc498f04edace2a78..88858109950b695d6329dbc2cbfde23721a68adb 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -33,8 +32,6 @@ picturedir = get_picture_dir("3D_viewer/A4")
 # Add path separator to the end of picture path if necessery
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
 
 # Get view
 my_view = GetRenderView()
index ee1df61efb84464129b383584e92b51256b724fd..b0b63cf0e2e21de198cf5c94bcd60db5a19364b5 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -34,9 +33,6 @@ picturedir = get_picture_dir("3D_viewer/A5")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-myParavis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index 99013d16986b11fad4fef4e523f005f12eea7429..e77a16bd3c01c2116854d1b549657fb28c2e2195 100644 (file)
@@ -25,7 +25,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -35,9 +34,6 @@ picturedir = get_picture_dir("3D_viewer/A6")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-my_paravis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index 018da24be250cd5ad7cba9e57b635764ccc29add..62d21fbea920561317ddeddd01cfb6a1e85791ca 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -33,8 +32,6 @@ picturedir = get_picture_dir("3D_viewer/A7")
 # Add path separator to the end of picture path if necessery
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
 
 # Get view
 my_view = GetRenderView()
index 6fdc9539982316aa1df3c1ba1a7e96345ed613ba..9a93c7f04f7410bd82aecacebc50fe983c37a299 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -33,8 +32,6 @@ picturedir = get_picture_dir("3D_viewer/A8")
 # Add path separator to the end of picture path if necessery
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-#import file
-my_paravis = paravis.myParavis
 
 # Get view
 my_view = GetRenderView()
index 21159a143e07e48195e69f95b9af930de49a7d84..02f61cb62da134ec846f942208e281f59065c067 100644 (file)
@@ -24,10 +24,8 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
-
 def check_value(prs, property_name, value, do_raise=1, compare_toler=-1.0):
     # compare just set value and the one got from presentation
     really_set_value = prs.GetPropertyValue(property_name)
@@ -60,9 +58,6 @@ picturedir = get_picture_dir("3D_viewer/A9")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-myParavis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index 0023dd6c735d8f166c5b4621d6fec43cdf561a8b..0dfbb2ff09087a56ee545f79224738c3b9513ead 100644 (file)
@@ -24,7 +24,6 @@ from paravistest import *
 from presentations import *
 from pvsimple import *
 import sys
-import pvserver as paravis
 import time
 
 # Directory for saving snapshots
@@ -34,9 +33,6 @@ picturedir = get_picture_dir("3D_viewer/B0")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-myParavis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index 2b4a928977e9afb4229e10225b106b584fbfb8aa..aeaa7fde19b4613c5cf00d8828705259a31e31b5 100644 (file)
@@ -22,7 +22,6 @@
 from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
 import math
 
@@ -47,8 +46,8 @@ view2.ViewSize = [w2, size2[1]]
 h = view1.ViewSize[1]
 view1.ViewSize = [h//2, w]
 view2.ViewSize = [h//2, w]
-view1.ViewPosition = [0, h//2]
-view1.ViewPosition = [0, 0]
+#view1.ViewPosition = [0, h//2]
+#view1.ViewPosition = [0, 0]
 
 Render(view1)
 Render(view2)
index 2b0254f79cb89167b2e988b367687b133c4c6ea8..e172b8747a95c8e94f89074096ea46221c896f9c 100644 (file)
@@ -26,8 +26,6 @@ import time
 from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("3D_viewer/B2")
@@ -36,9 +34,6 @@ picturedir = get_picture_dir("3D_viewer/B2")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-#import file
-myParavis = paravis.myParavis
-
 # Get view
 my_view = GetRenderView()
 reset_view(my_view)
index 7c369f3dce592ed8bf9eec4abaeb7430bec3169f..399f631c0a88bf41230ecacdeaf5808d3bcf1e7a 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/A0")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A0_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 40 # correspond to set the speed of animation in VISU 
+scene.Duration = 40 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 scene.Loop = 0
 print "Animation.................................",
index aa01f5b3efed6a83b09ae1ab82805fd8e74043d9..de4a6727763f5d6aaf87bfd7882a6b5f1292fa8c 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-my_paravis = paravis.myParavis
 
 # 1. TimeStamps.med import
 print 'Importing "TimeStamps.med"................',
@@ -43,8 +40,8 @@ else:
 print "Creating Cut Lines........................",
 med_field = "vitesse"
 cutlines = CutLinesOnField(med_reader, EntityType.NODE, med_field, 1,
-                          nb_lines = 20,
-                          orientation1=Orientation.XY, orientation2=Orientation.ZX)
+                           nb_lines = 20,
+                           orientation1=Orientation.XY, orientation2=Orientation.ZX)
 if cutlines is None:
     print "FAILED"
 else:
@@ -78,7 +75,7 @@ scene.Duration = 120
 scene.Duration = 0
 scene.Duration = 30
 print "Duration        ... ", scene.Duration
+
 print "Loop            ... ", scene.Loop
 scene.Loop = 1
 print "Loop            ... ", scene.Loop
index 9faa153361b4837d2c6af721f12043bf890bebe6..96d9508167c52b72f76d0404e29a091b8cfbb704 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/A2")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A2_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 282756b019f5ad0d5db76df12e6aff51e877baff..e788dc9eefccbce6518bee15b970fb8dac7a58c5 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/A4")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A4_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 4b30ab51bbe91a96a35a690f42b668538fca8077..055484a01a20b1ec1b336c07ecd9da9e8a33b339 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/A7")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A7_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 7b37bedf79058268cedb69e01d0221d2a5d84fb3..a96470a60913f55635a0999b76ef37afa9bbdb88 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/A8")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A8_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 491fd059538e2690aef1c43b04963d22b322f109..b7b7b137ce27b0d9aa3601dbb5e54fa2e982cb8e 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/B2")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"B2_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index e147f29549381b086605a63e8c06c41b5bc9e330..e922a63bda17752e0db38e8bf8feab90f4d7144b 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/B5")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"B5_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 3d1edc67776834fd603217c4e52666ed16acb8bf..eaf4f62e1dd69d9b64a3ba79ea223a5a4bcef8b7 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/B6")
@@ -41,11 +37,14 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -64,26 +63,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"B6_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index ee34d67a534803f4da07b4e99926010b2cf636d6..06253d36609282d8b363eafe3406a59413d24c1b 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/C0")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"C0_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index dfb0d124c67e24b3a16f687a164a947cbefdcc01..258e866b467ea00e1782e4328d2175432be4d93d 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/C1")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"C1_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 29ce4d8940336c415a512c4e30f0901b69075011..739ab53c095a0583bd759e25b7681242684ba8c2 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/C3")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"C3_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 152b617e96c11547acd0d83b39bb3686815e5dc5..ea3da19b839e81ff271035d440117a051db008b8 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/C8")
@@ -41,11 +37,14 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -64,26 +63,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"C8_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 07dddb11053f0a819b06dc4dac2deacab2ddbe42..b5cbda4ce446021b6beeb6e1de7879ed09ba5f5a 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/D1")
@@ -42,11 +38,14 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -65,26 +64,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"D1_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index dab7ad2f792254449d39e5d0bd1084836d6eb2f0..e841d9b8aaaf166ab3f8fb40681f99b58c4aa3c8 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/D2")
@@ -41,11 +37,14 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -64,26 +63,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"D2_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 6783d1309332a769a859bf97c2f6a5f1b89d9f1f..be5d35ba4acdb34e836ee10b314fb6241105c52e 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/D6")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"D6_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 8433f6e4cfc954c4dcdb9bb17f644b02cfa644e8..ed7adc2b63a96025e1badc521fe145ccef9e9242 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/D9")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"D9_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 40c899e7536df9c48947f823cc738152d5a6affc..fcf740e9d9f6b40193bb82fb6816a9e79d416024 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/E0")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"E0_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 83ecda20e26a52126ed363fae46389bd868b36e6..5033a61d785f0a756bb131dbafe8c269f859b546 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-# import file
-myParavis = paravis.myParavis
 
 # for saving snapshots
 picturedir = get_picture_dir("Animation/E4")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"E4_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 9b0fa91af80ad0b24c7d476425a56012fa150f37..e3cf65a086795d71663b089e083149697dbf5bf1 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/E7")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -63,22 +59,22 @@ print "Current format to save snapshots: ",my_format
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"E7_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index f4464ebce4778584425edbb9d3e6790ebd9273a2..853ff2501b15c153eddcdb3d020cd7e9e79d9252 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-# import file
-myParavis = paravis.myParavis
 
 # for saving snapshots
 picturedir = get_picture_dir("Animation/E8")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"E8_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 662a21896f968bacad487444314749d331d6a64e..fc48273b3d3f93d6f1a4ebf309bebcff4e6e2c91 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/F2")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"F2_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 2468d449f6dcb72b7485beb3397a70c20637bcda..a9d00be87c25b44ff133a581997a2a0892481ee8 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/F5")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"F5_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index af96144eb10800ee73ae8a1a6033e6d24b922e18..d551c31033ba5a5dc02ec210c81cefc12a45f662 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/F6")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"F6_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 838146d9aff1e0238806db735548f87461c17fd6..8bce57d863ce5cba6e2c09b06cfc6991d431c42a 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/G0")
@@ -41,11 +37,14 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -64,26 +63,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"G0_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 2ee9f1dfda95cb47e507d75a3d6507c972e34e57..c31fb895bdd8aaa12e073818269d283e126a151c 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/G3")
@@ -42,11 +38,14 @@ OpenDataFile(theFileName)
 
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -65,26 +64,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"G3_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index cd6e81f5b230b9ddafc83c1ba30a3cf52fe1ddf3..f1c29c0bf7420e16bcc2bbb406af48c5d38954c6 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/G3")
@@ -42,11 +38,14 @@ OpenDataFile(theFileName)
 
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 reset_view(aView)
 Render(aView)
 
@@ -65,26 +64,26 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.AllArrays = []
-aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
-aProxy.UpdatePipeline()
-   
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"G3_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index c0dd52d3d4f4aceeddca7c776125667711930707..73d38bad6806bd2ca461d23ad38b1d9e9bd375f9 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/G8")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"G8_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 9d588955112cc5f963e608527d2edaadfc3448b1..beb2b77b2671cfbbfe1ce71c2d2618db5e88bf21 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/H1")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"H1_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 1d72b1f01aee6c3be9eaf33495d6c1385c2e94e1..fc867cf7e4525c6e172060ca497a52c4dedc3549 100644 (file)
 
 import sys
 import os
-from paravistest import * 
+from paravistest import *
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-#import file
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("Animation/H2")
@@ -41,7 +37,7 @@ print " --------------------------------- "
 OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 print "Creating a Viewer.........................",
@@ -68,22 +64,22 @@ aProxy.AllArrays = []
 aProxy.UpdatePipeline()
 aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
 aProxy.UpdatePipeline()
-   
+
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"H2_dom."+my_format)
 nb_frames = len(scene.TimeKeeper.TimestepValues)
 
-pics = os.listdir(picturedir) 
+pics = os.listdir(picturedir)
 if len(pics) != nb_frames:
    print "FAILED!!! Number of made pictures is equal to ", len(pics), " instead of ", nb_frames
-    
+
 for pic in pics:
-    os.remove(picturedir+pic)    
-    
-# Prepare animation  performance    
+    os.remove(picturedir+pic)
+
+# Prepare animation  performance
 scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
-scene.Duration = 30 # correspond to set the speed of animation in VISU 
+scene.Duration = 30 # correspond to set the speed of animation in VISU
 scene.GoToFirst()
 print "Animation.................................",
 scene.Play()
index 27773a3c31153f93d8d777f15eea4fcde27528ba..09d8a6f02c8d3fea8d904bc832e20bac4bdc6fa1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A0") 
+picturedir = get_picture_dir("CutLines/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index d33257aa2fd25f340c6c7460b5ecdb85d6cf09e1..b0d7385c4d76d0154d2459842716c90db44c171e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A1") 
+picturedir = get_picture_dir("CutLines/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 5eb163f0e6b817942db74826ae47285959daee46..462db153b37cc0cfecd90afa0871e113037ff6fd 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A2") 
+picturedir = get_picture_dir("CutLines/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 442b7b68d1f23ba4ea20f929dcfdf3cf0c71ea39..164a2e06bbda841819fba4b83962c50d7cd23805 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A3") 
+picturedir = get_picture_dir("CutLines/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 508e8cddd688b387b7532d45f825d2a5481fb8cd..10dbce206210040e1efb6890d32c45ab70e9f406 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A4") 
+picturedir = get_picture_dir("CutLines/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 2a47c6ed79fb044a1243f4b9472762c8e3237862..0de9bdfb0185ca2b332ff411d38317690340ce8e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A5") 
+picturedir = get_picture_dir("CutLines/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 35a6ab7460d4246dc85e4a55bba263a62c49bc1b..d41b36dc6834436cf806d7d5b555ad0604e69963 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A6") 
+picturedir = get_picture_dir("CutLines/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 00c3af2f5500226cadaf0b2cde91a28e9c342525..b6412e6ff0fc26cefcf02e0bab334ee7d2c6fc76 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A7") 
+picturedir = get_picture_dir("CutLines/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 82ab47a358b63bda8760d5692d6fdf3659609c6e..ec179208376a4311fe1b3f5f678277a5e68d6482 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A8") 
+picturedir = get_picture_dir("CutLines/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index cd576ed7a9c6de8ae38bc767b83e82029cad884e..f259269ddfa0aea8899644d47549bd6b328515cc 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/A9") 
+picturedir = get_picture_dir("CutLines/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index ffdf7575a887bf0357f0806a19b5d6d2f56e1309..714e27f4ec14dfba04597a7350cc31f0656aa17a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B0") 
+picturedir = get_picture_dir("CutLines/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index c3cae6367e68eb0751d47801f52182e379429ea5..ed23580033d840e02bb72d411dba38a1125b104d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B1") 
+picturedir = get_picture_dir("CutLines/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 0671229bde80c68c2863deda49e550c4b4954aa8..b36c244e05fa7f97a703345989df3344e2329a94 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/B2") 
+picturedir = get_picture_dir("CutLines/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 067aed5ddb7d6731560b35535033d3e0653037dc..c5e1565ec05af8f99e297ed3306f32b17d9df17d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E0") 
+picturedir = get_picture_dir("CutLines/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index cb7b17637b6651385befaf8fe8d1dfdeec600f2c..fb90bf20726c213c5dbf232f1100565b0df26691 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E1") 
+picturedir = get_picture_dir("CutLines/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 2cbb1d3f34bb6ac2d929b38d62b90cd2896040f1..5856bc89ce5804a8ab927455a4bdfc299341efc6 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E2") 
+picturedir = get_picture_dir("CutLines/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 7f7a4929579ef6b924d0cd9424dc9da66f604fbc..dc3bfefdd7a27e6ce81c4656634109c8ed9c8ca4 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E3") 
+picturedir = get_picture_dir("CutLines/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index c49ebb5292991cc5a37a8fe0d1ee4c895deddbcf..abaa584a205f7740f4137e157a6445fa6ebde40d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E4") 
+picturedir = get_picture_dir("CutLines/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index ebd6a0a8d0c6e143fc24a96593e3d6318343db8b..96bbf60ef8e75bb58b80cd35e20d2e88e25bb3b3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E5") 
+picturedir = get_picture_dir("CutLines/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index e50b6b544990cc8f584127d302fa278ba1c09a53..c21d1b4cbe4d70f6b6b34b1b551737b7ecca44fe 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E6") 
+picturedir = get_picture_dir("CutLines/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index f45a5e1da4ddf5540442cb868f88becdfe021efc..2e49d0fbfe34dd048e0a515a53f184e1b55752e1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E7") 
+picturedir = get_picture_dir("CutLines/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index fc891f47fbe13e6018e3f584acbf538a20ef4559..9fd867b487eae35fcf7085be1a2019b5713b45b4 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E8") 
+picturedir = get_picture_dir("CutLines/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 6886d868ea475f624ed4efa6ac728ba33f8f89d3..5b6f63690b87747ae67913f243b6246a801f0dc3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/E9") 
+picturedir = get_picture_dir("CutLines/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 835c0ae7beef214deea730075621d6ef0bd8b564..a7d1a391dcbfa3d7bd9db645477fd314b35b136f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F1") 
+picturedir = get_picture_dir("CutLines/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index ad4eeb8b3e8258afae1b5c69e8dc9917047e79fa..bf225757e947f073e01d3d6f22b72589718f8ca2 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F2") 
+picturedir = get_picture_dir("CutLines/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 4a8fa961558b081f11f9b63d00c99b466e9dabe7..c1248f330bc13df6d5d0b1bbbcd108c3673d8660 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F3") 
+picturedir = get_picture_dir("CutLines/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 916baf64f17d95b016eccd75a4bbcbbd58351479..d634e7cae38c54b9c482de4051536e672a44d8cb 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F4") 
+picturedir = get_picture_dir("CutLines/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 5aa782318a4ec62ce32fa2dec96b52a3e541e2d9..6f521a5199e991d413353eeaa7654c9e49c833c6 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F5") 
+picturedir = get_picture_dir("CutLines/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index b2ab313349551e04e1dec073a250b69c32125eb2..0d40cf1293875319d5f76e40f7bf6bd8b8c77645 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F6") 
+picturedir = get_picture_dir("CutLines/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index f1efd8c9493c8308b7ae5c042a4645ab57c1fcfd..0480624c7c73c6785eb62395052c86fe98465d97 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F7") 
+picturedir = get_picture_dir("CutLines/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 1e06a47252ea5fb56f4c321f879557dca0f43fdb..1e5c33b2767d6bd7955bf9cecf66c4eedb5146a5 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F8") 
+picturedir = get_picture_dir("CutLines/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index d231eb9d08afd9a17fc6aa85157b2741975f599e..ee5ce7596aa76944371beaf0ae91ee42a2f8e188 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/F9") 
+picturedir = get_picture_dir("CutLines/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 98f85a49eb8ddd3748bec70c60153d5b78c4031e..c332394e565f415a6106de284342f89deb78684c 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/G0") 
+picturedir = get_picture_dir("CutLines/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index e34c2062f490c3a85c4360dd2bb7e90567be45ed..ae4c823d819a6360c52e9b81dbaf9fefd3a3a03b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutLines/G1") 
+picturedir = get_picture_dir("CutLines/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTLINES], picturedir, pictureext)
index 56d0401024e1cc29d01da96705f2e667228fd266..d2db5967f758a4d0ea7c1605b09b2c597bad6364 100644 (file)
@@ -24,10 +24,7 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("CutLines/G2")
 
 theFileName = datadir +  "Bug829_resu_mode.med"
@@ -40,7 +37,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get viewScalarMap
 aView = GetRenderView()
@@ -59,19 +56,19 @@ for i in range(1,11):
     #display only current scalar map
     aPrs.Visibility=1
     reset_view(aView)
-    Render(aView)    
-    
+    Render(aView)
+
     # Add path separator to the end of picture path if necessery
     if not picturedir.endswith(os.sep):
             picturedir += os.sep
     prs_type = PrsTypeEnum.CUTLINES
-            
+
     # Get name of presentation type
-    prs_name = PrsTypeEnum.get_name(prs_type)    
+    prs_name = PrsTypeEnum.get_name(prs_type)
     f_prs_type = prs_name.replace(' ', '').upper()
     # Construct image file name
     pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-    
+
     # Show and record the presentation
     process_prs_for_test(aPrs, aView, pic_name)
 
index 0522af55f8d048c8b0bdf5bfaad53ace338da02d..edb05a4102507dad6247f1d6f2927d2f31c0f5ed 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A0") 
+picturedir = get_picture_dir("CutPlanes/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index a4fa56a2614fb2ade516fd9acd34313e48eba9e0..f83a477ce9e4372fecede73d6f501318c242bdff 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A1") 
+picturedir = get_picture_dir("CutPlanes/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index c61e62f8c1d3dec9a297bf67a782c7e7fa575993..b83b51d8ad40a0fc3b746035a2dcb13069fe67dd 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A2") 
+picturedir = get_picture_dir("CutPlanes/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 18052c1c4f48927d872a74fb26a9f0756b397c9a..5112d1929336efb13b71ec5f75f074b23d77d927 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A3") 
+picturedir = get_picture_dir("CutPlanes/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index c879ed9cddcc153528ac13f4f86f98784ec6a194..3eda51e4bad6b6493e21928f5dcc55032f5ae108 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A4") 
+picturedir = get_picture_dir("CutPlanes/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 36113a1a6f74e6a0c8ddc996286160b6b9149f82..7368216c28758f606d2a609d6f9631c808f34ad9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A5") 
+picturedir = get_picture_dir("CutPlanes/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 9f95c0a756c7693e9673a4d1739be42cc7989b29..9b92494f87ea836586a1c8a4e8a82e1d7f719f86 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A6") 
+picturedir = get_picture_dir("CutPlanes/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index c6c8e2934aa33162677707a71482881fdea1db84..e56d3d79b25d02b7e3ba865ee309ccb3d3777b25 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A7") 
+picturedir = get_picture_dir("CutPlanes/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 68e6a3b8d0d70f8d2908dec35768c489ded0abbd..0cef7ba6e5c4741e5a25dcdfe1c3c63e5d4b2faa 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A8") 
+picturedir = get_picture_dir("CutPlanes/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index cea9768f1b1b63d24eabcd204334e0e198777278..5ad2a18ec043ddfd232a8e998134c2f263b0363b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/A9") 
+picturedir = get_picture_dir("CutPlanes/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 90ea21da7fabc654578a4bfd53ce68eb008da4d5..e7e9e222055a3d9c2f604028b51ba3ee75a49255 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B0") 
+picturedir = get_picture_dir("CutPlanes/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 4d566f3030e15dee86edcd0d51a178766ad2639c..4d4010e3c3f853f7073d8724cc2fee93a0a58805 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B1") 
+picturedir = get_picture_dir("CutPlanes/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 7292f2753922e2d603bb73497f758afad73425a3..d012ffe3729a11d2fe32b85093017363fb0569bd 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/B2") 
+picturedir = get_picture_dir("CutPlanes/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 7ac8f9987f247c3878c02db1f802c66021938687..adb561c6cfb8ea6d6a408b49800e726cf9fafdea 100644 (file)
 
 from paravistest import datadir
 from presentations import CutPlanesOnField, EntityType
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 #====================Stage1: Importing MED file====================
 print "**** Stage1: Importing MED file"
 
 print 'Import "ResOK_0000.med"...............',
 
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index f4935545499240ff0d61f8e77d06d4456b743319..04d1d52a356f557886bb2d5595aea7cee6d6e132 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E0") 
+picturedir = get_picture_dir("CutPlanes/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 77708f7669640de4d9dc2493c865db851eb4ada5..9dc3c77387b0358a63340dd679a619a09de3a236 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E1") 
+picturedir = get_picture_dir("CutPlanes/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 1a415852e58efa9c83b8b414541440f8acef4dd2..7ae71597964d0daa2c9342bb8086bb1eb0b554b2 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E2") 
+picturedir = get_picture_dir("CutPlanes/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index f983128b24cdf64fbfb0a4d9ddc78cc20f241b99..0a3158317f11d403f7e862dd5a7b8f49d2f80c3d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E3") 
+picturedir = get_picture_dir("CutPlanes/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 265a86ee56c9f8f4001c1e707cf67512d0c85326..22d1b851d9fc8e1dce4b6e1cbf24bf5f24311f20 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E4") 
+picturedir = get_picture_dir("CutPlanes/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 0be44d2a828e4ceb280f4dcd278e4056d1181e61..ca0e27e8a9b1a9507482d8b3141e254e47d4ed69 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E5") 
+picturedir = get_picture_dir("CutPlanes/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 31d7669bac2f35a0895fda4cb70ecc296924f8d0..b2d73c87be06bfe401e527073f26fc3187158210 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E6") 
+picturedir = get_picture_dir("CutPlanes/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 4195023ce15ef445abd9d05e5c46a1006e5bc8a2..2e76102acd7e735ad309b15ec4a80b6e6bf25c4d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E7") 
+picturedir = get_picture_dir("CutPlanes/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 77c557b2d74c509c2786d7277755289b84bd58ae..2f391ae1c33da3d0b6af68a619bc8b6363377bc0 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E8") 
+picturedir = get_picture_dir("CutPlanes/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 6aab6862b59118f3e9022fbfe922c2b2c7c2e984..ac7f4119639c69509d1ffc851dd46632c140119c 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/E9") 
+picturedir = get_picture_dir("CutPlanes/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index b20c8156e21b69f442a0e90e06b349612d0c595b..f31651ff15bce0cbc7411167974b083796053b7e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F1") 
+picturedir = get_picture_dir("CutPlanes/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 09f3226914caf87eccfd8ddb0ffcf048bf967115..877a370ffd2de515f877fe9c990b7b6e802c00b1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F2") 
+picturedir = get_picture_dir("CutPlanes/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index f25d56d58943b6d7a7987988277d342c419976bb..94e6d2758a09f71efc835f46a9b59f030d4d954a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F3") 
+picturedir = get_picture_dir("CutPlanes/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index fc00920cbd4ecc00a81211f07d50abc167afe014..c94e9c8b64fb0b781d247762269fa3709a2ff72b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F4") 
+picturedir = get_picture_dir("CutPlanes/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index db03318bb0b518fba9b1de51f3295b7126d29f10..2328e320f9b1f2ba693be3973151f8da1e90db25 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F5") 
+picturedir = get_picture_dir("CutPlanes/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 619892c68c31ff71d01f10821c67efb585ac5960..bdd1f1ef78c609deb63e3305269bacbd71d9afd3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F6") 
+picturedir = get_picture_dir("CutPlanes/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 6f9b7768667e175a4d6ed60ba86934906b118825..86917ebde4ec64085ccf9bf4ddd3100de68046f0 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F7") 
+picturedir = get_picture_dir("CutPlanes/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index b9a90fad6ef24ff1e040a9060d75cade04dab754..b32297261f22c6d90f8118495950e9e26a628757 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F8") 
+picturedir = get_picture_dir("CutPlanes/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 32ed20cec59ffebeadb41c60abb325101eeb8390..bd57c0df24465ece1feedd3ffc14b3634307faf9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/F9") 
+picturedir = get_picture_dir("CutPlanes/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 843e555a73db40cc046e58a7095798d2ab8c7719..6dd1768ee2c44a41947bbd5d0ef3c5802482600f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/G0") 
+picturedir = get_picture_dir("CutPlanes/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 2562125a177a5458f6588d47e9bfad1e4ed62fec..00c5c2d2448f9f45d5cdb25f7b6d29d8a278d397 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("CutPlanes/G1") 
+picturedir = get_picture_dir("CutPlanes/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 862c866bb237bc4fd8ffe2fb616aa7dbca3f891d..52b1f0b38b7b3e8bcee837642f6b4c1a7694954d 100644 (file)
@@ -24,10 +24,7 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("CutPlanes/G2")
 
 theFileName = datadir +  "Bug829_resu_mode.med"
@@ -40,7 +37,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get viewScalarMap
 aView = GetRenderView()
@@ -59,19 +56,19 @@ for i in range(1,11):
     #display only current scalar map
     aPrs.Visibility=1
     reset_view(aView)
-    Render(aView)    
-    
+    Render(aView)
+
     # Add path separator to the end of picture path if necessery
     if not picturedir.endswith(os.sep):
             picturedir += os.sep
     prs_type = PrsTypeEnum.CUTPLANES
-            
+
     # Get name of presentation type
-    prs_name = PrsTypeEnum.get_name(prs_type)    
+    prs_name = PrsTypeEnum.get_name(prs_type)
     f_prs_type = prs_name.replace(' ', '').upper()
     # Construct image file name
     pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-    
+
     # Show and record the presentation
     process_prs_for_test(aPrs, aView, pic_name)
 
index 48fbb526cd52e25c842e7ab51ed142bb9189977e..6af9adfad3178d09fc57497779a2723b7b9bda77 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A0") 
+picturedir = get_picture_dir("DeformedShape/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 0881584bf72cc8ee2ea4c3f57e77957a13971a26..19a3cdfd0d12c36e260815e5925f8ae5d040bd4a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A1") 
+picturedir = get_picture_dir("DeformedShape/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 521ea2d9a21ca950b6e1afed8ef8a32258fe2ec5..62e0e77660c292d6779d824673be07dc7cfcadd8 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A2") 
+picturedir = get_picture_dir("DeformedShape/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 25ddf99a6ad6848ec0d7d34c05fcf114e7468dc8..a4ba1363ff3281fad37c4334b0f33f25d07ec750 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A3") 
+picturedir = get_picture_dir("DeformedShape/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d86f261b9886be53d9411171efd690d1b8351e88..20a7bdc90ddad40ec942239efd135b0fe7792b70 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A4") 
+picturedir = get_picture_dir("DeformedShape/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d583f3d38c508cbd5055a6479031dbe3805644b0..9d515472ce8243730b47ae995f3591468b842a61 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A5") 
+picturedir = get_picture_dir("DeformedShape/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index afafea9c3d4ac3a33b6384f2e99f494abc11982d..485a88405666509dd78ead3f8326764dd39a0e82 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A6") 
+picturedir = get_picture_dir("DeformedShape/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 81193c987f0eca975a11acc89d28c20da697fdef..f645b6b20f40ada9ef728be27623d5aea525fd1f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A7") 
+picturedir = get_picture_dir("DeformedShape/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 3aa703d2b8b44230c78e2d066b40d2e8804d844f..863fdfeb798e0f717b2791862f653b64472e55f1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A8") 
+picturedir = get_picture_dir("DeformedShape/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 9f3aa081061643dd0409b20c8f25067d3f71e0c2..78ec5bf48c4b76fbb1f7ee0f18c29f7e4b27476a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/A9") 
+picturedir = get_picture_dir("DeformedShape/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 6d106d691198717a8e12ead56d6f2156a1ce9d76..e436eb6c41fd938fb2bb303bcafbd52d55a08307 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B0") 
+picturedir = get_picture_dir("DeformedShape/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 0b9841edcf03e0e655869760417f1c2c06bdb348..7f633c6dd9a963ab11d8e04c4a4c54790c5209be 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B1") 
+picturedir = get_picture_dir("DeformedShape/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 7566a21431feb7f7790cda679e1c22d0c18fb022..6845c45b88f12bc87930aa173b513e986ac7b213 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/B2") 
+picturedir = get_picture_dir("DeformedShape/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d8512d107c89a3082335b13b56590804419f5a0c..5434d9b9e057f0233ac797fcd6a2a752087a948a 100755 (executable)
 
 from paravistest import datadir
 from presentations import DeformedShapeOnField, EntityType
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 #====================Stage1: Import from MED file in ParaVis============
 print "**** Stage1: Import from MED file in ParaVis"
 
 print 'Import "Tria3.med"....................',
 
 file_path = datadir + "Tria3.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -86,26 +82,26 @@ print "Scale: ", warp_vector.ScaleFactor
 #====================Stage4: Coloring method of Deformed Shape===========
 print "**** Stage4: Coloring of Deformed Shape"
 
-color_array = defshape.ColorArrayName
+color_array = defshape.ColorArrayName[1]
 if color_array:
     print "Default shape is colored by array: ", color_array
 else:
     print "Default shape is colored by solid color: ", defshape.AmbientColor
 
 print "Set colored by array mode    .... ",
-defshape.ColorArrayName = field_name
+defshape.ColorArrayName = ("CELLS", field_name)
 pvsimple.Render()
 
-if defshape.ColorArrayName == field_name:
+if defshape.ColorArrayName[1] == field_name:
     print "OK"
 else:
     print "FAILED"
 
 print "Set colored by solid color mode .... ",
-defshape.ColorArrayName = ''
+defshape.ColorArrayName = (None, '')
 pvsimple.Render()
 
-if defshape.ColorArrayName:
+if defshape.ColorArrayName[1]:
     print "FAILED"
 else:
     print "OK"
index 47c677a5439e509025acdca9e5d32c7ef783391f..6f2f0488a6bcf93e183f734ac6f8932bd838a841 100644 (file)
 
 from paravistest import datadir
 from presentations import DeformedShapeOnField, EntityType
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 #====================Stage1: Import from MED file in ParaVis============
 print "**** Stage1: Import from MED file in ParaVis"
 
 print 'Import "Hexa8.med"....................',
 
 file_path = datadir + "Hexa8.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index 3ec4694a800256eba29d24d0a8fc62b9a0696f51..02370932e7a3514a154a0d479af14be686363e18 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E0") 
+picturedir = get_picture_dir("DeformedShape/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 75c3f3fd84979b5bdf56ee8d3c338c068399737b..a8c5911748744bc851128ebad00467adc18ead0f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E1") 
+picturedir = get_picture_dir("DeformedShape/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d171bc05322a0657da735316573bd60993afb6cb..3fc61e6be04f82c8fe636b43512caf12f7e31abb 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E2") 
+picturedir = get_picture_dir("DeformedShape/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 345ad1fe566531be8419fce982abd6f6f8e140d6..5c5dea6948e8466e4037a8eea390b1970cca77a4 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E3") 
+picturedir = get_picture_dir("DeformedShape/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 4bb2896886a31a46a9e8368c562bb2f007b48f87..7ef42acf263efaa82d78de7c9fa25a4050335779 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E4") 
+picturedir = get_picture_dir("DeformedShape/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 4ddcfe6c01d8b07dad7292502cd18ae37dfdab9b..9a1952a3421a21880f2ca7e755664af676bcaf93 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E5") 
+picturedir = get_picture_dir("DeformedShape/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index e8f7a4bca793611b5a7761e473d60a4ddf52eb4b..1f670b6b78a8fb4ea421520105bed49cd96e1d94 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E6") 
+picturedir = get_picture_dir("DeformedShape/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 9e90e2d78e64d1fe9209f514d5c31443eac419b2..fc167e7f664b76006ad254854400b2cba9ef6eb3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E7") 
+picturedir = get_picture_dir("DeformedShape/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d6a2588f3416b16752edbbd253b9baa3a9814a4f..f6b12e1ea307a00e2eac8c91d337453f49bd60e3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E8") 
+picturedir = get_picture_dir("DeformedShape/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 39da3fd63ce871909bdcbfffe693f303704bf87b..33abb9552151ef83b0bed8bb787c3bf6e01dc23f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/E9") 
+picturedir = get_picture_dir("DeformedShape/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 0ed6f0a2f4a4e66bcacffcbdd2d48b72940a9238..42f61c3e6d659147614c5b1045e2c8cf883b66c9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F1") 
+picturedir = get_picture_dir("DeformedShape/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 6f457f1a1665b2f23666307a2aa0ceb5fe6f266e..e70052733da9181795d7f2f52a93c713b1c36a80 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F2") 
+picturedir = get_picture_dir("DeformedShape/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index b2211a2244afbe004c77622901f5d2e82b2418f8..515f664f2b59ea59be93f2d5ffafaf8e2f8ce083 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F3") 
+picturedir = get_picture_dir("DeformedShape/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 680bc793e58394cdc9aff992072372a4faba9d54..aabadf52c078ea491887df4f81e3e200ffdaf850 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F4") 
+picturedir = get_picture_dir("DeformedShape/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 5bbe3ccbcdaa2e789d12201d9ded29cb5bbde587..34b0d2f637c46068d4feabcd4b24d6687ee14daf 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F5") 
+picturedir = get_picture_dir("DeformedShape/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 7f3f7e7ef97d1e387c74b47d73e505648f32a8dc..216360058ac7c9f7934a457c292164905176d0c4 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F6") 
+picturedir = get_picture_dir("DeformedShape/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index 7e050951ec00695ed5daeea04cd3a2e7aaf39bc5..3b79a0b3027d4ee76b2218c1b159362c558a73d0 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F7") 
+picturedir = get_picture_dir("DeformedShape/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index beebcc652af673c859394d92ccf9f82dfdd713c8..8b0536495fd93d6410ff6bc42e1077f1504c7f92 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("DeformedShape/F8") 
+picturedir = get_picture_dir("DeformedShape/F8")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPE], picturedir, pictureext)
index d284b28f34333e3a76ea74de7c4c9404687137c6..53c5f99b8de742e2e76c3df849a679498b1a643e 100644 (file)
@@ -24,10 +24,6 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
 
 picturedir = get_picture_dir("DeformedShape/F9")
 
@@ -41,7 +37,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get view
 aView = GetRenderView()
@@ -58,12 +54,12 @@ for colored in [False,True]:
         colored_str = "_colored"
     for i in range(1,11):
         hide_all(aView, True)
-        aPrs = DeformedShapeOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)   
+        aPrs = DeformedShapeOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
         if aPrs is None:
             raise RuntimeError, "Presentation is None!!!"
         # display only current deformed shape
         #display_only(aView,aPrs)
-        aPrs.Visibility =1     
+        aPrs.Visibility =1
 
         reset_view(aView)
         Render(aView)
@@ -71,9 +67,9 @@ for colored in [False,True]:
         if not picturedir.endswith(os.sep):
                 picturedir += os.sep
         prs_type = PrsTypeEnum.DEFORMEDSHAPE
-                
+
         # Get name of presentation type
-        prs_name = PrsTypeEnum.get_name(prs_type)    
+        prs_name = PrsTypeEnum.get_name(prs_type)
         f_prs_type = prs_name.replace(' ', '').upper()
         # Construct image file name
         pic_name = picturedir + aFieldName+colored_str + "_" + str(i) + "_" + f_prs_type + "." + pictureext
index 1b16713a4b6f97d04d3b352d70d1b5e6d78b8a9f..184d21346d38c6367fb2a4097cf796725ceee00d 100644 (file)
@@ -25,35 +25,33 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A0")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "hexa_28320_ELEM.med"
 field_name = "pression_elem_dom_pb1"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
 
+view = pvsimple.GetRenderView()
+time = get_time(med_reader, timestamp_nb)
+view.ViewTime = time
+pvsimple.UpdatePipeline(time=time, proxy=med_reader)
+
 # Create Gauss Points presentation
 prs = GaussPointsOnField(med_reader, EntityType.CELL, field_name, timestamp_nb)
 if prs is None:
     raise RuntimeError, "Created presentation is None!!!"
 
 # Display presentation and get snapshot
-view = pvsimple.GetRenderView()
-time = get_time(med_reader, timestamp_nb)
-
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index cce5f7ebe72dad421662cfeaac3b232a85c35d0c..b93bc9cfce8df50069d0a434beff69e64505b1e2 100644 (file)
@@ -25,22 +25,20 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A1")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "pointe.med"
 field_name = "fieldcelldoublescalar"
 #field_name = "fieldcelldoublevector"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 1b793712cca8166afb5c4f41b6ae8f1441508f47..bab9b831200ccc01bc44d54018a755f7889a6de4 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A2")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Fields_group3D.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index 2dc8dd1ed923ab28c436534e079f878e9fae55ca..f906dedfe5fb2db74668a9e48447bc18c6a98ec4 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A3")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Hexa8.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index b9ddf67f4a8a017da72c0593c51f59b15cbf21b9..c70bb50c414490874651b57f5129c664a1a29b33 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A4")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Penta6.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index e5e49bac24554173776fbd91b9088cce6c32d134..6bc75d00d625a7958f571e6376c6941bf2a959ba 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A5")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Tetra4.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index 61952d033e237a4d5b670fa20872b87c0511bf31..4862b19c2f17116c9095b244a3aab6a4aabdc01e 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A6")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Tria3.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index a9562f191538b42fb344440729658f58748ccc31..2f2bc8f2640fc33f3c4f7a1ce659f5f4aaeb5d56 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A7")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "Quad4.med"
 field_name = "scalar field"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index 86ccf23d7077a584d2224c061d79ad7b9095dbf2..57347b0fb0756bbdda42fb7f5b652d504ff7fa53 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/A9")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "carre_en_quad4_seg2_fields.med"
 field_name = "AREA"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ time = get_time(med_reader, timestamp_nb)
 
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index 7d939ef6ead7e14a9efbf825fc1ed48fc7eae6e7..e0bb57a71e981c59603c5774e6c71268ab292480 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B0")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "cube_hexa8_quad4.med"
 field_name = "fieldcelldouble"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 626c87dc3a458b00cd7b10c3ee752d23327cdb48..246031d8ec8c3c1e9ce4987cc767b48ec644d4fd 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B1")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "test_55_solid_concentr_dom.med"
 field_name = "RN_precipite_restr"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 5ce69d24ad16ea96e9d92e962e47fcf9be3175e6..3e49e8ba4def85d03638cf5609b62f756c4b4cff 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B2")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "H_COUPLEX1.med"
 field_name = "Head"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index a9e300ba837530b22d044d997ac05d939787f9c0..c2aba9532ecc9568b5bb7ff1cef04f869b1c2e71 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B3")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "cas2_2d_couplage_chess_castem.med"
 field_name = "pH"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index ab5668ba9e87aec34dd02089df40e1f43cc275df..38fcda9485a51c2876d3e786dd6867e08fc97a22 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B4")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "champc.med"
 field_name = "Am241_restriction"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 1d6cbd579cd79719b1d11ef99cc58ac6fb607a34..f06a2e81db7eb25f81ae131d07af1d056f8ea87b 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B5")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "hydro_sea_alv.med"
 field_name = "Head"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index e169f00cabd7255baa564da1c4dfbad8ab115221..937474ec37a78cecb587f1f8e8079ec8890cad9e 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B6")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "toto.med"
 field_name = "erreur"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index b6d37c8bf40ced4636af510da7f296260fee6e24..072df6deacc7aed8fd960b5445397b5b6e9a698d 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B7")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "couplex_alain.med"
 field_name = "Conc. I129"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 7fe2ddc565ccc0af2779b3403a77f55ebb095cb9..bedcc37ac0ee1bfd21d569f9e87d4d476c4ff110 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B8")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "KCOUPLEX1.med"
 field_name = "Head"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 81ff1f3cefc7693093fd559e1f1d31a0cfd98a30..2919dbeb7f1131f823e9b05979a9daa713fa9111 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/B9")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "test_hydro.med"
 field_name = "Head"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index fb672b8ed46a54a0f55b1c5fb069c1c3d882ebea..84d8b4e5a9f0ac3b8f3ba4764bd9988dcfe2aa58 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C0")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "ml.med"
 field_name = "head_restriction"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 469067dada5351b529c875064c7933b7c5a27df5..11ef35326f48c9c397341d26c72f5b7fce45afc6 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C1")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "T_COUPLEX1.med"
 field_name = "Conc. I129"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 9734857450b8298f1318e4152a1973863bca6a59..a7b553f6c3e223dec2bce73872997eb8435fa694 100644 (file)
@@ -25,21 +25,19 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C2")
 if not picturedir.endswith(os.sep):
     picturedir += os.sep
-    
+
 # MED file
 file_name = datadir + "test_hydro_darcy4_out.med"
 field_name = "DarcyVelocity"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index a68b097c01f026ca69759d35bb5ef0d9c7e268b2..a955fbd869863b15a16eaa93f4eebdb32ca896d4 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C3")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,7 @@ file_name = datadir + "UO2_250ans.med"
 field_name = "Concentration_O2(aq)_mol per l"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 750822697109105b632984fb04f0c82a1c431c1e..d619ca632dc716e51bd37130355eb5c87ca23ae5 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C4")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,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.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 84305cf5b710943c1d75762784b37fb0eaec318c..28afebc5d1367b62b035fcdae0dab7d38e294b0c 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C5")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,7 @@ file_name = datadir + "occ4050.med"
 field_name = "champ_reel"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 371c37a2d4dc9552d1a98b01b852c357357ed2fe..a64839eff391df957f2a9ab35fca7abb53fe9a7d 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C6")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,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.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index ca9ba49950343f388b5caf2b322a4c6a5fe50712..8e8d5ef4e24a827e7906d3c2634c6cf08d61f4be 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import GaussPointsOnField, EntityType, get_time, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C7")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,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.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index e0c798b5bcd29ec76d9c279b21ca33a7a262b95c..eb887ffe3add72b5cff4484900501d7724eb756e 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C8")
 if not picturedir.endswith(os.sep):
@@ -40,7 +38,7 @@ field_name = "gravit__VARI_ELGA"
 #timestamp_nb = 1
 timestamp_nb = 6 # timestamp 1 is empty
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
index 68862bdca013a81b8bf16b7bcc071420744470bb..e58128f14ad1eec7a50d651923f53d6807b9284f 100644 (file)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("GaussPoints/C9")
 if not picturedir.endswith(os.sep):
@@ -39,7 +37,7 @@ file_name = datadir + "petit.rmed"
 field_name = "RESPIL__SIEF_ELGA"
 timestamp_nb = -1 # last timestamp
 
-paravis.OpenDataFile(file_name)
+pvsimple.OpenDataFile(file_name)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError("File wasn't imported!!!")
@@ -55,5 +53,3 @@ if prs is None:
 # Display presentation and get snapshot
 pic_name = picturedir + field_name + "_" + str(time) + "_GAUSSPOINTS." + pictureext
 process_prs_for_test(prs, view, pic_name)
-
-
index 72ad07c4a11ad35b01d3897596ccf704afee9342..6ef6f3d999dfe975c5d827dc96cb324eeccdc50c 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "ResOK_0000.med"
 field_names = ["temperature", "vitesse", "pression"]
 prs_list = [ [1,2,3,4,8], range(1,10), [0,1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 19a0115de849a07180373d79c66e3f01ddafd6b0..8495d80f5e3a0132995ad77da54e714013e4c376 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "TimeStamps.med"
 field_names = ["pression", "temperature", "vitesse"]
 prs_list = [ [0,1,2,3,4,8], [1,2,3,4,8], range(1,10) ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 17fa75e44abf37002744afac18755c1afaaf2043..bcbd86d5c9bcf438b1cfa4de7ffba7b6b3c8015f 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "carre_en_quad4_import22.med"
 field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 4a2f62b51873a84be012fa5300c44c1ea48fe8b9..4763852b1b0c05d4ed30b58ed89d628cfc435cc7 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "carre_en_quad4_seg2.med"
 field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 6de94572c995b95185875bfe47149951fb7f2641..855e438bdfe50cc9bbe57c978202e4e39094e1be 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "test_hydro_darcy1a_out.med"
 field_names = ["DarcyVelocity","Head"]
 prs_list = [ range(10), [0,1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 1c5e5a2c8db0869a4b6234a1214bb0b566aafab5..824412d66d010b530c227c398dcd4019e79cd9ac 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "clo2.med"
 field_names = ["PRESSION", "TAUX_DE_VIDE", "VITESSE"]
 prs_list = [ [0,1,2,3,4,8], [1,2,3,4,8], range(1,10) ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 99e34ff5260945fd9ca3e12bb7ea4ac44167c9ac..f6856c1679ea119a49393399e8c131688208bec7 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "cube_hexa8_import22.med"
 field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index e127377426396987edc1f32c7962649eaf1f11f9..64aaf76df0cfe61b78859821390e2c411cbf830d 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "cube_hexa8_quad4_import22.med"
 field_names = ["fieldcelldouble", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index dfeae8dedac8b2fd2f14853d73c56e7b95993978..fad7eef0c0dd7ac90df091742b750a8b8370212a 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "fra1.med"
 field_names = ["TAUX_DE_VIDE", "VITESSE"]
 prs_list = [ [1,2,3,4,8], range(1,10) ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index ef0ec2203d5a73d1605948f6598cf386b938d7c9..273964e4bf85cb1bd0ff9d7741f8f9be3f8aaa2d 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "maill.0.med"
 field_names = ["REQT_GD_________________________", "RESUTRQUDEPL____________________", "RESUTRQUERRE_ELGA_NORE__________", "RESUTRQUSIEF_ELGA_DEPL__________", "RESUTRQUSIGM_ELNO_DEPL__________"]
-prs_list = [ range(1,10), range(1,10), range(10), range(10), range(10)])
+prs_list = [ range(1,10), range(1,10), range(10), range(10), range(10)]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 79adf2c99fa2097bf3f604989184cc19f1dbd780..907dd369170a5fc4ae9485351668ce804085fc86 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "maill.0_volumes.med"
 field_names = ["RETH____FLUX_NOEU_TEMP__________", "RETH____TEMP____________________"]
 prs_list = [ range(1,10), [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index eeb186f9ceb9cf4fbbd95fe993e51975a702c88f..ad4490c3bcdf16d20109b20f682efec10c62d2a7 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "maill.1.med"
 field_names = ["RETH____FLUX_NOEU_TEMP__________", "RETH____TEMP____________________"]
 prs_list = [ range(1,10), [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 1453b2f4d553d81081300fbb86e5cb3e35e0761a..10f7fcce09bd1fecdca77acb3110aae39bfbea1a 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "maill.2.med"
 field_names = ["RETH____FLUX_NOEU_TEMP__________","RETH____TEMP____________________"]
 prs_list = [ range(1,10), [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 3a2f7de1720cd4e99b352631bc93c0da49e2c3c0..1f303605a5dd5bb74fd23d64d56c7a7ff55ec2ef 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "zzzz121b.med"
 field_names = ["RESUZERODEPL____________________", "RESUZEROERRE_ELGA_NORE__________", "RESUZEROSIEF_ELGA_DEPL__________", "RESUZEROSIGM_ELNO_DEPL__________"]
 prs_list = [ [0,1,5,6,7], [0,1,5,6,7], [0,1,5,6,7], [0,1,5,6,7,9] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index cc7fc76a5d32181053dd7886176a61081cdb209a..4d29b2a46ffa2943e2339738e5b8262d3be4cd97 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "pointe_4fields.med"
 field_names = ["fieldcelldoublescalar", "fieldcelldoublevector", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ [0,1,2,3,4,8], range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 1385ffd1c836339899ff0fbacb3c43a78f700297..304326579ca6db0157761651caedc229557e4989 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "pointe.med"
 field_names = ["fieldcelldoublescalar", "fieldcelldoublevector", "fieldnodedouble", "fieldnodedouble", "fieldnodedouble", "fieldnodeint"]
 prs_list = [ [0,1,2,3,4,8], range(10), [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8], [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index f663d3e329ac15cb3338a1a0724933d798eaf2ed..a85192033aede88a9e6e0de88228cd6b706822c4 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "polygones.med"
 field_names = ["bord_:_distorsion","bord_:_familles","bord_:_non-ortho"]
 prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 151b786d03793e1360149b5f5f5b62b5639cb537..99103432fbf3e8f98afecc0d2623253426a6cbc9 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "recoll_bord.med"
 field_names = ["bord_:_distorsion","bord_:_familles","bord_:_non-ortho"]
 prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 86b2ce1227e59226a8764ecb83ff8b93dc9061d3..4b141c6022aba2cc8848e6b495dda3da4957b122 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "resu.2.med"
 field_names = ["RETH____FLUX_NOEU_TEMP__________","RETH____TEMP____________________"]
 prs_list = [ range(1,10), [1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 2f469e71217e487c5014f106ac10074105cb9ec2..54f091a21ddd2975cd99b3686894bffd19e67bfe 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "test_2D.med"
-field_names = ["champ","field_v","field_v_p"]
-prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8], [0,1,2,3,4,8] ]
+field_names = ["field_v","field_v_p"]
+prs_list = [ [0,1,2,3,4,8], [0,1,2,3,4,8] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 3f1546b21b8f5156a94e87d21cd7bb453ea20a62..ca745f7c6d6f5b395484125c2d5f3890daa2b27c 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
 med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 field_names = ["REMEZEROERRE_ELGA_NORE__________", "RETHZEROTEMP____________________"]
 prs_list = [ [0,1], [1] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index b5c83afdac916e423d2546cad71ec0025a25515f..e8503b0c3d1590ffb970bbb5fee952f8f204804f 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
-med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1.med2.2.med"
+med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 field_names = ["REMEUN__ERRE_ELGA_NORE__________", "RETHUN__TEMP____________________"]
 prs_list = [ [0,1], [1] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 4bcc7ed622cec368b5d450e6be887e670449f5ad..cd6749833f2f02aacd9cf9e601b72c62d8e8958d 100644 (file)
 # Import MED file; create presentations for the given fields.
 
 from paravistest import datadir, Import_Med_Field
-import pvserver as paravis
 
-med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1.med2.3.med"
+med_file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 field_names = ["REMEZEROERRE_ELGA_NORE__________", "RETHZEROTEMP____________________"]
 prs_list = [ [0,1], [1] ]
 
-Import_Med_Field(paravis.myParavis, med_file, field_names, 1, prs_list)
+Import_Med_Field(med_file, field_names, 1, prs_list)
index 13aef2a7055028a5d0f1cad944b02c3df65e6e52..c67e354a11ecf030e5ca2ad46cd69bece983b1ef 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A0") 
+picturedir = get_picture_dir("IsoSurfaces/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 524e9a6ce0a2185649425efb8cbe76b838ed8279..33b3f4c49e960a324546ef39fd69e7638a84b133 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A1") 
+picturedir = get_picture_dir("IsoSurfaces/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 6de3caacce1fabdeedf50da24242e258b9b20e7a..d486f086611501dcebbee9454ec3d1e3855ef935 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A2") 
+picturedir = get_picture_dir("IsoSurfaces/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 81e455a7e97abbde4b7b7e1dcdefabd58a1fc5c2..6b35a66e43893c003990b9cac8e6262174a192d5 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A3") 
+picturedir = get_picture_dir("IsoSurfaces/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 8ca02c9964815daa685ae168328fcb3a57e2e85c..86e8a6e5edeffd3f1d3473548180906a9ad5e0ac 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A4") 
+picturedir = get_picture_dir("IsoSurfaces/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index f1a21814eab0eca76af5cb053f4691d92a0581ee..210fc42b9c265291cf9fdf43dcdcb0e896e5d6f0 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A5") 
+picturedir = get_picture_dir("IsoSurfaces/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 0d0388e3229d6c7fe952b0886f598bd562e33b6f..b018359a5b7d7bbf1b5829e17810f569e97817b9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A6") 
+picturedir = get_picture_dir("IsoSurfaces/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 359639be2e1fb3472bdfcfc0bd10e2160bd77ceb..9f9a3791c9f6ead81bb0ec3bc689f8b0554ce072 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A7") 
+picturedir = get_picture_dir("IsoSurfaces/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 272b0fc4ef96da65235700468b7543f384ea9c31..15e3955c90b6d2c996e35274aceddf431ec3305e 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A8") 
+picturedir = get_picture_dir("IsoSurfaces/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index b3397c4d4c71b944c7ba0088c6a4eaf51da342c4..4c96804a129a146f7ca0c114b4ad312cb2014954 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/A9") 
+picturedir = get_picture_dir("IsoSurfaces/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index e2510945797dd139fdff5de35d55a7a728a8030e..cd81a3bb9b5f9f73df70671a92bd57313c24570f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B0") 
+picturedir = get_picture_dir("IsoSurfaces/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 0d70982ccb398ad9b73cd13e3d7aada344ee253a..6e8ea8b761a000bde8b362cd00c2634eb4235ae6 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B1") 
+picturedir = get_picture_dir("IsoSurfaces/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 928522bff0375bb794242ed0b97f0e1137d9934e..4fe4d59e2b79dfc08e4d615f0f87677fe3f9695f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/B2") 
+picturedir = get_picture_dir("IsoSurfaces/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 399b731a0284b5a5623ee2c4ec94c116ffc4e2e5..f76545fc175fe1252b819a414e8cf83942973b89 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E0") 
+picturedir = get_picture_dir("IsoSurfaces/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index cffe170baa5132597fdae431c7f7118af1bd6f1e..3cc24fc454894c5809a4a073903116f92144aa0b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E1") 
+picturedir = get_picture_dir("IsoSurfaces/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index a165fd3111fbe68f686bee3e924807b6b369c182..8b73d9ab9d249a09de3d4d703986e3448bb0a15b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E2") 
+picturedir = get_picture_dir("IsoSurfaces/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 2148282c9f652827bd62eee0939fa9245ee576d5..a300d67c17f02ac5c41efbc7002c3057f9918c07 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E3") 
+picturedir = get_picture_dir("IsoSurfaces/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 959cd007e599e158a68f1dfed821516ab036656c..8ee0b6ffa70de49ee7f0b18652b4f2362a011a12 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E4") 
+picturedir = get_picture_dir("IsoSurfaces/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 0c390adf39a6b584087124c0a9666177b767477c..f0b824988068e08057d1f1aad965bcf0b52cf37a 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E5") 
+picturedir = get_picture_dir("IsoSurfaces/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index a94d022196d584a924e8908a57e2a6b31b55f8c5..51167a86238c6c0b6a64abe06b1e69238e7c4d95 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E6") 
+picturedir = get_picture_dir("IsoSurfaces/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index d1e56328cfaba39834dca6cf867fb79b08beb863..94818accc2f9b4a715b8c3a1a12a709834a2ff54 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E7") 
+picturedir = get_picture_dir("IsoSurfaces/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 9dd9b69dde470dafba2e9bfd2ebe9ecf74363624..f8020eb893de902565353186b4e7e02ecba5c26e 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E8") 
+picturedir = get_picture_dir("IsoSurfaces/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 9e27463956d30924728f6d8a84bca820ee6a5ed2..de65014552a70ec207ce2976edfde100d8d9750f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/E9") 
+picturedir = get_picture_dir("IsoSurfaces/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index e69fac85558fb17f84001f24407c474c74daf446..0ddb4a20bc6aa059b33350ef462b68b97ba7f0f2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F1") 
+picturedir = get_picture_dir("IsoSurfaces/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 9efae8d409137711fb007933dbbb220a7b19a671..23ededb12579ae8fb3a237aeb35fa87d88937d05 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F2") 
+picturedir = get_picture_dir("IsoSurfaces/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 734c420449429cd021bb42fd4e52bf652c8f32ba..a0d036bba2d7eb18abfb590e5231d342c8ed4102 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F3") 
+picturedir = get_picture_dir("IsoSurfaces/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index ec41c6ecf04b632c3285deae00aa296e900351b2..a1b65591411742926fb5a22d64303ff566b4b9c0 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F4") 
+picturedir = get_picture_dir("IsoSurfaces/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 2bbee9b23f6d8d9cc1f2bf59034f72ace2b36e0c..dc5a2201f1c2bcaf4557cdeaf8ba14dc47a538d9 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F5") 
+picturedir = get_picture_dir("IsoSurfaces/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index eafee1312117c24ebfc682f8a3fd9cbcbbf928bb..aaa9bcd3c0625832efa0b5e35a1072605781763d 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F6") 
+picturedir = get_picture_dir("IsoSurfaces/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 641fad67068b27954f3fbed3ff1dad11a267370d..fac1ee4339362026ad9b0e797e8a6ba969ec8673 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F7") 
+picturedir = get_picture_dir("IsoSurfaces/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 180cedabce8d2b1b16e307b204ca3f9ea193a69e..9a1210213b93543dcb24a388a9bdd4136a5674cb 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F8") 
+picturedir = get_picture_dir("IsoSurfaces/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index ee8a4e368b15264a234b55e1a418327c35821462..3e096c79e0abe9b06addbd2705f5b4763c834099 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/F9") 
+picturedir = get_picture_dir("IsoSurfaces/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index db81ee37c94dc8c7663116f337314d4533abeace..c195da9285b116f6e094538c867156ddbac1d1db 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/G0") 
+picturedir = get_picture_dir("IsoSurfaces/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 42a1ceff247a9a6120f6959b49a5c8a2444641a7..30f879c8e40f47ec6cf2eaa97eff9e03a93f143c 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("IsoSurfaces/G1") 
+picturedir = get_picture_dir("IsoSurfaces/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.ISOSURFACES], picturedir, pictureext)
index 805f15cd30c3d8a384e19a1dda3d04d50b96306b..674cc9d48161155600352d719b5139fc384e3895 100644 (file)
@@ -24,10 +24,7 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("IsoSurfaces/G2")
 
 theFileName = datadir +  "Bug829_resu_mode.med"
@@ -40,7 +37,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get viewScalarMap
 aView = GetRenderView()
@@ -59,19 +56,19 @@ for i in range(1,11):
     #display only current scalar map
     display_only(aPrs, aView)
     reset_view(aView)
-    Render(aView)    
-    
+    Render(aView)
+
     # Add path separator to the end of picture path if necessery
     if not picturedir.endswith(os.sep):
             picturedir += os.sep
     prs_type = PrsTypeEnum.ISOSURFACES
-            
+
     # Get name of presentation type
-    prs_name = PrsTypeEnum.get_name(prs_type)    
+    prs_name = PrsTypeEnum.get_name(prs_type)
     f_prs_type = prs_name.replace(' ', '').upper()
     # Construct image file name
     pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-    
+
     # Show and record the presentation
     process_prs_for_test(aPrs, aView, pic_name)
 
index 48db2ebc66396d8d79b01d7510b0b5f0b202418f..1d9f4bb2a80a9c116381f7417ad3ad4151faf063 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A0") 
+picturedir = get_picture_dir("MeshPresentation/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 1e35e135fd0d03ca0313dccf72144158e9f91aa4..db2f1f9fb5aec8edfd22d7cb58be7d650266b581 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A1") 
+picturedir = get_picture_dir("MeshPresentation/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index a8d3b1a07d1ed7d4977e19a89b23d2d1f5db95f6..c8cf6db70eaf71b07697886bcf69c974115bcccf 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A2") 
+picturedir = get_picture_dir("MeshPresentation/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index ab419465268add46d7abb720778b3b5f1898efc4..723b886cde2c0a7ccd7a0a27584a595015a59c93 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A3") 
+picturedir = get_picture_dir("MeshPresentation/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index c4c91a459a7527843233b31d43d6d9ebd8d85241..1c534a84db7b9d563d11e45350c30bcad3bb6794 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A4") 
+picturedir = get_picture_dir("MeshPresentation/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 20d440e4946676c2d5339db774f42c027356f87a..dd618fc72d4b74eb386c784afaea7f0d6139e09a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A5") 
+picturedir = get_picture_dir("MeshPresentation/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index e0e4b4963c9f3656ce1b2bf94afa288eb51a9765..b5544a50ad6bdd3d20503edb1769d99a7f0671cd 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A6") 
+picturedir = get_picture_dir("MeshPresentation/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index c9ef939b2f9002977025ea0c9ea501278bda240a..b6878018104aee3c83ba9f6350ee7198b7c600af 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A7") 
+picturedir = get_picture_dir("MeshPresentation/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 3db53d77726d48a1f6b0e05e11ad5172c54a8191..7ba79d05b418f3942a85a9e68ec84ac809b33bd2 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A8") 
+picturedir = get_picture_dir("MeshPresentation/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 50dc87973869c694f5dee0f30681342846224aa9..8fa74270a0c25dcbb191068f2b4f167c7d6a99fc 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/A9") 
+picturedir = get_picture_dir("MeshPresentation/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 805d9665f21a23d8740fa43e9887e735bce2a8d1..01af691df8b5ed7496d9cab28c845710445dc977 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B0") 
+picturedir = get_picture_dir("MeshPresentation/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 39a2521e09ba2a1575177638b124c92a4b03e30f..8bf34edfbc66608a52891d894dd0afb535259ca2 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B1") 
+picturedir = get_picture_dir("MeshPresentation/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 0af92baed6cdfec00d18a330b92e5645da9ed0d8..2baaa6dfe75f3d87eb8ec0dae0cd4d205be1e1c8 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/B2") 
+picturedir = get_picture_dir("MeshPresentation/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 917b12cc53c7760f8e2c900c3fa46d447004da19..a315e140b7b664854ae3d64571c7bf78e099b795 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E0") 
+picturedir = get_picture_dir("MeshPresentation/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index f289a7074c907a1b76c4a4a814e81e63e53d1548..2b3a54b0bf2d33759e8195cd9a8029071ab21a20 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E1") 
+picturedir = get_picture_dir("MeshPresentation/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 8e785b95bf4321ed507a1a2a7a02b3486b63abae..a44eae096f085876509eb91e50278f902a5756cb 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E2") 
+picturedir = get_picture_dir("MeshPresentation/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 462862a8db67a70331d3a2ef82e0511a93f83975..b2ce3119405c33482f2f3fd76f41ec09d756150b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E3") 
+picturedir = get_picture_dir("MeshPresentation/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 56bb82c6fd4262187f3e0fd636801dff033f0750..0809f529ed707841ffbbbbf2ff85dbb66375a5ab 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E4") 
+picturedir = get_picture_dir("MeshPresentation/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 80d3cbf2816ae8c81ccfd55beea9976a3a26597e..ed8517176fd59b70a76cc942c3ebf73ff65ab32f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E5") 
+picturedir = get_picture_dir("MeshPresentation/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 26e5c0d33ee694036c3d5c10cfe65a136f18daae..98e30deee2a925d68629416eb891168981158725 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E6") 
+picturedir = get_picture_dir("MeshPresentation/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 6b977889021b8233bee1e17ac5dccbbb9fc82e80..4ece85e23bdbe94e3bd82995e70bbb148506336d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E7") 
+picturedir = get_picture_dir("MeshPresentation/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 410ce6572bcab7b6ba660a24d840c58dddca8d94..fc3ccdb24b38a81a322c76d990ce11435234aa03 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E8") 
+picturedir = get_picture_dir("MeshPresentation/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 0838198cb78b6b1b8d7816168042c1b52d4176c2..335fefc9f22d02e8c2982764d1501b52b78fbc7a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/E9") 
+picturedir = get_picture_dir("MeshPresentation/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 58101e824fb19690d709ab3d582cb1e54b35a9ef..75dd5aa5b60c157b2c79013b1eb9150cb7b68c0a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F0") 
+picturedir = get_picture_dir("MeshPresentation/F0")
 
 file = datadir + "gro5couches.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 125c6a565c5e388c2710a01077ecb3b6a1ffdd28..623b50b678355f51b4cba62888f83ee1642c3103 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F1") 
+picturedir = get_picture_dir("MeshPresentation/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index b1c9000015fe65386e893a77d081ac94852ac393..bf897882c4bcdbf3f8b3141385819e0736497928 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F2") 
+picturedir = get_picture_dir("MeshPresentation/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 25b1c853a940bd9da0e1d1328527690af5500260..53652252fdd1f34b01e2095e34e4708014e7c674 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F3") 
+picturedir = get_picture_dir("MeshPresentation/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 416c24d0e05c188377f84e0f50d92cc692ac4972..3f1cb0c108caf5f5e659bdadf931a25dee4c0bce 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F4") 
+picturedir = get_picture_dir("MeshPresentation/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index a6a252c7e65d46fa3253ec3357157512acb8a241..9ab363c8652dd70dff46149790656dbd76f4d682 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F5") 
+picturedir = get_picture_dir("MeshPresentation/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 6cd8e7e99064b1c2ac59a2c0942ed7a0944ece99..0da43a7a18f094d7666cecf4542c030fa0a42b81 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F6") 
+picturedir = get_picture_dir("MeshPresentation/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 710b4646ed26cd5ec507b5ddb0fd98dbff67257b..7a7d9f408b7184923059c7acf12c3922dcd81c9e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F7") 
+picturedir = get_picture_dir("MeshPresentation/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index ae738d83344abc452abcf3083be96beaa1a5771f..c62d9ea71d42fa29530b347112d57ab01ac53c94 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F8") 
+picturedir = get_picture_dir("MeshPresentation/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index e14db3752ca7e3f6036ca92a822cbac8b24c964b..fb618f098f145d38f4dfcb76bd1c38715c131d78 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/F9") 
+picturedir = get_picture_dir("MeshPresentation/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 1cbf521b8cc7af5ff0880a66a63becc4d453cfd9..d6c0b6962d71b15cf5131197ae781ab2980a9ae9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/G0") 
+picturedir = get_picture_dir("MeshPresentation/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 03021ca6e295eec908db85abb898d093dbae6f31..2379cc7eb8a25983653a3c51e185ba59816e6a36 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("MeshPresentation/G1") 
+picturedir = get_picture_dir("MeshPresentation/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.MESH], picturedir, pictureext)
index 9d1d526adf1dfaae232dbca48a167cad513a7acd..f5a61d0381fc7b4b04f1e8fa5af071a57b4cdcee 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G3 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G3")
 
 theFileName = datadir +  "Box1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name, entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,5 +62,5 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
index d2a34556b34b51a0a0638c62ded54404216410db..f9e806673dc34e8bbf738f54a078e3efe9642df7 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G4 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G4")
 
 theFileName = datadir +  "Box1Moderate.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 8dd4ee1006588dd469e581fe5085290f7729d08e..e8db137546673e71e991bcadf9b50c22a3122854 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G5 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G5")
 
 theFileName = datadir +  "Box2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index d57f0102f9ffc98fc38cf97b911e091eff72e152..75c39fa3b92651c01d7d2ae7a5142a5e7ca1b08b 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G6 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G6")
 
 theFileName = datadir +  "Box2Moderate.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index d56cfc6e154ea88d6632913d803ba6878c42eec3..41b1493d493ade38ca53194f752711a102c32f08 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G7 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G7")
 
 theFileName = datadir +  "Box3.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,5 +62,5 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
index af1c3d2f8a3a8aef08c5dd05d78f037424b5b98f..a274e9722cd8eb4f5c679791c55659841489c8cb 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G8 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G8")
 
 theFileName = datadir +  "BoxEvenSmaller1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 6bd57c65d6d1a3324184d1d4623fba2f7cdb67cd..cd2ad237438ea7833aa51f8a6f990a7ac64e04db 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/G9 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/G9")
 
 theFileName = datadir +  "BoxHexa1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 15c4bbeecfb8c7191692dda4b13ffbaa9674d7fd..258e5a2d538e36cd9695a9727d0533d840a04b43 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H0")
 
 theFileName = datadir +  "BoxHexa2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index b8f7763d4fbd85b8a4d8702c261d7c2a0f55878d..8d8a298f4522c998ea05e5baa8b89db8bec72285 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H1 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H1")
 
 theFileName = datadir +  "BoxModSmall1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index cbff9b7a50a7840d8fe0f2cfe43ea661b61a762b..5ed7518e3f3ad6dc75ae37ad37337706aa8140af 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H2 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H2")
 
 theFileName = datadir +  "BoxModSmall2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 2829c976b360ee25b293d36ac6eb3fe554d9a51c..87da47289b361ab1f1fd752afd59c680ff1ab126 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H3 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H3")
 
 theFileName = datadir +  "BoxTetra2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 28b0975492a7f146cdb6feedbddb25804ae0d2c9..b54b17318af4ff74164aded4eed395b4bbbb72de 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H4 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H4")
 
 theFileName = datadir +  "ComplexIncludedTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index a7dfc6d35645fc5a9e18a3b9ac05b1ca46f0e23d..78ba4a87d8ab2c48b0cff56d4b32dd0275231584 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H5 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H5")
 
 theFileName = datadir +  "ComplexIncludingTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index bb77b19c083ca7d403ec46e6b802bfcdc8f34fe0..45dff21dc1d1b261a42238af248502f247381d42 100644 (file)
 #
 
 #This  case corresponds to: /visu/MeshPresentation/H6 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H6")
 
 theFileName = datadir +  "CornerTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 097c60daede8c0bac952f20591ad405d575b816c..858f0ff89c756c4341d36a02b111c901800fa8cc 100644 (file)
 #
 
 #This  case corresponds to: /visu/MeshPresentation/H7 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H7")
 
 theFileName = datadir +  "DegenEdgeXY.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 4823f29fe924ab3e359ed586fd7769cdb3dc748c..368308587887d14cc8b88f580fd67d15c4d26e58 100644 (file)
 #
 
 #This  case corresponds to: /visu/MeshPresentation/H8 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H8")
 
 theFileName = datadir +  "DegenFaceXYZ.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 14c6ed9ba84a45839a794e801bd9b276b4bc17b8..8b6f0fab9c92b29e518c7ab88638373eb24ef72e 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/H9 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/H9")
 
 theFileName = datadir +  "DegenTranslatedInPlane.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 298f0543da4ac91314721f4e4ca6549e7fa9d1b3..4b0aa8024a298cce5b9271f1e84d100d1fe49bc4 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I0")
 
 theFileName = datadir +  "TinyBox.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index c46be39f247802bcc3bb761d38224a2414f51f2f..6e475b253a27f7cc4a4d9a08e79d35da506da92d 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I1 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I1")
 
 theFileName = datadir +  "TrickyTetra1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index f05f8b1a7c45ea549ac5a750c1bbb4d8d48efaee..20fb798a850b704715d510f67703d28d41d938ab 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I2 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I2")
 
 theFileName = datadir +  "UnitTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 46131f7cf71afe882021f393191595df5ba1d504..e518ad0fc5472371e25253b7ed816b136ccb0393 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I3 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I3")
 
 theFileName = datadir +  "UnitTetraDegenT.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 02a5dfee23e12a0cf5824545b14d71d6bd596130..3c50012d2774e65ee51777c5dd06f87cd9b1cb08 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I4 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I4")
 
 theFileName = datadir +  "square1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 494845a6ddf5e55ce6788a77835494fc97aff65b..a61e89f2e2a4db04bcb5869ded7b22ab7210ec5f 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I5 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I5")
 
 theFileName = datadir +  "square1_split1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 6680fcc8fe83b9820e26d52e938e992f44f300ed..96e5b67205961d0f9da5a978ad98ef1570234fc5 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I6 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I6")
 
 theFileName = datadir +  "square1_split2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 8ec610fea8d72e9e48ad22d94526954acb123eac..ee404e287e7d7a022aeef91953a2afbbfa79816c 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I7 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I7")
 
 theFileName = datadir +  "square1_split3.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 955bba35612e52e7b1af6c277bdb54db19ed3f70..1b46b5fea6e03cf1dcf3005f2751d98d423972b8 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I8 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I8")
 
 theFileName = datadir +  "square2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index b3605781ccedca1b5ef68635b42848c4f4212dbd..86d6b537c60193f66b68341c184c771dc0fc74db 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/I9 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/I9")
 
 theFileName = datadir +  "square2_split1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index d61fcce453e8e4fa41203a7a9fb77ef062e0319c..9f8111f8de6bcb0a892553a47bbf23ecbcfd98c3 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J0")
 
 theFileName = datadir +  "DividedGenTetra1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index ad6a678fa09056f7dc8e27edd90c969828e29bd3..62ae59ed203fb3dab1a7ddc1951b326aa123f855 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J1 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J1")
 
 theFileName = datadir +  "DividedGenTetra2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 459572d918288bc3ad2b130ce1a992bd2af45041..e77f95f7f60170d463a0b575b44c2125ef0b044f 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J2 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J2")
 
 theFileName = datadir +  "DividedUnitTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 81df627f79dd68ff5f4d1ea5398b3c405272b01a..e4785404f66f3b9bf749c1dbb44d216ff6b8276b 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J3 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J3")
 
 theFileName = datadir +  "DividedUnitTetraSimpler.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 309b39414287289000c5cb0b9704a01b072468af..0f147d93a776d876d5c789646bb56714ffb947d5 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J4 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J4")
 
 theFileName = datadir +  "GenTetra1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 7a59824bc06942470e2d57a5e8a31a185f06f81b..ef7c805cd39b4d63cb71aed289d30e51540fb297 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J5 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J5")
 
 theFileName = datadir +  "GenTetra2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index e90eefb5f2116926e308cd401fc3031eb7185e3b..2adc7b51bd8e1d0c076799f74a728cce753375b2 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J6 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J6")
 
 theFileName = datadir +  "GeneralTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 8d2e131af2c76a4702ab6eb3491c6729de26a51e..64777074a820dbbc9e0b5732d0c955fe9cd92e69 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J7 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J7")
 
 theFileName = datadir +  "HalfstripOnly.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 8212300cf1159952c93644150896b5a836daa40e..d482183b5fa0719e69b2080b9d9ff439b782ef59 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J8 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J8")
 
 theFileName = datadir +  "HalfstripOnly2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index b70fa6ef284c2fc76a3dfdd756cfc28b5d7caaab..5bb501d2d3a415ce935f924d26199e35829f6dd5 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/J9 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/J9")
 
 theFileName = datadir +  "LargeInconsistentTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 48e82753f2ce0fe987b34c325b28a207ac74a8bd..cc55cbc728ce5d822b2a0b204e56181c93a791cb 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K0")
 
 theFileName = datadir +  "LargeUnitTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 91397e4ce924d3c3d0675e546f42f05d22586a57..7e1ea2752e7b3a53963055a8d46b59a3309efac7 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K1 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K1")
 
 theFileName = datadir +  "MovedHexaBox1.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 252afc68578f8914720ec53535b73cc385ff8c8c..aca86d5266cbf31011174d3d53eb7fdd868fa14d 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K2 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K2")
 
 theFileName = datadir +  "MovedHexaBox2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index bdfad59215b0bf417bf2edb18d8ff15dbff6b6d2..47f01f767048e4aa092dc4b09df783170367b103 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K3 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K3")
 
 theFileName = datadir +  "NudgedDividedUnitTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index a8abf7efbae2887ef8fc06d624b48887e81adef4..46804640c3e59350cc4dc261efe44f6a26ace29d 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K4 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K4")
 
 theFileName = datadir +  "NudgedDividedUnitTetraSimpler.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 49776d36c090ecce9b39efd9aaa1fa21b8ef4f45..c5f151b9831eec1e0a3ac266888250716aa07b9f 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K5 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K5")
 
 theFileName = datadir +  "NudgedSimpler.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-     
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 7a6c98bb89cf1253e6787b3733d3082ac3d17e83..5c2ed6954186202e9455815bf7640a3c869cbd07 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K6 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K6")
 
 theFileName = datadir +  "NudgedTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index c14424ca28b83e3f996e532b74635627ee7866d6..523edcf00f991fe123501ca5366682359e9407af 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K7 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K7")
 
 theFileName = datadir +  "SimpleHalfstripOnly.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 08c3bc332ea1672b1e47e3a11cc47bcb3cf55c0f..e501e6fa93803f48abae055758e9d2d44c78d59f 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K8 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K8")
 
 theFileName = datadir +  "SimpleIncludedTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 7b98de0a284383e61eecc9220c00fd8dc18e5f02..54c0c910407a37d3dc0d9e7f935089319748d2f3 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/K9 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/K9")
 
 theFileName = datadir +  "SimpleIncludingTetra.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 65208228d0a01995628e2421250763e44560d9d7..b4a4692503e3455a4affb8bf867757f8053bd30d 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/L0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/L0")
 
 theFileName = datadir +  "square2_split2.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index 804a02eb59bb5a45c5ad55bc01b6b977fefb3a9f..a2ae9e24cbe5ada6933eb6e7dcf21b49c080fa57 100644 (file)
 #
 
 #This case corresponds to: /visu/MeshPresentation/L0 case
-# Create  mesh presentation for nodes and cells of the the given MED file 
+# Create  mesh presentation for nodes and cells of the the given MED file
 
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
 
-# Create presentations
-myParavis = paravis.myParavis
 picturedir = get_picture_dir("MeshPresentation/L1")
 
 theFileName = datadir +  "Bug829_resu_mode.med"
@@ -39,7 +36,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 
 aView = GetRenderView()
@@ -52,9 +49,9 @@ entity_types = [EntityType.NODE,EntityType.CELL]
 for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     mesh = MeshOnEntity(aProxy, mesh_name ,entity_type)
-    if mesh is None: 
+    if mesh is None:
         msg = "ERROR!!!Presentation of mesh on '"+entity_name+"' family wasn't created..."
-        raise RuntimeError, msg 
+        raise RuntimeError, msg
     mesh.Visibility=1
     reset_view(aView)
     Render()
@@ -65,7 +62,7 @@ for entity_type in entity_types:
     entity_name = EntityType.get_name(entity_type)
     # Construct image file name
     pic_name = picturedir + mesh_name + "_" + entity_name + "." + pictureext
-    
+
     process_prs_for_test(mesh, aView, pic_name)
 
 
index a7fdaddef0567889f2c7fa44b91f98cbdd2865a7..27f6d22b4a3d5dd00fba014db7cb91dc8b0262d3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A0") 
+picturedir = get_picture_dir("Plot3D/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index a673a123bcf3d2ea7589db1b23b12d3647290d40..eafc707dfa6bd25261f4c9e195ad22e9f2a629cb 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A1") 
+picturedir = get_picture_dir("Plot3D/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 84e5befede993293920f672ce935796e1d87b837..713146209fb9d7379cc9ef1ad8c6dce06e76aa86 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A2") 
+picturedir = get_picture_dir("Plot3D/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 0f958f3154202a460504337d56e939e5353e8bef..892000a2b513bfbfcd7cf61084b4fff32e2001f8 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A3") 
+picturedir = get_picture_dir("Plot3D/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index ffc53e30b8ae0c6e154585ebb1670da95a029732..5a898ab7ac2b62b109901bb970abf26325270d31 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A4") 
+picturedir = get_picture_dir("Plot3D/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 616b4f9aba87258802cc119e1be3e3eb7c5dc389..8fe23b88e4cac78765a040e323017b24f5d345ab 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A5") 
+picturedir = get_picture_dir("Plot3D/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 8e087b119542117d84cc6b0a33e1fca8800828b1..a3e1c92124612efe95f795d6b20fcf41c6cbf177 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A6") 
+picturedir = get_picture_dir("Plot3D/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 673ffec142c110091036fa2656bcb07cdb3be551..ece6bc87a57dd95471c7c98bdbce629c7982bbf6 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A7") 
+picturedir = get_picture_dir("Plot3D/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 485d2a21bc4e66a5820fc2f08f70e9525bb43414..51c1ac6ac98b0991db03094bc90d4d0994daa407 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A8") 
+picturedir = get_picture_dir("Plot3D/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 5b41835f38a5ee7d7f30f56abbace190e98964b4..875c3bf0b87b657848a07e19e6431ce1a6947f42 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/A9") 
+picturedir = get_picture_dir("Plot3D/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 3084eef0d19fa221a37720e22e357f68e767537b..b0cc9457dcfcf87052bb5d8574c17533fe874b72 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B0") 
+picturedir = get_picture_dir("Plot3D/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 7a5d8416a3f4ff85bc6b13f366615d16327b721e..e3ad329bbabcf1902e4d886cbef876ad9c3a5ccb 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B1") 
+picturedir = get_picture_dir("Plot3D/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 02e6441d4b134052f3113ab175679de967c71a77..852ffa126799a5cb41039c558a24f72c4920ba8c 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/B2") 
+picturedir = get_picture_dir("Plot3D/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 39af14e7782a87b32a75915be320ade393920395..aaefaa74bb7708a1922dcd1ed076c2786181e54f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E0") 
+picturedir = get_picture_dir("Plot3D/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 8bceda0796606a5c89093d334feb2a2f679f9713..2139976b4b6b257d6ed666c057bb8e42f6fcc442 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E1") 
+picturedir = get_picture_dir("Plot3D/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 42ffae30263d734b6c4fc8c4684b9b71edc90566..7ae8d111b8084d5d501fd84cbf97c00142cefb77 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E2") 
+picturedir = get_picture_dir("Plot3D/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 32f532ccabe73c75aad67e2cd45d92ff96561992..b2c6c7e841cfd91922ea77eac854da70f0b4e232 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E3") 
+picturedir = get_picture_dir("Plot3D/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 13772447557e2505c24ac1e550e3a575110e0960..37113b12c551f4f6f7ab4add630c6b52fc96c75e 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E4") 
+picturedir = get_picture_dir("Plot3D/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 5a94fecc0c4ca873fbe0a96584307b388e951e20..7c85cde44a736c2c796f0d3de9ce1bcb4b6efe4b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E5") 
+picturedir = get_picture_dir("Plot3D/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 385f188bc06ff12e8ed25f70d420aa24330165aa..47afc8189d8ef23ce885336b1dd931ca35a5a790 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E6") 
+picturedir = get_picture_dir("Plot3D/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 73e648651e22e047095f71c40c8c08849432cfcb..292ae34b9188a4ae401a0907207332f1bb0a1b8b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E7") 
+picturedir = get_picture_dir("Plot3D/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 0ac8ddb8eac60c59d8fa4a678f1e7367d39608ad..c2d7d2d72ad8c2c1345821d988e2fdb16af0a47f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E8") 
+picturedir = get_picture_dir("Plot3D/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index da0d62cbd32c456c185f753b94d1d50950c7b2f1..9ccc03ca3667e708ce08ee5f705d23307ed2bca9 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/E9") 
+picturedir = get_picture_dir("Plot3D/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index d0fb42fa01b3c53747bb4f1353c0841397c4c44a..cd140e5b4a493b3420392f5c4e0c4343df07a15c 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F1") 
+picturedir = get_picture_dir("Plot3D/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 8a716f33779154122945282938ef1f176ad1e8f5..1880539a15735c1f5e1c0c054deb82a824438ac9 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F2") 
+picturedir = get_picture_dir("Plot3D/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index a99026692736ce8dbb6709879ecf1ae1d139ae45..2572b27c4adb8337e4b5a53fe25eaaec0ced8888 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F3") 
+picturedir = get_picture_dir("Plot3D/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index fba201ed79b433650936d1b3911e88408ff98026..2c7f259891c3f4b8ca960cd3c7c0ecec86c00e4f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F4") 
+picturedir = get_picture_dir("Plot3D/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index bf0bf3ca25525cbb8a4cb4867d1b521b9a0119b0..a8d1ef6e4c58f93c126523a5060a5decc72d33e2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F5") 
+picturedir = get_picture_dir("Plot3D/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index dcaefc67cefad572e2c0f05cdfba191fff07200c..e05a2e994dff2ba8f9cd12129a40d9039c4f2c6a 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F6") 
+picturedir = get_picture_dir("Plot3D/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index e995a05a1ec524a511bef40e33add7e965242acc..a2fede0b0199689bd2e80c93dcd45952fe998c78 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F7") 
+picturedir = get_picture_dir("Plot3D/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 6be15501de011cd9460bfb626e21d8c58ee331fc..6b090a5ce89e8230a512e7bd70633faca59c49fe 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F8") 
+picturedir = get_picture_dir("Plot3D/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 1cd3b9ce3a6fbefb8d1a2d56a4ddd60ce2442574..813131049e3024e3277d8ce0cd779f237fd3a6dd 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/F9") 
+picturedir = get_picture_dir("Plot3D/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index dd37aaa084db45335e7ca773c0f902e6f902786a..0d7632065240b8badcc33949de1fcfe64302d644 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/G0") 
+picturedir = get_picture_dir("Plot3D/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 77621fd3b244baf081521cebe22617a6861978c3..1b7642b23207620be54ce362bc46bfe3576900f1 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Plot3D/G1") 
+picturedir = get_picture_dir("Plot3D/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.PLOT3D], picturedir, pictureext)
index 59b1f220ba8cd56e42524be14d5916111d2e0fe2..be73291cc3b8ede9375c44f8209567b3ef154585 100755 (executable)
@@ -24,10 +24,6 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
 from pvsimple import *
-import pvserver as paravis
-
-# Create presentations
-myParavis = paravis.myParavis
 
 picturedir = get_picture_dir("Plot3D/G2")
 
@@ -41,7 +37,7 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get viewScalarMap
 aView = GetRenderView()
@@ -58,19 +54,19 @@ for i in range(1,11):
     #display only current scalar map
     aPrs.Visibility=1
     reset_view(aView)
-    Render(aView)    
-    
+    Render(aView)
+
     # Add path separator to the end of picture path if necessery
     if not picturedir.endswith(os.sep):
             picturedir += os.sep
     prs_type = PrsTypeEnum.PLOT3D
-            
+
     # Get name of presentation type
-    prs_name = PrsTypeEnum.get_name(prs_type)    
+    prs_name = PrsTypeEnum.get_name(prs_type)
     f_prs_type = prs_name.replace(' ', '').upper()
     # Construct image file name
     pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-    
+
     # Show and record the presentation
     process_prs_for_test(aPrs, aView, pic_name)
 
index 537f1c95ffd6e7e00437dde8f1584af7b45c0503..57fba91f309e2c5bab756f334140ec99232b7e64 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 #====================Stage1: Importing MED file====================
 
 print "**** Stage1: Importing MED file"
 
 print 'Import "ResOK_0000.med"...............',
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -122,7 +118,7 @@ else:
 
 print 'Import "Fields_group3D.med"...............',
 file_path = datadir + "Fields_group3D.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader1 = pvsimple.GetActiveSource()
 
 if med_reader1 is None:
index 881c15cd1e307d76253b2325d0e8caf63ca545e8..aaad57b5a5327dc57615cd0e2127e370266194f0 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 print 'Importing "TimeStamps.med"...............',
 file_path = datadir + "TimeStamps.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index aa9cb0a192fe2a24ef369937164436a49fd7d263..87fcb27d4c7105093813283610d36188f9ea5b89 100644 (file)
@@ -25,14 +25,10 @@ from time import sleep
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 DELAY = 0.25
 
-my_paravis = paravis.myParavis
-
 # Get view
 view = pvsimple.GetRenderView()
 sleep(DELAY)
@@ -55,7 +51,7 @@ field_name = "fieldnodedouble"
 entity = EntityType.NODE
 timestamp = 1
 
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
 med_reader = pvsimple.GetActiveSource()
 
 
@@ -238,7 +234,7 @@ for curve in curves:
     b = str(random.random())
     xyrep.SeriesColor = [field_name, r, g, b]
     index += 1
-    
+
 pvsimple.Render(xy_view)
 sleep(DELAY)
 
@@ -256,7 +252,7 @@ field_name = "vitesse"
 entity = EntityType.NODE
 timestamp = 2
 
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
 med_reader = pvsimple.GetActiveSource()
 
 isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
@@ -264,4 +260,4 @@ print "IsoSurfacesOnField(...)"
 pvsimple.ResetCamera(view)
 
 print "Start Animation"
-pvsimple.AnimateReader(med_reader, view)        
+pvsimple.AnimateReader(med_reader, view)
index e03e5b240509779668a760704bbb46560118a8f5..6df0be1b940463b84694e16d38fd945ba2d0bb9f 100644 (file)
 # Create table and display it as curves
 
 from paravistest import tablesdir
-import pvserver as paravis
 import pvsimple
 
-
 # Define script for table creation
 script = """
 import math
index 5b0a265cf259e6b32bd6ca5284cdf3b131741519..43972d4cedbff96890fab8803bab8086a40e77e8 100644 (file)
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Import table from CSV file
 file_path = tablesdir + "sinus.csv"
 sinus_csv = pvsimple.CSVReader(FileName=file_path)
index a1ac618908353c76f5ff77f3ef0e0318a37e9fe9..c22ad6a7a924f90a4e8331723a5fa993dfca68cf 100644 (file)
@@ -23,16 +23,12 @@ import time
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
 view = pvsimple.GetRenderView()
 reset_view(view)
 delay = 1
 
-
 def after_set(error_string, prop_name, old_value, new_value):
     print prop_name, ": old_value = ", old_value, "new_value  = ", new_value
     if error_string == "":
@@ -96,7 +92,7 @@ file_path = datadir + "ResOK_0000.med"
 field_name = 'vitesse'
 node_entity = EntityType.NODE
 
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -132,7 +128,7 @@ file_path = datadir + "fra.med"
 field_name = 'VITESSE'
 
 pvsimple.SetActiveSource(None)
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index b8c8c598f23d7e2d34d85baa22219ff669180186..b38e23fca6e7caf27bb31272a2f4ff348ebe89cf 100644 (file)
 # Create table
 
 from paravistest import tablesdir
-import pvserver as paravis
 import pvsimple
 
-
 # Define script for table creation
 script = """
 import math
index 936f5247af5cd535fcd026f5833ae76947ebf59b..98f281c8ae2dbe9f7a6f5f8cadb72c9bee85988a 100644 (file)
@@ -25,14 +25,10 @@ from time import sleep
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 DELAY = 0.25
 
-my_paravis = paravis.myParavis
-
 # Get view
 view = pvsimple.GetRenderView()
 sleep(DELAY)
@@ -55,7 +51,7 @@ field_name = "fieldnodedouble"
 entity = EntityType.NODE
 timestamp = 1
 
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
 med_reader = pvsimple.GetActiveSource()
 
 
@@ -288,7 +284,7 @@ field_name = "vitesse"
 entity = EntityType.NODE
 timestamp = 2
 
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
 med_reader = pvsimple.GetActiveSource()
 
 isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
index 12737f59dc583c804bab598507cb458b7d3e7358..f8e207ee464230ecc3feb94aedcb92e8faf3939c 100644 (file)
@@ -25,14 +25,11 @@ import os
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # Import MED file
 med_file_path = datadir + "pointe.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -46,7 +43,7 @@ try:
            entity = EntityType.NODE
            field_name = "fieldnodedouble"
            timestamp_id = 1
-           
+
            scalarmap = ScalarMapOnField(med_reader, entity, field_name, timestamp_id)
            if get_nb_components(med_reader, entity, field_name) > 1:
                vectors = VectorsOnField(med_reader, entity, field_name, timestamp_id)
@@ -56,9 +53,9 @@ try:
        else:
            print "We have no permission to rewrite medFile"
     else:
-        print  "We have no permission to read medFile, it will not be opened"; 
+        print  "We have no permission to read medFile, it will not be opened";
 except:
-    print sys.exc_type 
+    print sys.exc_type
     print sys.exc_value
     print sys.exc_traceback
 
index 1e5aadbe5027e86cb7eaf5b3819c0237b6efd37c..66bd1a8d11ece2ea86cfdfce270ed15c2b5e448f 100644 (file)
@@ -23,18 +23,14 @@ from time import sleep
 
 from paravistest import datadir, tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 DELAY = 2
 
-my_paravis = paravis.myParavis
-
 # Step 1
 print 'Importing "pointe.med"...............',
 file_path = datadir + "pointe.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index c091f825aa5c03b12419a09697f76891cf80cb3d..ada4c64b11bc48cd347447a8110a26d120382cc3 100644 (file)
 # Create table of integer, create table of real, create curves
 
 from paravistest import tablesdir
-import pvserver as paravis
 import pvsimple
 
-
 # Define script for table of integer creation
 script_ti = """
 def add_column(table, name, lst):
index 8ad780a88cb7839f2afdf26d2f2fccf8ab3eb715..4953deb6370c5980c53197b618ade4d30d8566e2 100644 (file)
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Import table from CSV file
 file_path = tablesdir + "table_test.csv"
 table_csv = pvsimple.CSVReader(FileName=file_path)
index ebf05d2d7c27eae7d8c03c53b79117b1a0e8bb48..e4bf07641902df453f01246caf9a66e8c9b09281 100644 (file)
@@ -20,4 +20,3 @@
 # This case corresponds to: /visu/SWIG_scripts/B8 case
 
 import paravistest
-import pvserver as paravis
index ba741176d265894f7c8d7b23f0b629105cf9a54c..cb74a8c1f9db538be175c50321dd31ac16f04e68 100644 (file)
 
 from paravistest import datadir
 from presentations import EntityType, ScalarMapOnField, CutPlanesOnField
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 # Get view
 view1 = pvsimple.GetRenderView()
 
@@ -36,7 +32,7 @@ field_name = "fieldnodedouble"
 entity = EntityType.NODE
 timestamp = 1
 
-OpenDataFile(med_file)
+pvsimple.OpenDataFile(med_file)
 med_reader = pvsimple.GetActiveSource()
 
 # Create presentations
index 2de470fd84f811dd4bfc983436b6931a7743db92..dad9c8be9febbb242dc03895583a2a558606f243 100644 (file)
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # 1. Import tables from file
 file_path = tablesdir + "tables_test.xls"
 table_reader = pvsimple.TableReader(FileName=file_path)
@@ -47,4 +45,3 @@ xy_rep.XArrayName = 'toto 1 [s]'
 xy_rep.SeriesVisibility = [xy_rep.XArrayName, '0']
 xy_rep.SeriesVisibility = ['vtkOriginalIndices', '0']
 pvsimple.Render(xy_view)
-
index cfddddaed70fd3008e0e8af9c3b270f4850afe65..a74c8d126704778f7cead23af97f24c8fc921f2e 100755 (executable)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import tablesdir, get_picture_dir, pictureext
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Import table from file
 print 'Import file with tables....',
 file_path = tablesdir + "table_test.xls"
index c2a33c2510daa38f5430ce9e649a968cd1bf14d7..607f9dad1cf68295f6fe4af7b35ddc0009bb13af 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A0") 
+picturedir = get_picture_dir("ScalarMap/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 00b06b1a031e85db60734730fb37088a4b789bd8..4ded229e74e0865131b1e746780d83095d95f116 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A1") 
+picturedir = get_picture_dir("ScalarMap/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 1e9a9a5941fc2176075f7383d4409f0388d477f7..2d44f6cb07c9bf60c3faaa430d344b18cc90f9b7 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A2") 
+picturedir = get_picture_dir("ScalarMap/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 09e8d2190f8ec20167bdacb37894921d44a2f971..c9d7e6a8cd6a7d2b2f2ccaed93108aa4e82ac62b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A3") 
+picturedir = get_picture_dir("ScalarMap/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 85bd5c545131efeb0219534f437b2599576b06d6..c7464fbcf50e62aae707ea3a4ba5d8982b4064dd 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A4") 
+picturedir = get_picture_dir("ScalarMap/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 8bde3c40451ae147be7f9567099a5be3d0b56986..5a086e8e1d88c8b6c2126dc8c581c556f1ab2194 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A5") 
+picturedir = get_picture_dir("ScalarMap/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 045312c4c56566548366ae3f9b59bafeabc1e844..228db56e39438409cd5db74bd44a810cb67bed4e 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A6") 
+picturedir = get_picture_dir("ScalarMap/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 0e3d8ac985f8a469163b414a60faa63a6a029a73..ff04a5b002fb7776c85ad4d8639b448cf6eb5c6f 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A7") 
+picturedir = get_picture_dir("ScalarMap/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index cb856861769eb452c6afb2ba69b3465f583dad42..8f2c6063efa6f3cd3ec21674f4f9e3b45fba8ba1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A8") 
+picturedir = get_picture_dir("ScalarMap/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index be046b678468289879f8d3b47cecca27bdbcc3e9..703278165a0c694dd690e1361a278f7b3bbb57ee 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/A9") 
+picturedir = get_picture_dir("ScalarMap/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 8ee48ac27eaa2f8d55ffcc4c58af3ca78cdcaaad..82c91b52bb6487274c119287614dd8a3b83b8096 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B0") 
+picturedir = get_picture_dir("ScalarMap/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 5ac0d329b8a594f3de3b65c4f561ae5256170018..bdbfe6fd99c942e2c9d2bc148ebbe3495c7c5171 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B1") 
+picturedir = get_picture_dir("ScalarMap/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 4b502bc773f84168e981ed51676b64570580a137..fe2e4182156ceb76deb372ba23d46254b17f78b8 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/B2") 
+picturedir = get_picture_dir("ScalarMap/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index ddc91692fee09541c977b315145d830ade345af5..86b2216f8a7bef56ad54a8c14d4a60f8d83b3ba0 100644 (file)
 
 from paravistest import datadir
 import presentations
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 
 print 'Importing "fra.med"...',
 file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -56,7 +53,7 @@ print "Vector component .....", lookup_table.VectorComponent
 lookup_table.VectorMode = 'Component'
 lookup_table.VectorComponent = 0
 
-scalarmap.LookupTable = lookup_table 
+scalarmap.LookupTable = lookup_table
 
 print "Vector mode .....", scalarmap.LookupTable.VectorMode
 print "Vector component .....", scalarmap.LookupTable.VectorComponent
@@ -132,10 +129,10 @@ print "Default number of colors = ", scalarmap.LookupTable.NumberOfTableValues
 
 scalarmap.LookupTable.Discretize = 1
 
-print "Set negative number of colors"
-nb_colors = -128
-scalarmap.LookupTable.NumberOfTableValues = nb_colors
-print "Number of colors =", scalarmap.LookupTable.NumberOfTableValues
+#print "Set negative number of colors"
+#nb_colors = -128
+#scalarmap.LookupTable.NumberOfTableValues = nb_colors
+#print "Number of colors =", scalarmap.LookupTable.NumberOfTableValues
 
 print "Set zero number of colors"
 nb_colors = 0
index d22c3bb98201edd7449393560421832fe39a6718..31e8d7d5ba03680b96a5d9b84a86e75ba90f2170 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E0") 
+picturedir = get_picture_dir("ScalarMap/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 7aba4ea0292cabec6d85119ca12b8ddda9a08834..738b39c5b6e73b9dc2e5d385036d386ac8198223 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E1") 
+picturedir = get_picture_dir("ScalarMap/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 46dda14e020f42ef3df24cd24ff35e823b12fc73..dae2a3e3b00bb3eb0df6cb7a012fa0e5f2851b13 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E2") 
+picturedir = get_picture_dir("ScalarMap/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index cc0c215ef8b58df54e352164ad2b2899d17fe421..89a364d70891551bbb0214e4f96e7cc4086aabb0 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E3") 
+picturedir = get_picture_dir("ScalarMap/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index eb719959f640bd68a0ffa3a8d561162a41ef6a71..713602af0222ce6f83befde8ecdb1a1b4052753a 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E4") 
+picturedir = get_picture_dir("ScalarMap/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 3ead844c21dd926b4a2ad5b098be0956b84ac330..b5fd2b6f79f7c03b2b4a69851ce880971782359b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E5") 
+picturedir = get_picture_dir("ScalarMap/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index bf75b9473b37ce48edb4464700fc96ed860baa82..512710e13c8cd78f9089728e85cc3a68aaba9003 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E6") 
+picturedir = get_picture_dir("ScalarMap/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 81da1ab87b5535e05419a86e8bb4ba6d7dd0fb69..6e74a962c771a3dbe267af0340d44d1c8dc50124 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E7") 
+picturedir = get_picture_dir("ScalarMap/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index e19bcdbe1b8519fcb5eed96bf58a787ea27c2801..9af0585a7886aa39735201384d24017cf03af090 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E8") 
+picturedir = get_picture_dir("ScalarMap/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index e75fdd21e92739c57e9c0bed9d9dce519c1c5fd6..b7d1616f47730fba3bcb119dd52c5e4cd708082b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/E9") 
+picturedir = get_picture_dir("ScalarMap/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 15768ce5887f593bc81f31a9527102b752d68701..7fd83aaa07f8c191dcde5a061617c8d62d81a9f9 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F1") 
+picturedir = get_picture_dir("ScalarMap/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 98e0bfa8a72bbe3260dd68a4430d372702b26dff..70e21a84944f41c1c9bd72b30fef496614caa3d3 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F2") 
+picturedir = get_picture_dir("ScalarMap/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index cf2aec8acddb2dbbe73d007b0800c45c782bdfdd..981f0dd2cb094f983e9d49cd0420b2ef38b61e85 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F3") 
+picturedir = get_picture_dir("ScalarMap/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 10e54bb18e4eaceabc62cfc8cf28d3228b00cc90..51e842207f8d07d96081011b7f4958c0ca336518 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F4") 
+picturedir = get_picture_dir("ScalarMap/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index d86c50e9d6915be1638f0e5ba5cce8470f79930c..9dfb75e32e02b4fcdf1814466ebd1dd1dc43bd71 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F5") 
+picturedir = get_picture_dir("ScalarMap/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index b79e94c6f05874e5ec8cb3b362805e68e495a1d3..1bf84c8f451ce62e877389030d66caf9496bffaf 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F6") 
+picturedir = get_picture_dir("ScalarMap/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index cd530ba0ff2d7f302ed3f4a056021b6dcaf28305..da55c773d14d7ab259639220f185ce117a476299 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F7") 
+picturedir = get_picture_dir("ScalarMap/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 828651bbfdc21abcbade1860e83e6053c043435b..0bb06805157b4e304518bc487d6fe66c5e745dd1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F8") 
+picturedir = get_picture_dir("ScalarMap/F8")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 5c25b4a4b6433e981acea0db177484ea056319cc..2f29631a1bbff8248885626c871e6b3c4038d47c 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/F9") 
+picturedir = get_picture_dir("ScalarMap/F9")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 7c0eba49fb39647d00e0695f0a590b4ad72f062b..6a7749eb6f326bda4566f140183d9842a729a98d 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/G0") 
+picturedir = get_picture_dir("ScalarMap/G0")
 
 file = datadir + "homard_ASTER_OSF_MEDV2.1.5_1_v2.3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 621bb1b1afbe50184dc3440ee200a9d35ded4736..b9d2658836fc24560936d2c2a8e5c9befa200975 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap/G1") 
+picturedir = get_picture_dir("ScalarMap/G1")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
index 5465eb55df1afd889b3205dd4037870e009e643e..9a3bc7f8aafd9fe5dbd02b31966f2a4aa463040e 100644 (file)
 import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
-import pvserver as paravis
-from pvsimple import GetActiveSource, GetRenderView, Render
+from pvsimple import GetActiveSource, GetRenderView, Render, OpenDataFile
 from presentations import ScalarMapOnField, hide_all, EntityType, PrsTypeEnum,reset_view,process_prs_for_test
 
-
-# Create presentations
-myParavis = paravis.myParavis
-
 picturedir = get_picture_dir("ScalarMap/G2")
 
 theFileName = datadir +  "Bug829_resu_mode.med"
 print " --------------------------------- "
 print "file ", theFileName
 print " --------------------------------- "
-    
+
 """Build presentations of the given types for all fields of the given file."""
 #print "Import %s..." % theFileName.split('/')[-1],
 result = OpenDataFile(theFileName)
 proxy = GetActiveSource()
 if proxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get view
 aView = GetRenderView()
@@ -62,27 +57,27 @@ for i in range(1,11):
     #display only current scalar map
     aPrs.Visibility=1
     reset_view(aView)
-    Render(aView)    
-    
+    Render(aView)
+
     # Add path separator to the end of picture path if necessery
     if not picturedir.endswith(os.sep):
             picturedir += os.sep
     prs_type = PrsTypeEnum.SCALARMAP
-            
+
     # Get name of presentation type
-    prs_name = PrsTypeEnum.get_name(prs_type)    
+    prs_name = PrsTypeEnum.get_name(prs_type)
     f_prs_type = prs_name.replace(' ', '').upper()
     # Construct image file name
     pic_name = picturedir + aFieldName + "_" + str(i) + "_" + f_prs_type + "." + pictureext
-    
+
     # Show and record the presentation
     process_prs_for_test(aPrs, aView, pic_name)
     sizes.append(os.path.getsize(pic_name))
 
-# check sizes of pictures      
+# check sizes of pictures
 if abs(max(sizes)-min(sizes)) > 0.01*max(sizes):
-    print "<b>WARNING!!! Pictures have different sizes!!!</b>"; 
+    print "<b>WARNING!!! Pictures have different sizes!!!</b>";
     for i in range(1,11):
         picture_name = "time_stamp_"+str(i)+"."+pictureext
-        print "Picture: "+picture_name+"; size: "+str(sizes[i-1]) 
-    raise RuntimeError 
+        print "Picture: "+picture_name+"; size: "+str(sizes[i-1])
+    raise RuntimeError
index aab8f951d1d0582e42469ada6b717269f3feb015..7a748e7c54707f5c05e084b464baf99c5fa5e8e6 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A0") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index b42582fb05718179bc2e4bff786767c01252db9f..1fc07e5ba9d6ffac53de2037ac8c18a8274a5d53 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A1") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 542459a8b959ddcc0137b9c380c00a0b40aafe09..7bbf02cf5f727d4c423c53a615a2bd05629aad16 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A2") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index a986aabc3e7d7496f1973308e172db50180c4815..b7925be5b43e88626e3fe06724c7c9d8fbbf4d67 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A3") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 37114eea7b286a3b65dce9ff8bced8d3cc5b18ab..be7f45e21ecd92e8c89572f5dab7f53721345e5d 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A4") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 4dfab688eed2124f79cf0edcd4f74d23a81fc683..59a5ed8009d4322e57f8961ea59deabf666dce56 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A5") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 03f8fdcb12c8a7a6fdefed879758906e89d2e3e6..f3001ea99a3f15d2b8ac4f5ac60919530693a91b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A6") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 014689bbd071f79415689803679e6a64b93fe1ba..d6b48ec74eb6138708672009f1851b1be7e0d673 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A7") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 46ad572489ec9480cc8fdf0d4ebcbad3f4a20253..bc6089902f938a24cf853af9ab90b2a33a817f57 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A8") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 0a47091e9bcf25b1c1492d46b2081f3cf2acdefb..6fc9a477d84b84e8afab83aaf9199ac39baaec23 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A9") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index e524b5e3eafb399e8d0a8e5475ebbde7ba0583dd..debcdc09a0e3999c0e0fb7b133669f9991203995 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B0") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index cdb1d440ba5447aa0ba83c9e1c6ae97db2727272..15f046a604baaa4cf5dad1ccfbbd56223a11a0e5 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B1") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index fea51f206acf0184183eef8078c4b2f3cf33de50..d5fbab6c5c704ba14c93ab5fb53419f4ee98f3aa 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B2") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 0a806abe2d0e8d38ec1248137bf3f9709552f042..3deddecc16a49efa5edace12d1d8a4f2891d8e82 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 #====================Stage1: Import MED file=========================
 print 'Importing "fra.med"...................',
 medFile = datadir + "fra.med"
-OpenDataFile(medFile)
+pvsimple.OpenDataFile(medFile)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -172,11 +169,11 @@ print "Changing number of colors:"
 print "Default number of colors: ", lt.NumberOfTableValues
 lt.Discretize = 1
 
-print "Set negative number of colors"
-num = -128
-lt.NumberOfTableValues = num
-print "Number of colors: ", lt.NumberOfTableValues
-pvsimple.Render(view)
+#print "Set negative number of colors"
+#num = -128
+#lt.NumberOfTableValues = num
+#print "Number of colors: ", lt.NumberOfTableValues
+#pvsimple.Render(view)
 
 print "Set zero number of colors"
 num = 0
index 7ccce3e7f63a1279d2315d261ee2b2c2f6212b5d..8949312cc7a5aafed37e9982c18febdf3fec408c 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E0") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 3f6e3b4d4019f29b26314c2cf8fe025310fe0d5a..cd9fdbf65681a126d419018d24a9343fbb5fc4e8 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E1") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 6e77502a95e3ff3c1564c24da5df69d331716a58..4e439cdcf3f0a3b3b0dad3b7fccfe9d488f050a2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E2") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 18f98906d4aa543cfc46417a70b0bd89e2ae1c21..4721b7eb3802cec905e647f848de49b072d195bf 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E3") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 13116f1ff1cdcc50e199beba40fa656f8648ec24..6bc17a31571985e6a9080354f9d20c432b38fcb6 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E4") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 9d70f50c019f13022ad731ee0dd92340473eb95c..a14b6683809cc918845651665fa026fe8f18b320 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E5") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 19846794057406dc43d53bd8a13c7af3627674b8..3795b5ec15275ccc769bd1f29e17386a94ee6df6 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E6") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index f94b03be091742efab606540ac95420f10742846..b567e3e3a44915b54d7d7d1f41de5e08ab38389d 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E7") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 87596c68e5ca9a1160ad7bb200b165adf56ed9fe..29096ddb1ec2f22f79a9f700f29ddc2739eaf458 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E8") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 27f41a111a496476df4835f1d528749838e115d6..b79a5ac04425ceff2e2b1ceb787645571b13db8b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E9") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 0a22664c76aa43287d6ad0aa51b259c00a183bb1..55aaf4fcf7d3f8ed350f4241f5a67219940c2628 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F1") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index ffa848f2f7b68ed6daf387ac7f19b76d02967502..df152320a54757cda40d517f26d81ae6c9359da2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F2") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 3a470dd288764de9f89977cf73cc61138e0fb0f4..3b665040a756ab90ed90ba38c1f58dd5dc8ff1f2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F3") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 46634b505151aead800ae0d23e28f481a7495db4..0bd98159ee22fa30af5107753bee87a6f83fc306 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F4") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 247625633476948b90a09b4b470651051a4fcb76..b4b9cb362bddd9dbf41eed17f14914119d2f21fe 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F5") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index fd1f1abc29426530f2cc83d99af522f062acda10..efead06bf42066e977bf31906341b6c4a7e63ec1 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F6") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 8b868126ebb90ae62e44a44ee6ca95e0511d5180..8fa9272e4384eb4c752a7643759eefda5df6b452 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F7") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index c4f2a3287e851c3d16f527996b24bd4de59b2116..6010a0b5afddf8fb0a5c4b0a38fb3032a113d4c6 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F8") 
+picturedir = get_picture_dir("ScalarMap_On_DeformedShape/F8")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.DEFORMEDSHAPESCALARMAP], picturedir, pictureext)
index 538f42ac76d6b6f54dfcd85ce35223bc4c47156c..fa3c7ab7ca5ec797c9df0fa5647da21ebf9aed3e 100644 (file)
@@ -24,21 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A0")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
-
-import time
-time.sleep(10000)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 94083b9e891813cc1cd11a23383cc3d868969eff..64a179e6d4b5e0480d7051d59db6a88b1d5a237a 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A1")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index c78c940d79b3a5a2f728fc5ee0e688a3477f866d..b2da984dc898c42ff329539bf8c951cb578a7db7 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A2")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 2bbdaa244427997ed5d3bbfa5765db35627ac5ee..e27f79b37e7e38dc7c8cf8f9dfb032f2b3c6903f 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A3")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 680e50eb7e9f93f0cc3b0ad656e5afcbbb69ace4..d65b208979ef0c6b104399d11ff18186c135ea65 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A4")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index ddd37a8d2c4f8d4f99c48a550699e189738534e7..80b58455c348563a8876c6c5419074c840171b72 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A5")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index c9756861918d43bb04d5e339cd6bdc15fd5a7571..2dc6879ad6c57637e43095d8a14e2c80fa9a18dc 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A6")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 396a2449f347e08ca884cd1d0ed21a1c94c180fc..e068dea999a089e46023cf39c61d1dcf38a9928c 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A7")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 7682a22bcab6c88b2e7bee4bdd85ffe517836c69..6ec3cee662a831560749292c47bd2f0362a7855f 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A8")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 0077a591768ea3deac81fbc3175eb0f327454781..e30c007bdd651a0583f0d9978d12cb6b62b3c3a6 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/A9")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index c33e4fdcb04674cdc96a27cd9b3f7c096fd4f120..0b557b7d33483322fc58a2095121db90b287f1fd 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/B0")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 6d4f5d9f9b3b8f1d9837ca5df515ced3f99e81f9..981ecc0b2c90325da1800392d9ce7a4d5083cd9f 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/B1")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index db8bd87ae8bc66e9940966ef64dbfb875958804a..2445391d9899a499e4af4608720300c12789f899 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/B2")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 0d0e8b9399928b4329de9dcf6dcf2402591003f6..3e79f55df38643a9c48c13bbcd5f87666e605d3b 100644 (file)
@@ -24,9 +24,6 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
 picturedir = get_picture_dir(sys.argv[1], "StreamLines/B3")
@@ -40,4 +37,4 @@ for item in files:
     print "file ", file
     print "\nCreatePrsForFile..."
     print "BREAKPOINT_1"
-    CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+    CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 9604c86b4112e415e38f888d0d9c65badd1cf744..9aaf6cfdbf395e9494fa9196561d0b54d43cb666 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 print 'Import "ResOK_0000.med"...............',
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     print "FAILED"
index a8b7d0fdcd020e3dd9b3fa06671e588abd39f73e..fca110adf8ac5a2997a3c50c934a3e1da085024f 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E0")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 72a818a301a16a8527a6e9631aa2af654473a8a9..b10aab1b418f00fd40260c5cc0d4be49036a5339 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E1")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 813bca9c16bf7f3096fd1095231e379f5afd1745..d566b182a6698038cb372fce13ac2f906eae2875 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E2")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index fbde0c50eb5ab23888215b8a88d06c4c837304f8..8031a500e30bd366cecbb2dc0a15bad463350ee9 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E3")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index e1920fa81829b9251dbfa67afe21b6d1df8765f5..81f06f9e461e7ee4868b0b8e7037d98c84d48f28 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E4")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index a5eb76080b5ddaa189c27b95b6118e60916da1ae..a74761f063679945d133c169766c758b2c9e5183 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E5")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 719cf9ef7ea7573ca693285cf81aed6f64630835..dab469adba48e0c2b56b3862785ef01f2a5fd2f9 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E6")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index fd5730812ce7c4f4ee7ba7e0e42cc278b8ba352e..b4cc8a577f1292e92b6f5efd9e417efc7ee6df92 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E7")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 8c13539997d4ce2a37f71d2b052aaf4ff2220a7b..11109bd9c7fe9992c4c1e978ae28c1436296f43a 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E8")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 754a6a8f345dce2bab2d1e3ca790ee3557101d03..edc801a41f3a1a154c1a404877abf02127390165 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/E9")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 4dc8ce5e679cc22ff2579c41a1b208bee6a79c59..2f8f445cbc43fe6954e27ec90ad4fa189aa48779 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F1")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index b879028a779142ad5ebc1281693867b5a61be281..7a0cc90bb12ce241e27e3305525039f40ecde35f 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F2")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index bc4926574b9b63e5738de79da63bcc39d1570cbf..c9e196d2143a9325b46bb8b2e22ea5518c677a04 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F3")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 742416de4f534b8766438266fdf58f381a3a3640..b6ee5b6b102a9bf60a7a603357d2a3c042e77674 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F4")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index ede202bb6231ef248cf71b599f24c487ced35e7a..0f420d5898ba5bde7bc2eb40b4a7421248a5b874 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F5")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 4697f6d1d109f7fb718ce15b33c3b2d94732febf..4437aab1d9ed3c4636fc6c3d352779094c567c7b 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F6")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 94a8383a02c2b7fafe23c3cf520ee8448be15fd9..e1987c7f8b747186ced351717c82cf426d990527 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F7")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index c81227e1d878472f88aad207138330ffca387a77..6ab8a0d2365694b88d45a7da7ea0fc7fb40ac71a 100644 (file)
@@ -24,18 +24,13 @@ import sys
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
 
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F8")
 
-# Create presentations
-myParavis = paravis.myParavis
-
 file = datadir +  "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "\nCreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
index 3b06caacee14f3f7bda4fd61624cffd4aa3c0555..d23f2071c2a229ee1a4b7e0e52c30324c4bf0355 100644 (file)
@@ -24,19 +24,15 @@ import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import StreamLinesOnField, EntityType, \
      reset_view, process_prs_for_test
-import pvserver as paravis
 import pvsimple
 
-
-my_paravis = paravis.myParavis
-
 # Directory for saving snapshots
 picturedir = get_picture_dir("StreamLines/F9")
 
 # Import of the "Bug829_resu_mode.med" file
 file_path = datadir + "Bug829_resu_mode.med"
 
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index 3d7e7337454c65fca4ecc9a85b4af5cb32e0b5c6..ab42d0b3be144f383f1a749c0589f22cc5fb7b9d 100644 (file)
@@ -1,4 +1,3 @@
-
 # Copyright (C) 2010-2015  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 file_path = datadir + "new_case.rmed"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError, "new_case.rmed was not imported!!!"
 
 # 2. Creation of a set of "StreamLines" presentations, based on time stamps of "RESU_DEPL" field
 streamlines = StreamLinesOnField(med_reader, EntityType.NODE, 'RESU_DEPL', 1)
-if streamlines is None: 
+if streamlines is None:
     raise RuntimeError, "Presentation is None!!!"
-
-import time
-time.sleep(10000)
-
index 83d5e1ae789f359499695aa1c94b7a537a0c75d8..e21d4e5b8f1c81832509cc69e1554d14e172574e 100755 (executable)
@@ -25,10 +25,8 @@ import sys
 
 from paravistest import tablesdir, get_picture_dir, pictureext
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-
 # Import table from file
 print 'Import tables_test.xls ....',
 file_path = tablesdir + "tables_test.xls"
@@ -74,5 +72,3 @@ if not picturedir.endswith(os.sep):
 
 file_name = picturedir + "sinus." + pictureext
 pvsimple.WriteImage(file_name, view=xy_view, Magnification=1)
-
-
index f505e322c0a654ad0eb52959ec475bd120244aba..8fdd4fb942ff7f6ea88203e3483a3419f36efa67 100755 (executable)
@@ -25,7 +25,6 @@ import sys
 
 from paravistest import tablesdir, get_picture_dir, pictureext
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
 # Import table from file
@@ -72,6 +71,3 @@ if not picturedir.endswith(os.sep):
 
 file_name = picturedir + "flux_tab." + pictureext
 pvsimple.WriteImage(file_name, view=xy_view, Magnification=1)
-
-
-
index ac5db92efda498de1240560d818d2ddf222b9690..b32cba09dbb84204f02fb5f63bd287d2a06088c7 100755 (executable)
@@ -231,13 +231,12 @@ def TimeStampId(proxy):
     return mesh_name, iterations
 
 
-def Import_Med_Field(paravis, file, field_names, check_errors=0, prs=[]):
+def Import_Med_Field(filename, field_names, check_errors=0, prs=[]):
     """Builds presentations on the given fields of the MED file.
     Originally defined in VISU_TEST/Grids/visu/ImportMedField/begin file.
 
     Arguments:
-      paravis      : PARAVIS instance
-      file_name    : the full path to med file
+      filename     : the full path to med file
       field_names  : the list of field names (for ex: ["pression","temperature","vitesse"])
       prs          : [[0,1,...], [], []]; empty list (sublist(s)) is ignored
                      0-VISU.TGAUSSPOINTS
@@ -255,15 +254,16 @@ def Import_Med_Field(paravis, file, field_names, check_errors=0, prs=[]):
 
     nb_errors = 0
 
-    print "File: ", file
+    print "File: ", filename
 
     # check the file accessibility
-    if not os.access(file, os.F_OK):
-        msg = "File " + file + " does not exist!!!"
+    if not os.access(filename, os.F_OK):
+        msg = "File " + filename + " does not exist!!!"
         raise RuntimeError, msg
 
     # import MED file
-    paravis.ImportFile(file)
+    import pvsimple
+    pvsimple.OpenDataFile(filename)
     proxy = presentations.pvs.GetActiveSource()
     if proxy is None:
         raise RuntimeError, "ERROR!!! Can't import file!!!"
@@ -321,7 +321,7 @@ def Import_Med_Field(paravis, file, field_names, check_errors=0, prs=[]):
                     print "Presentation(s) creation...OK"
 
     if nb_errors > 0 and check_errors:
-        raise RuntimeError, "There are some errors were occured!!! For more information see ERRORs above..."
+        raise RuntimeError, "Errors occured!!! For more information see ERRORs above..."
     else:
         return nb_errors
 
index 67f62359e093b004f61e0acb752d743e9c05dd18..de6216f58b1377bc38f45dea0f8ee2587d434e6f 100644 (file)
@@ -83,7 +83,7 @@ def run_test(command):
 
   # :TRICKY: Special case of returncode=127
   # When using paraview in SALOME environment, the following error
-  # systematicallty appears when exiting paraview (it's also true when using
+  # systematically appears when exiting paraview (it's also true when using
   # PARAVIS and exiting SALOME):
   # Inconsistency detected by ld.so: dl-close.c: 738: _dl_close: Assertion `map->l_init_called' failed!
   # For PARAVIS tests purpose, paraview functionalities are accessed in each
@@ -92,8 +92,12 @@ def run_test(command):
   # status is considered as "failed".
   # The tricky part here is to discard such return codes, waiting for a fix
   # maybe in paraview...
+  print "#############################"
+  print res
+  print _err
+  print "#############################"
   if res == 127 and _err.startswith("Inconsistency detected by ld.so: dl-close.c"):
-      print "    ** THE FOLLOWING MESSAGE IS NOT CONSIDERED WHEN ANALYZING TEST SUCCESSFULNESS **"
+      print "    ** THE FOLLOWING MESSAGE IS DISCARDED WHEN ANALYZING TEST SUCCESSFULNESS **"
       print _err
       print "    ** end of message **"
       res = 0;
index 06e2f8048a50f928ba83088bf1b76becc5063210..13b49a163ea0106e437555955af4c81fb8cbbf13 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A0") 
+picturedir = get_picture_dir("Vectors/A0")
 
 file = datadir + "fra.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index e0600d9dff0853aad9ad66b92e3b5972b66ea839..1b26f5420d50a5adb83ce73e1e19bfb382f8cf9f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A1") 
+picturedir = get_picture_dir("Vectors/A1")
 
 file = datadir + "hexa_28320_ELEM.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index fd6813879247bb7c682f7ad0a69f3cffcf0f6376..8a6dbcbcac9d57108f39cfd3a4548aba357e0e5e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A2") 
+picturedir = get_picture_dir("Vectors/A2")
 
 file = datadir + "pointe.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 08ebc9cb2bd144d1b501b21f5676364afd7cce71..1ad524c2f1703448fee5a1672e194ed2a53e5aff 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A3") 
+picturedir = get_picture_dir("Vectors/A3")
 
 file = datadir + "Fields_group3D.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index dd4e58b0b47cd6715e0fa7ee192c1378b9b792e7..3981b4d9ba248bcb74a305882697fddb495133ee 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A4") 
+picturedir = get_picture_dir("Vectors/A4")
 
 file = datadir + "Hexa8.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index b65077e9a82423bcdcf75ba9c32b4402a818f232..7afec8dd2d9fe8fce8a302d8b47639a0ad013c2e 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A5") 
+picturedir = get_picture_dir("Vectors/A5")
 
 file = datadir + "Penta6.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 9e19716688f1367ec589050dd331875e3226e1b6..2ecb018d480b89f85fb41ec2f5babbc58742dc29 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A6") 
+picturedir = get_picture_dir("Vectors/A6")
 
 file = datadir + "clo.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index fb9d0fba350ab3c8dbe39e7ff92753b251ccb802..6ed43437ee774bf63a37ef4e9c7cdce4e4c7fee3 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A7") 
+picturedir = get_picture_dir("Vectors/A7")
 
 file = datadir + "Tetra4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 9ca995d515b7d519498cd9e9d64f33f151abd2d0..02a028d8c7b2ff2339427c5caa9f4c79373e609d 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A8") 
+picturedir = get_picture_dir("Vectors/A8")
 
 file = datadir + "Tria3.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 98e01aa5647caedc3b7fbad0238511ff5691ce05..897b0ceb09129a7e49cc5b4b4253583b56892626 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/A9") 
+picturedir = get_picture_dir("Vectors/A9")
 
 file = datadir + "Quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index a2563aa6c7cb269b5e658871bf15fd5ec63d9fee..56a7046ede5100ea7c831a74c413fc7adc6829d2 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B0") 
+picturedir = get_picture_dir("Vectors/B0")
 
 file = datadir + "carre_en_quad4_seg2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index cb886400dd1864e23b2d7850b88ac9021914e56e..29d94253ab1f46cfc549489b7dcca3aafd0ae16d 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B1") 
+picturedir = get_picture_dir("Vectors/B1")
 
 file = datadir + "carre_en_quad4_seg2_fields.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index acdea75b64f005ff613a3d979b4e50e5ba01d6f5..2c65e543a156760f40120f820d08153233886465 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/B2") 
+picturedir = get_picture_dir("Vectors/B2")
 
 file = datadir + "cube_hexa8_quad4.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 90d5310e3603be4733a60f4ec1bbcc493f4c62da..678a73f0a35503f384dad29682a6fbb97b3dcc0d 100644 (file)
@@ -23,18 +23,15 @@ import sys
 
 from paravistest import datadir
 from presentations import VectorsOnField, EntityType
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 #====================Stage1: Importing MED file====================
 
 print "**** Stage1: Importing MED file"
 
 print 'Import "ResOK_0000.med"...............',
 medFile = datadir + "ResOK_0000.med"
-OpenDataFile(medFile)
+pvsimple.OpenDataFile(medFile)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -64,20 +61,20 @@ print "Default subtype   : ", glyph.GlyphType.GlyphType
 print "Default GlyphPos  : ", glyph.GlyphType.Center
 
 print "Changing value of line width"
-width = -10
-vectors.LineWidth = width
-print "Negative value -10 : ", vectors.LineWidth
-pvsimple.Render()
+#width = -10
+#vectors.LineWidth = width
+#print "Negative value -10 : ", vectors.LineWidth
+#pvsimple.Render()
 
 width = 10
 vectors.LineWidth = width
 print "Positive value  10 : ", vectors.LineWidth
 pvsimple.Render()
 
-width = 0
-vectors.LineWidth = width
-print "Zero value       0 : ", vectors.LineWidth
-pvsimple.Render()
+width = 0
+vectors.LineWidth = width
+print "Zero value       0 : ", vectors.LineWidth
+pvsimple.Render()
 
 width = 2
 vectors.LineWidth = width
index f02d399f9c7a01025e4e9e6d31db9942bc1d6b2b..8dd15ce226b595fb8b096d1dfea162d0185523c3 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E0") 
+picturedir = get_picture_dir("Vectors/E0")
 
 file = datadir + "test_55_solid_concentr_dom.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 5a9928fd20fb7fd942579010b1052376f03a75d2..d34e6cf2ec05978df9287a1aac5d02824a60ccc3 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E1") 
+picturedir = get_picture_dir("Vectors/E1")
 
 file = datadir + "H_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index e55b98e1da3be7822342df4e90f5aaf3c27e852a..92563e36ccc85aef41243a81f458718d1179c185 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E2") 
+picturedir = get_picture_dir("Vectors/E2")
 
 file = datadir + "cas2_2d_couplage_chess_castem.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 305d902d98415b88c00486f5d80833f89e52328f..479e87a33a53b57fae8c7024fbc1d4b17e35aac1 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E3") 
+picturedir = get_picture_dir("Vectors/E3")
 
 file = datadir + "hydro_d10.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 6b788fa403234e280b00a6f579cf8e75e0795e8b..a41ede124225e2852e5bf40fb036cbce0c204599 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E4") 
+picturedir = get_picture_dir("Vectors/E4")
 
 file = datadir + "champc.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 26f26ad5bd48134bc92e13e46ba81ef97cc8d7a6..bee207826a9260a7fb8d409040bf5749ecd0d1e4 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E5") 
+picturedir = get_picture_dir("Vectors/E5")
 
 file = datadir + "hydro_sea_alv.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index b9e02d8eb8387e7f0d03bff3dfe5749a5e9e3cb6..b461117a210b86e13918b5080844f7b3271e56fc 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E6") 
+picturedir = get_picture_dir("Vectors/E6")
 
 file = datadir + "toto.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index e072d357d61c226b55a9461d04d6420d60c1cfca..8ffee4586ad0e5582313efa8f58421583ef204f4 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E7") 
+picturedir = get_picture_dir("Vectors/E7")
 
 file = datadir + "couplex_alain.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 5eca8e33ef05aeb63546461132a86e5223001a2e..e25f86d0637b764eb2b28dfc6cc8f6267690f7ad 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E8") 
+picturedir = get_picture_dir("Vectors/E8")
 
 file = datadir + "KCOUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index a104dfd039b41660273674ea832a6a1c5a6bef0c..c5f4ef995b7af2a801beba94006b64d7d58c1828 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/E9") 
+picturedir = get_picture_dir("Vectors/E9")
 
 file = datadir + "test_hydro.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 46205546f7f0fc9c4f9f5ee2158591fa86c45422..690b54fdf1fe4a1d66076d9d9f947fbc376c4825 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F1") 
+picturedir = get_picture_dir("Vectors/F1")
 
 file = datadir + "ml.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 1d09e38dfbd8b33da1b72282aae40b6f690cf1ee..08ad9db4760e1c2801d040f5c5b9c9023e510b29 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F2") 
+picturedir = get_picture_dir("Vectors/F2")
 
 file = datadir + "T_COUPLEX1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index e27a8aec71aec5f729d8b2b967cfc413528b0db9..8b80b3a4afd4d3cf239d04f5e3823229c897148f 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F3") 
+picturedir = get_picture_dir("Vectors/F3")
 
 file = datadir + "test_hydro_darcy4_out.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 8296a95a7db5526c367a5fb273d88ba097548c4f..28657baa1ccec25e99d5884b54d21ab94687a5d7 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F4") 
+picturedir = get_picture_dir("Vectors/F4")
 
 file = datadir + "UO2_250ans.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 884b25ae067148ea98ffe15f55da252f5185b95d..c5023a7ea808f5c904f2d0cf42ee036f495d754b 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F5") 
+picturedir = get_picture_dir("Vectors/F5")
 
 file = datadir + "maill.1.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 2bdec5baaa3a26e75543524f2289a88b7b1a52f3..6e523dbe904fb98faafde0f3372e601bd0be86ce 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F6") 
+picturedir = get_picture_dir("Vectors/F6")
 
 file = datadir + "maill.0.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 729bed496ec57bb2e7128d8552888c3f1a4e5c26..1a121a0e7786967359f391416310c7933197e57e 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F7") 
+picturedir = get_picture_dir("Vectors/F7")
 
 file = datadir + "occ4050.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index f6f4ad27f37bcf2b4bc0149f31721d1add28d9b3..fa2e85d54344f11eb3ff3773200cf155798a9bca 100755 (executable)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
-
-# Create presentations 
-myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir("Vectors/F8") 
+picturedir = get_picture_dir("Vectors/F8")
 
 file = datadir + "maill.2.med"
 print " --------------------------------- "
 print "file ", file
 print " --------------------------------- "
 print "CreatePrsForFile..."
-CreatePrsForFile(myParavis, file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
+CreatePrsForFile(file, [PrsTypeEnum.VECTORS], picturedir, pictureext)
index 29f4156a9a6ef467d2c6cc85675b749b3ec2cf42..f386506c322c6ee6f6650ac04ee9396a3d840166 100644 (file)
 # This case corresponds to: /visu/Vectors/F9 case
 # Create Vectors for field of the the given MED file for 10 timestamps%
 
+import os
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
-import pvserver as paravis
-from pvsimple import GetActiveSource, GetRenderView, Render
-from presentations import VectorsOnField, hide_all,EntityType,PrsTypeEnum,reset_view,process_prs_for_test
-
-# Create presentations
-myParavis = paravis.myParavis
+from pvsimple import GetActiveSource, GetRenderView, Render, OpenDataFile, UpdatePipeline
+from presentations import VectorsOnField, hide_all,EntityType,PrsTypeEnum,reset_view,process_prs_for_test, get_time
 
 picturedir = get_picture_dir("Vectors/F9")
 
@@ -41,10 +38,13 @@ print " --------------------------------- "
 result = OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
-       raise RuntimeError, "Error: can't import file."
+        raise RuntimeError, "Error: can't import file."
 else: print "OK"
 # Get view
 aView = GetRenderView()
+time_value = get_time(aProxy, 0)
+aView.ViewTime = time_value
+UpdatePipeline(time=time_value, proxy=aProxy)
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
@@ -58,24 +58,23 @@ for colored in [False,True]:
         colored_str = "_colored"
     for i in range(1,11):
         hide_all(aView, True)
-        aPrs = VectorsOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored) 
+        aPrs = VectorsOnField(aProxy, aFieldEntity, aFieldName, i, is_colored=colored)
         if aPrs is None:
             raise RuntimeError, "Presentation is None!!!"
         # display only current deformed shape
         #display_only(aView,aPrs)
-        aPrs.Visibility =1     
+        aPrs.Visibility =1
         reset_view(aView)
         Render(aView)
         # Add path separator to the end of picture path if necessery
         if not picturedir.endswith(os.sep):
                 picturedir += os.sep
         prs_type = PrsTypeEnum.VECTORS
-                
+
         # Get name of presentation type
-        prs_name = PrsTypeEnum.get_name(prs_type)    
+        prs_name = PrsTypeEnum.get_name(prs_type)
         f_prs_type = prs_name.replace(' ', '').upper()
         # Construct image file name
         pic_name = picturedir + aFieldName+colored_str + "_" + str(i) + "_" + f_prs_type + "." + pictureext
         # Show and record the presentation
         process_prs_for_test(aPrs, aView, pic_name)
index 038cb4ff90845060e030b78bf3abe21a9e046c4e..bd8dbbd26006dd7574e6ff37655bd34cb5bc2ceb 100644 (file)
@@ -23,17 +23,14 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 import presentations
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A0")
 
 # 1. Import MED file
 print 'Importing "hydro_sea_alv.med"...',
 file_path = datadir + "hydro_sea_alv.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -58,11 +55,3 @@ for ts in xrange(1, len(timestamps) + 1):
     presentations.process_prs_for_test(cutlines, pvsimple.GetRenderView(), pic_path)
     nb_lines = len(cutlines.Input.SliceOffsetValues)
     print "Number of lines = ", nb_lines
-    
-    
-
-    
-
-
-
-
index cd5cefe3dfb6a715a556d128b538159116e80f8a..7d565926e091304a898ef233bf8aab7fdf259d7f 100644 (file)
@@ -24,22 +24,19 @@ import os
 import time
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A1")
 
 med_file_path = datadir + "fra1.med"
 pic_path = os.path.join(picturedir, "A1." + pictureext)
 
 # 1. Import MED file
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 # 2. Create mesh
-mesh = MeshOnEntity(med_reader, "LE_VOLUME", EntityType.CELL)
+mesh = MeshOnEntity(med_reader, "LE VOLUME", EntityType.CELL)
 mesh.Representation = 'Surface With Edges'
 
 # 3. Display mesh and make snapshot
index ebe682bf1a56ce527d78acec4b7a7b966eb633ac..eb64828a70ec6b195940277b65d00398053ee207 100644 (file)
@@ -24,20 +24,17 @@ import os
 import time
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A2")
 
-med_file_path = datadir + "carre_MIXTE_0000_v3.0.6.med"
+med_file_path = datadir + "carre_MIXTE_0000.med"
 pic_path = os.path.join(picturedir, "A2." + pictureext)
 
 print "BREAKPOINT_1"
 # 1. Import MED file
 print 'Importing "carre_MIXTE_0000.med"...',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index f290936745d1931a6247e4d1a218e793aa83a228..beb66b06d39863403b5e1505e1d7bca39b85e26d 100644 (file)
 import time
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 med_file_path = datadir + "hexa_28320_ELEM.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 # 2. Create vectors
@@ -39,13 +36,13 @@ display_only(vectors)
 reset_view()
 time.sleep(1)
 
-vectors.Input.SetScaleFactor = 0.005
+#vectors.Input.SetScaleFactor = 0.005
 display_only(vectors)
 reset_view()
 time.sleep(1)
 
 
-vectors.Input.SetScaleFactor = 0.002
-display_only(vectors)
-reset_view()
-time.sleep(1)
+#vectors.Input.SetScaleFactor = 0.002
+#display_only(vectors)
+#reset_view()
+#time.sleep(1)
index 70f7626db55bf2313e0600f2d2b6fe524e596929..1b7b625460e949d1f201b5fc6dd6e449e149b722 100644 (file)
 import time
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 med_file_path = datadir + "carre_ELEM_0000.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 # 2. Create vectors
index 9dd57f5e1b268a41f96ab412e0bc8b2e495661be..fca0fa4f23e592d03ab86dc275cc73143622fe13 100644 (file)
@@ -24,9 +24,9 @@ import salome
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
+salome.salome_init()
 myStudy = salome.myStudy
 myStudyManager = salome.myStudyManager
 
@@ -39,9 +39,10 @@ if tmp_dir == None:
 save_file = tmp_dir + "/TimeStamps_save.hdf"
 print "Save to file ", save_file
 
-paravis.OpenDataFile(data_file)
+pvsimple.OpenDataFile(data_file)
 myStudyManager.SaveAs(save_file, myStudy, 0)
 myStudyManager.Close(myStudy)
+
 openedStudy = myStudyManager.Open(data_file)
 myStudyManager.Close(openedStudy)
 
index f13eadf6f1ea0dcdf298f80a27338391f5e725c0..69acc3f22f8c90b778277eff619deac37d7152a3 100644 (file)
@@ -23,18 +23,15 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A6")
 
 med_file_path = datadir + "fra.med"
 
 # 1. Import MED file
 print 'Importing "fra.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -51,10 +48,8 @@ for mesh_name in [get_field_short_name(name) for name in mesh_names]:
         raise RuntimeError, "Error"
 
     mesh.Representation = 'Wireframe'
-        
+
     pic_path = os.path.join(picturedir, mesh_name + "_Cell." + pictureext)
     pic_path = re.sub("\s+","_", pic_path)
     print "Save picture ", pic_path
     process_prs_for_test(mesh, pvsimple.GetRenderView(), pic_path)
-    
-
index b027a46fee4a582cbc43df7cf7c38e1e6e6f8531..6338692fae6e0ee96ed7123bb9d5988b1ecc5d7b 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import CreatePrsForFile, PrsTypeEnum
-import pvserver as paravis
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A7")
 
 med_file_path = datadir + "hexa_28320_ELEM.med"
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.MESH], picturedir, pictureext)
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
-CreatePrsForFile(my_paravis, med_file_path, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.MESH], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.SCALARMAP], picturedir, pictureext)
+CreatePrsForFile(med_file_path, [PrsTypeEnum.CUTPLANES], picturedir, pictureext)
index 10b4b3d2e620b80d9ca7b8a85174b7514f49d616..6f6e761d10372f6b33c9b916b2c55f7e960820ae 100644 (file)
@@ -24,20 +24,16 @@ import sys
 
 from paravistest import datadir, get_picture_dir, pictureext
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A9")
 
 # 1. Step1: Import MED file
 print "**** Step1: Importing MED file"
 
 print 'Import "sortie_med_volumique.med"...............',
-file_path = datadir + "sortie_med_volumique_v3.0.6.med"
-OpenDataFile(file_path)
+file_path = datadir + "sortie_med_volumique.med"
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -52,8 +48,8 @@ if view is None:
 else:
     reset_view(view)
     print "OK"
-    
-mesh_name = 'Volume_fluide'
+
+mesh_name = 'Volume fluide'
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE
 
index 7ddeb6f8779084498e50d259a7c27c24c66386c6..4179421cff6ccd6cca1117e16113838f420cdc22 100644 (file)
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/B1")
 
 # 1. Import MED file
 med_file_path = datadir + "resultat.01.med"
 
 print 'Importing "resultat.01.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -54,15 +51,15 @@ for group in groups:
     shor_name = group.split('/')[-1]
     print "group: ", shor_name
     prs = MeshOnGroup(med_reader, extGrp, group)
-    
-    if prs is None : 
+
+    if prs is None :
         print "FAILED!!! Created presentation is None!!!"
         errors += 1
     else :
         print "Presentation was created!"
         pic_path = os.path.join(picturedir, shor_name.strip().split("_")[0]+str(i)+"."+pictureext)
-        process_prs_for_test(prs, pvsimple.GetRenderView(), pic_path)                    
-        
+        process_prs_for_test(prs, pvsimple.GetRenderView(), pic_path)
+
 
 # check errors
 if errors == 1:
index ced563c294aa66f40a57d95bd0e558fc8dfc6e10..2ef4bcb7033dfe46b09aebe88454464b17a0f116 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 med_file_path = datadir + "MEDfileForStructuredMesh.med"
 
 print 'Importing "MEDfileForStructuredMesh.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
index 949ddeef888ce51ae41e67796391354b673a9d49..1c3fdff9bab9b79e6ecdd73fbff6fe2bf3adaa0c 100644 (file)
@@ -23,18 +23,15 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/C4")
 
 # 1. Import MED file
 med_file_path = datadir + "forma01f.resu.med"
 
 print 'Importing "forma01f.resu.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -52,19 +49,19 @@ view = pvsimple.GetRenderView()
 
 for scale in scales:
     for i in range(len(fields)):
-       print "Field: ", fields[i], "; Scale: ", scale
+        print "Field: ", fields[i], "; Scale: ", scale
         presentation = None
         try:
             presentation = DeformedShapeAndScalarMapOnField(med_reader, entities[i], fields[i], 1)
         except ValueError as e:
             print "Error:", e
-        
-       if presentation is not None:
-           if scale is not None:
-               presentation.Input.ScaleFactor = scale
+
+        if presentation is not None:
+            if scale is not None:
+                presentation.Input.ScaleFactor = scale
             # save picture
             pic_path = os.path.join(picturedir, "MAIL_" + entities_str[i] + "_" + fields[i] + "_" + str(scale) + "_." + pictureext)
             process_prs_for_test(presentation, view, pic_path)
         else:
-           print "FAILED! Created presentation is None!!!"
+            print "FAILED! Created presentation is None!!!"
 
index 47cdac8b8b462b9bf6c6e2b03369938fa97b0a88..2d98084ee5ae2c6b3be6afd81c29e9eab05bdaa0 100644 (file)
@@ -24,11 +24,8 @@ import os
 import time
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 medPath = datadir
 
 class DisplayManager:
@@ -43,11 +40,11 @@ class DisplayManager:
             self.meshName = None
             self.myData   = None
             self.myMesh   = None
-           self.myEntity = None
-             
+            self.myEntity = None
+
     def loadData(self, medFile, meshName=None, myEntity=EntityType.NODE):
         self.medFile  = medFile
-        OpenDataFile(medFile)
+        pvsimple.OpenDataFile(medFile)
         self.myData   = pvsimple.GetActiveSource()
         self.myEntity = myEntity
         if meshName is not None:
@@ -55,7 +52,7 @@ class DisplayManager:
 
     def getData(self):
         return self.myData
-        
+
     def checkData(self):
         if ( self.myData is None or self.myMesh is None ):
             return False
@@ -70,7 +67,7 @@ class DisplayManager:
 
     def DisplayMap(self, aView, aMap, title, aDelay=0):
         if aMap is None:
-            print "Null scalar map is created"        
+            print "Null scalar map is created"
         display_only(aMap, aView)
         reset_view(aView)
         time.sleep(aDelay)
@@ -84,14 +81,14 @@ class DisplayManager:
         if not self.checkData(): return
         aMap = DeformedShapeOnField(self.myData, self.myEntity, fieldName, iteration)
         if aMap is not None:
-            aMap.ColorArrayName = fieldName
+            aMap.ColorArrayName = ("CELLS", fieldName)
         self.DisplayMap(aView, aMap, title, delay)
 
     def Vectors(self, aView, fieldName, iteration, title , delay=0):
         if not self.checkData(): return
         aMap = VectorsOnField(self.myData, self.myEntity, fieldName, iteration)
         if aMap is not None:
-            aMap.ColorArrayName = fieldName
+            aMap.ColorArrayName = ("CELLS", fieldName)
         self.DisplayMap(aView, aMap, title, delay)
 
     def IsoSurfaces(self, aView, fieldName, iteration, title , delay=0):
@@ -104,10 +101,10 @@ class DisplayManager:
         path = None
         if aPath is not "":
             print "Define save path"
-           path = aPath
-            
+            path = aPath
+
         scene = pvsimple.AnimateReader(theObj, aView, path)
-       
+
         print "Start Animation"
 
         scene.Duration = theDuration
@@ -132,7 +129,7 @@ class DisplayManager:
         # >>> Create curve
         myView = CreateXYPlotView()
         myCurve = Show(table, view = myView)
-    
+
 def createView():
     aView=pvsimple.GetRenderView()
     return aView
index 88b1facbb5e3015f7c4a04dd4de5600fa9a62eff..4a40d64862eca585b4a581992a59d556bf2ca044 100644 (file)
@@ -23,18 +23,15 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/C6")
 
 # 1. Import MED file
 med_file_path = datadir + "relachement_brutal_sans_dudg_gauss.med"
 
 print 'Importing "relachement_brutal_sans_dudg_gauss.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -54,5 +51,3 @@ for timestamp in timestamp_list:
         raise RuntimeError,  "Created presentation is None!!!"
     pic_path = os.path.join(picturedir, "GaussPoints_" + mesh_name + "_" + field_name + "_" + str(timestamp) + "." + pictureext)
     process_prs_for_test(gauss_points, pvsimple.GetRenderView(), pic_path)
-
-
index d9c8723585516c2ceb64f269c21995045ca11da2..b0b9f786891c585edaaaf7804cc204072e60a1b2 100644 (file)
@@ -23,18 +23,15 @@ import os
 import sys
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/C7")
 
 # 1. Import MED file
 med_file_path = datadir + "Bug583-Quadratique.resu.med"
 
 print 'Importing "Bug583-Quadratique.resu.med"....',
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -55,7 +52,7 @@ for field in field_names:
     print "Creation of the GaussPoints presentation.. Field: ", field, "; Iteration: 1"
     presentation = GaussPointsOnField1(med_reader, EntityType.CELL, field, 1)
     if presentation is None:
-       print "ERROR!!! GaussPoints presentation wasn't created for the ", field, " field!!!"
+        print "ERROR!!! GaussPoints presentation wasn't created for the ", field, " field!!!"
         error += 1
     else:
         pic_path = os.path.join(picturedir, "GaussPoints_" + mesh_name + "_" + field + "." + pictureext)
index 5c65251f4c281eead7a490f4301e1d4e10bbd488..ff58206728c60eff1df4ac9cd30c649e607c4d31 100644 (file)
@@ -21,7 +21,6 @@
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
 # 1. Import table from file
@@ -59,8 +58,8 @@ for table in available_tables:
     xy_rep.AttributeType = 'Row Data'
     xy_rep.UseIndexForXAxis = 0
     xy_rep.SeriesVisibility = ['0', '0']
-    
+
     pvsimple.Render()
 
 
-    
+
index 85d108cde66f229d753876beeeda2f90a953b521..2a8ece06659d37c10c14336fc843c8df1a49de87 100644 (file)
 
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 med_file_path = datadir + "TimeStamps.med"
 
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -37,7 +34,7 @@ if med_reader is None:
 
 # 2. Creation of presentations
 mesh_on_cells = MeshOnEntity(med_reader, "dom", EntityType.CELL)
-if mesh_on_cells is None : 
+if mesh_on_cells is None :
     raise RuntimeError, "Mesh presentation is None!!!"
 
 view = pvsimple.GetRenderView()
@@ -47,7 +44,7 @@ reset_view(view)
 mesh_on_cells.Representation = 'Wireframe'
 
 scalar_map = ScalarMapOnField(med_reader, EntityType.NODE, "vitesse", 1)
-if scalar_map is None : 
+if scalar_map is None :
     raise RuntimeError, "ScalarMap presentation is None!!!"
 
 scalar_map.Visibility = 1
index 86722cd21481f913df360f97d14e782206e4adf0..962cc122e32f4c7f731fdaa332db4eae89306341 100644 (file)
@@ -24,18 +24,16 @@ import os
 import time
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/D0")
 
 # Aux method
 def get_group_full_name(source, group_name):
     result_name = group_name
-    
-    full_names = source.Groups.Available
+
+    #full_names = source.Groups.Available
+    full_names = get_group_names(source)
     for name in full_names:
         if name.endswith(group_name):
             result_name = name
@@ -46,7 +44,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"
 
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -62,13 +60,13 @@ groups = ['TU_3D_G1', 'TU_3D_D1']
 
 for group_name in groups:
     extract_group = pvsimple.ExtractGroup(med_reader)
-    extract_group.Groups = [get_group_full_name(med_reader, group_name)]
+    #extract_group.Groups = [get_group_full_name(med_reader, group_name)]
+    extract_group.AllGroups = [get_group_full_name(extract_group, group_name)]
     extract_group.UpdatePipeline()
-    
+
     scalar_map = ScalarMapOnField(extract_group, EntityType.CELL, field_name, 1)
     if scalar_map is None :
         raise RuntimeError, "ScalarMap presentation on '" + group_name + "' group is None!!!"
 
     pic_path = os.path.join(picturedir, "npal18711_" + group_name + "." + pictureext)
     process_prs_for_test(scalar_map, view, pic_path)
-    
index ced55496c9dbbec6ed200fe2870076265dbfd92a..e781c12b404c78d5be93e89ccd170baf7fdf818b 100644 (file)
@@ -23,16 +23,13 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 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"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader1 = pvsimple.GetActiveSource()
 if med_reader1 is None:
     raise RuntimeError, "Bug829_resu_mode.med was not imported!!!"
@@ -43,7 +40,7 @@ sizes=[]
 
 for i in range(1,11):
     presentation = DeformedShapeAndScalarMapOnField(med_reader1, EntityType.NODE, "MODES___DEPL____________________", i)
-    if presentation is None : 
+    if presentation is None :
         raise RuntimeError, "Presentation is None!!!"
 
     pic_path = os.path.join(picturedir, "npal19999_1_time_stamp_" + str(i) + "." + pictureext)
@@ -55,12 +52,12 @@ if abs(max(sizes)-min(sizes)) > 0.01*max(sizes):
     print "WARNING!!! Pictures have different sizes!!!"
     errors += 1
     for i in range(1,11):
-       picture_name = "npal19999_1_time_stamp_" + str(i) + "." + pictureext
-       print "Picture: " + picture_name + "; size: " + str(sizes[i-1]) 
+        picture_name = "npal19999_1_time_stamp_" + str(i) + "." + pictureext
+        print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
     raise RuntimeError
 
 # 3. Import of the "Bug829_resu_mode.med" file at second time
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader2 = pvsimple.GetActiveSource()
 if med_reader2 is None:
     raise RuntimeError, "Bug829_resu_mode.med was not imported second time!!!"
@@ -71,7 +68,7 @@ sizes=[]
 
 for i in range(1,11):
     presentation = DeformedShapeAndScalarMapOnField(med_reader2, EntityType.NODE, "MODES___DEPL____________________", 11-i)
-    if presentation is None : 
+    if presentation is None :
         raise RuntimeError, "Presentation is None!!!"
 
     pic_path = os.path.join(picturedir, "npal19999_2_time_stamp_" + str(i) + "." + pictureext)
@@ -83,6 +80,6 @@ if abs(max(sizes)-min(sizes)) > 0.01*max(sizes):
     print "WARNING!!! Pictures have different sizes!!!"
     errors += 1
     for i in range(1,11):
-       picture_name = "npal19999_2_time_stamp_" + str(i) + "." + pictureext
-       print "Picture: " + picture_name + "; size: " + str(sizes[i-1]) 
+        picture_name = "npal19999_2_time_stamp_" + str(i) + "." + pictureext
+        print "Picture: " + picture_name + "; size: " + str(sizes[i-1])
     raise RuntimeError
index 743efbc17ffc6e24d81b9f420aeef197c44d9e15..420164ae0cbb5b18ac057524ca91a8d486bf45b5 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import of the "LinearStaticsSTA9.resu.med" file
 med_file_path = datadir + "LinearStaticsSTA9.resu.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError, "LinearStaticsSTA9.resu.med was not imported!!!"
@@ -37,15 +34,15 @@ view = pvsimple.GetRenderView()
 
 # Creation of colored "DeformedShape" presentations, based on time stamps of "RESU_DEPL" field
 presentation = DeformedShapeOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1, is_colored=True)
-if presentation is None : 
+if presentation is None :
     raise RuntimeError, "DeformedShapeOnField Presentation is None!!!"
 
 display_only(presentation, view)
 reset_view(view)
-  
+
 # Creation of colored "Vectors" presentations, based on time stamps of "RESU_DEPL" field
 presentation = VectorsOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1, is_colored=True)
-if presentation is None : 
+if presentation is None :
     raise RuntimeError, "Vectors Presentation is None!!!"
 
 display_only(presentation, view)
@@ -53,7 +50,7 @@ reset_view(view)
 
 # Creation of colored "DeformedShapeAndScalarMap" presentations, based on time stamps of "RESU_DEPL" field
 presentation = DeformedShapeAndScalarMapOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1)
-if presentation is None : 
+if presentation is None :
     raise RuntimeError, "DeformedShapeAndScalarMap Presentation is None!!!"
 
 display_only(presentation, view)
@@ -61,7 +58,7 @@ reset_view(view)
 
 # Creation of colored "CutPlanes" presentations, based on time stamps of "RESU_DEPL" field
 presentation = CutPlanesOnField(med_reader, EntityType.NODE, 'RESU____DEPL____________________', 1)
-if presentation is None : 
+if presentation is None :
     raise RuntimeError, "CutPlanes Presentation is None!!!"
 
 display_only(presentation, view)
index deefe47dbaf0489e3057dd625baf79c391e89399..6323f01306e30e06a99ded61aa2914af39d68c3a 100644 (file)
@@ -19,7 +19,6 @@
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
 # Import table from file
index cb1ca266bc9d2c97999651c6ee5af463deb1f4a8..af847697af98eb9e4c448395c213b0a44c267489 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 med_file_path = datadir + "fra.med"
 
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 # 2. Creation of CutSegment presentations, based on time stamps of "VITESSE" field
@@ -38,7 +35,7 @@ point2 = [0.4, 0.05, 1.0]
 cut_segment1 = CutSegmentOnField(med_reader, EntityType.NODE, "VITESSE", 1,
                                 point1, point2)
 if cut_segment1 == None:
-   raise RuntimeError, "ERROR!!! The first CutSegment presentation is not built!" 
+   raise RuntimeError, "ERROR!!! The first CutSegment presentation is not built!"
 
 # 3. Creation of CutSegment presentations, based on time stamps of "TAUX_DE_VIDE" field
 point1 = [0, 0, 1]
index 0694bcb833b091da5e71444ccc30efbb4f57d358..ec8d5990a65088f33564d4620dbf7aa8fe9b0b7e 100644 (file)
@@ -23,16 +23,13 @@ import sys
 import os
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. MED file import
 print 'Importing "Fields_group3D.med"........',
 
 med_file_path = datadir + "Fields_group3D.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     print "FAILED"
@@ -55,8 +52,9 @@ if scalarmap is None:
 else:
     print "OK"
 
-med_reader.Groups = ['GROUP/mailles_MED/OnCell/box_1']
+extract_group = pvsimple.ExtractGroup(med_reader)
+extract_group.UpdatePipelineInformation()
+extract_group.AllGroups = ['GRP_box_1']
 
 display_only(scalarmap, view)
 reset_view(view)
-
index 8a9a9e6152a4b65238e96ed7cc8997e45ac816ee..873b163bc5c886af8b6916dc21cda2edc6f3eeec 100644 (file)
 import time
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
 sleep_delay = 1
-my_paravis = paravis.myParavis
 
 # 1. MED file import
 print 'Import "ResOK_0000.med"...............',
 med_file_path = datadir + "ResOK_0000.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError, "ResOK_0000.med was not imported!!!"
index 780d038b6d2d5818207d1e32dbb6df55259dc737..8087706f512b42faa5a6045fce134e12fd67f4f1 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal'}
 
 # 1. TimeStamps.med import
index 79b3773a3a7c1dba7e8ff35081604b9e87861d56..e0ef96d7c0bfe97eb5e5757d12d9792015e705ec 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "NbSurfaces": 444}
 
 # 1. TimeStamps.med import
index 5134644f6a436cf49f0bc878e4cb877621761864..b996b2e54b4133894ae60bc0b375181efab8d782 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal'}
 
 # 1. TimeStamps.med import
index 23d4d3aeec03a62b2bf6929898b4c0e4925e02c2..2e3cfa3ed584bc0f24fa9dc0ec7412a925a5e127 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.333, "ColorArray": "", "ColorComponents": [0.111, 0.222, 0.333]}
 
 # 1. TimeStamps.med import
@@ -49,7 +46,7 @@ deformedshape.LookupTable.NumberOfTableValues = settings["NbColors"]
 deformedshape.LookupTable.UseLogScale = settings["UseLogScale"]
 
 deformedshape.Input.ScaleFactor = settings["Scale"]
-deformedshape.ColorArrayName = ''
+deformedshape.ColorArrayName = (None, '')
 deformedshape.AmbientColor = settings["ColorComponents"]
 
 bar = get_bar()
@@ -161,7 +158,7 @@ if abs(scale - settings["Scale"]) > tolerance:
     errors += 1
 
 # Color array name
-array_name = recreated_deformedshape.ColorArrayName
+array_name = recreated_deformedshape.ColorArrayName[1]
 if array_name != settings["ColorArray"]:
     print "ERROR!!! Color array name of presentation is incorrect: ",  array_name, " instead of ", settings["arrayName"]
     errors += 1
index 2563c7da59ccbb8a3502b2aad1aaf5ed2e919b8d..ce566bb4821fcb19ca6bb5ced80dc92b99e075fc 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 1), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation"}
 
 # 1. TimeStamps.med import
index d78fc020c16bf0e934a310483c77fcbf16755759..4a6583af3875c2c5e9f732c9f87926a872a3c3bb 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "ScaleFactor": 0.25, "NbContours": 4}
 
 # 1. TimeStamps.med import
index 164a7d429ffbb0463447a6c1e8e0826ceb66be78..7a024830d278f37f09efc65f30a5717c8782dd93 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.12929}
 
 # 1. TimeStamps.med import
@@ -165,7 +162,7 @@ if abs(cur_range_min - range_min) > tolerance:
 if abs(cur_range_max - range_max) > tolerance:
     print "ERROR!!! Maximum value of range of presentation is incorrect: ",  cur_range_max, " instead of ", range_max
     errors += 1
-    
+
 # Scale factor
 scale = recreated_prs.Input.ScaleFactor
 if abs(scale - settings["Scale"]) > tolerance:
index b5dd3343bee414a3162a63ceab83e80075609421..65dc0bc92cdd6e1ae8fd16ca47ab4593c3689e73 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # StreamLines settings
 settings = {'name': 'myStreamLines',
             'IntegrationDirection': 'FORWARD',
index 3989a1835eafd41bd3acbd456436d3f015aaf955..32a28fd1fef14a80e04316f422ab1f8462a7e01e 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.333, "ColorArray": "", "ColorComponents": [0.111, 0.222, 0.333],  "LineWidth": 2, "GlyphType": 'Cone', "GlyphPos": [-0.5, 0.0, 0.0]}
 
 # 1. TimeStamps.med import
@@ -49,7 +46,7 @@ vectors.LookupTable.NumberOfTableValues = settings["NbColors"]
 vectors.LookupTable.UseLogScale = settings["UseLogScale"]
 
 vectors.Input.SetScaleFactor = settings["Scale"]
-vectors.ColorArrayName = ''
+vectors.ColorArrayName = (None, '')
 vectors.AmbientColor = settings["ColorComponents"]
 
 vectors.LineWidth = settings["LineWidth"]
@@ -167,7 +164,7 @@ if abs(scale - settings["Scale"]) > tolerance:
     errors += 1
 
 # Color array name
-array_name = recreated_vectors.ColorArrayName
+array_name = recreated_vectors.ColorArrayName[1]
 if array_name != settings["ColorArray"]:
     print "ERROR!!! Color array name of presentation is incorrect: ",  array_name, " instead of ", settings["arrayName"]
     errors += 1
index a29bf81d2f3cb67fe100c04846423feb1ee1e913..e14157f7cdc6011bede4845b1b635da4cd3ac740 100644 (file)
 
 from paravistest import datadir, delete_with_inputs
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Orientation_BasePlane": [Orientation.ZX, 22, 33], "Orientation_CuttingPlanes": [Orientation.YZ, 44, 55], "Displacement": 0.1, "Displacement2": 0.2, "BasePlane_Position": 0.1, "NbLines": 3}
 
 # 1. TimeStamps.med import
index 452447f5430d215b61ef3b5387496de8e8a4e816..3d6062bdcecdda25ffda8ce665c6b8465ac52906 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # 1. TimeStamps.med import
 file_path = datadir + "TimeStamps.med"
 OpenDataFile(file_path)
@@ -43,10 +40,10 @@ med_field = "vitesse"
 for name in prs_names:
     print "Creation of ", name, " presentation..."
     if name == "GaussPoints":
-        prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)  
-       pass
-    else: 
-       prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
+        prs = GaussPointsOnField(med_reader, EntityType.CELL, "pression", 1)
+        pass
+    else:
+        prs = eval(name + "OnField(med_reader, EntityType.NODE, med_field, 1)")
     if prs is None:
         print "ERROR!!! ", name," presentation wasn't created..."
         errors += 1
index 244a937e3df908f7d166b25304b9028180b6887e..328580f037dbdf5f56ed5c40900563e0d4a1f15c 100644 (file)
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # Import table from file
 xls_file = tablesdir + "tables_test.xls"
 table_reader = TableReader(FileName=xls_file)
@@ -58,15 +55,15 @@ count_not=0
 
 for name in tables:
     if name not in available_tables:
-       count_not += 1
-       print "ERROR!!! Table with ", name, " name was not found"
+        count_not += 1
+        print "ERROR!!! Table with ", name, " name was not found"
         errors += 1
     else:
         print "\"" + name + "\" table was found..."
 
 if count_not > 0:
     print "ERROR!!! "+str(count_not)+" table(s) was(were) not found!!!"
-    errors += 1            
+    errors += 1
 if errors > 0:
     raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
 
index 26236cc295f72c87f8897463d9ff519a6b1a6304..5269eff4b05db159f484a8008ee0420df96d7875 100644 (file)
 
 import paravistest
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # 1. Table creation
 title = "My Table"
 errors = 0
@@ -90,6 +87,6 @@ if table.Script != orig_script:
     print "ERROR!!! The script value is incorrect:"
     print table.Script
     errors += 1
-    
+
 if errors > 0:
     raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
index 49c4d8eea7ce7dfb822fdb0c71377241a36264ec..80556bd5de46a58488410f84544740c6f31a9a1d 100644 (file)
 
 import paravistest
 from presentations import *
-import pvserver as paravis
 from pvsimple import *
 
-my_paravis = paravis.myParavis
-
 # 1. Table creation
 title = "My Table"
 errors = 0
@@ -90,6 +87,6 @@ if table.Script != orig_script:
     print "ERROR!!! The script value is incorrect:"
     print table.Script
     errors += 1
-    
+
 if errors > 0:
     raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
index f7ffd88bd5826cc697be9bdb98847bfb8c465f19..610d38c69f515976ec905842d1788752398ae4e5 100644 (file)
@@ -23,33 +23,31 @@ import os
 import sys
 import salome
 
-class SalomeSession(object):
-    def __init__(self):
-        import runSalome
-        import sys
-        sys.argv += ["--show-desktop=1"]
-        sys.argv += ["--splash=0"]
-        sys.argv += ["--modules=MED,VISU,PARAVIS"]
-        clt, d = runSalome.main()
-        port = d['port']
-        self.port = port
-        return
-    pass
+class SalomeSession(object):
+    def __init__(self):
+        import runSalome
+        import sys
+        sys.argv += ["--show-desktop=1"]
+        sys.argv += ["--splash=0"]
+        sys.argv += ["--modules=MED,VISU,PARAVIS"]
+        clt, d = runSalome.main()
+        port = d['port']
+        self.port = port
+        return
+    pass
 
 
 # 1. Opening saved study
 
 # run Salome
-salome_session = SalomeSession()
+#salome_session = SalomeSession()
 salome.salome_init()
+salome.myStudyManager.Close(salome.myStudy)
 
 file_name = os.path.join(os.path.dirname(sys.argv[0]), "test1.hdf")
 opened_study = salome.myStudyManager.Open(file_name)
 salome.myStudy = opened_study
 
-# 2. Load PARAVIS module
-import pvserver as paravis
-
 # 3. Find IsoSurfaces
 from pvsimple import *
 obj = FindSource('IsoSurfaces')
@@ -59,7 +57,7 @@ if obj is None:
 # 4. Remove med reader object and all other sources
 for obj in GetSources().values():
     Delete(obj)
-    
+
 # 5. Check results
 obj = FindSource('ScalarMap')
 if obj is not None:
index eecabd72d0c70c123ea9088e4716817086a8f964..118ec742b02e94b987f3f6210ded6be0da9fb3df 100644 (file)
@@ -23,10 +23,8 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
 picturedir = get_picture_dir("imps/A1")
 
 def set_prs_colored(prs, proxy, entity, field_name, vector_mode, timestamp_nb):
@@ -58,7 +56,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"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 if med_reader is None:
     raise RuntimeError, "Penta6.med was not imported!!!"
index 73fb6a05e79e24dca958d2a61214a56657d163db..2ef8dcd493df0e9f8fcad533ffbdefe2cd4430c3 100644 (file)
 import time
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
 sleep_delay = 2
 
 med_file = "pointe.med"
@@ -36,7 +34,7 @@ timestamp = 1
 # 1. Import MED file
 print 'Import "pointe.med"....................',
 med_file_path = datadir + med_file
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -63,7 +61,7 @@ print "Set Point Sprite representation"
 scalar_map.Representation = 'Point Sprite'
 
 data_range = get_data_range(med_reader, entity,
-                            field_name, 'Magnitude')
+                           field_name, 'Magnitude')
 mult = abs(0.1 / data_range[1])
 scalar_map.RadiusScalarRange = data_range
 scalar_map.RadiusTransferFunctionEnabled = 1
@@ -76,5 +74,4 @@ scalar_map.RadiusIsProportional = 1
 scalar_map.RadiusProportionalFactor = mult
 
 pvsimple.Render()
-
-
+time.sleep(sleep_delay)
index 5ef2b63e1e83bea417dba547c346646149afc157..5e8a0d2863594e7266075f46e0780013571ab959 100644 (file)
 
 from paravistest import datadir, compare_lists
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-error =0
+error = 0
 
 # Import MED file
 file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -49,8 +47,8 @@ if bar.Orientation != 'Vertical':
    print "Error!!! Default Scalar Bar Orientation is wrong - not vertical but ", scalarmap.Orientation
    error = error+1
 
-error = error + compare_lists(bar.Position, [0.87, 0.25])
-error = error + compare_lists(bar.Position2, [0.13, 0.5])
+error = error + compare_lists(bar.Position, [0.85, 0.05])
+error = error + compare_lists(bar.Position2, [0.12, 0.43])
 
 if error > 0:
     raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
index 7ecc10f27b616ec6a361fe4c31e0ef61a85a8ee9..45969bdb526ff288404247f496dab1f80050bea0 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
 error = 0
 
 # Import MED file
 med_file_path = datadir + "fra.med"
-OpenDataFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -37,7 +35,7 @@ if med_reader is None:
     error = error+1
 
 # Create Mesh
-mesh_name = 'LE_VOLUME'
+mesh_name = 'LE VOLUME'
 cell_entity = EntityType.CELL
 mesh = MeshOnEntity(med_reader, mesh_name, cell_entity)
 if mesh is None:
index 1655a72119fec512e6d58ad9a0d9f60fcb617298..9aa6093c62fda5bc13f39675b5ae13893196bd77 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
 error =0
 
 # Import MED file
 file_path = datadir + "Bug891_Box.resu.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -41,10 +39,9 @@ scalarmap = ScalarMapOnField(med_reader, EntityType.NODE, 'RESUMECAEQUI_ELGA_SIG
 if scalarmap is None:
     print "Error!!! ScalarMap is not created"
     error = error+1
-    
+
 scalarmap.Visibility = 1
 reset_view()
 
 if error > 0:
     raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."
-
index 778c7b3c04491bad4617643be7d1e9f5f9746958..1b54e7329fa455ac29f05212f58a71d75182a8a0 100644 (file)
@@ -23,7 +23,6 @@ from time import sleep
 
 from paravistest import tablesdir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
 # Import CSV table
index 99016714fa761924a31a421039b23376c6540813..fe904a0ffff6362e7276d557d9e4e6eae03ac2ed 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # Import MED file
 file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 entity = EntityType.NODE
index 2f3cf7ebfb4214a21b14f613b74fe7e7d84f38d1..b9540995fe63bb3ac97406255f8526a639a901e7 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 print 'Import "ResOK_0000.med"...............',
 
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -38,23 +35,45 @@ if med_reader is None:
 else:
     print "OK"
 
+
+def _extract_all_arrays_of_type(array_type, source):
+    import re
+    #sep = source.GetProperty("Separator").GetData() # "@@][@@"
+    arrays = source.AllArrays
+    result = []
+    for arr in arrays:
+        match = re.search("ComSup[^/]*/(.*)@@\]\[@@(.*)", arr)
+        field_name = match.group(1)
+        arr_typ = match.group(2)
+        if arr_typ == array_type:
+            result += [field_name]
+        pass
+    return result
+#
+
+def _extract_cell_arrays(source):
+    return _extract_all_arrays_of_type("P0", source)
+#
+def _extract_point_arrays(source):
+    return _extract_all_arrays_of_type("P1", source)
+#
+
 # 2. Get some information on the MED file
-fields_on_nodes = med_reader.PointArrays
+#fields_on_nodes = med_reader.PointArrays
+fields_on_nodes = _extract_point_arrays(med_reader)
 print "Field names on NODE: ", fields_on_nodes
 is_ok = len(fields_on_nodes) == 2 and ("temperature" in fields_on_nodes) and ("vitesse" in fields_on_nodes)
 if not is_ok:
     raise RuntimeError,  "=> Error in PointArrays property"
 
-fields_on_cells = med_reader.CellArrays
+#fields_on_cells = med_reader.CellArrays
+fields_on_cells = _extract_cell_arrays(med_reader)
 print "Field names on CELL: ", fields_on_cells
 is_ok = len(fields_on_cells) == 1 and ("pression" in fields_on_cells)
 if not is_ok:
     raise RuntimeError,  "=> Error in CellArrays property"
 
-timestamps = med_reader.TimestepValues.GetData()
+timestamps = med_reader.TimestepValues.GetData()[1:]
 print "timestamps: ", timestamps
 if timestamps != [17.030882013694594]:
     raise RuntimeError,  "=> Wrong TimestepValues property value"
-
-
-
index f7d11dd3c4ee45b57c2c015138eb8c8793bee43b..33da33f57c305bfb6ade3cfda551609110b4be9d 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 # 1. Import MED file
 print "**** Step1: Import MED file"
 
 print 'Import "ResOK_0000.med"...',
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -108,7 +105,7 @@ print "**** Step3: Import another MED file"
 
 print 'Import "Fields_group3D.med"...............',
 file_path = datadir + "Fields_group3D.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader1 = pvsimple.GetActiveSource()
 
 if med_reader1 is None:
index 6ffa0b1e8555fd4ada726399c7b7650fbae7170c..a903d8e808a6f092a56f8f4f1f2c51ec5512a863 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 from math import radians
 
-my_paravis = paravis.myParavis
-
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE
 
@@ -35,7 +32,7 @@ print "**** Step1: Import MED file"
 
 print 'Import "fra.med"....................',
 file_path = datadir + "fra.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -81,7 +78,7 @@ for i in xrange(1,50):
     normal = get_normal_by_orientation(orient, x_angle, radians(y_angle))
     slice_filter.SliceType.Normal = normal
     pvsimple.Render()
-    
+
 print "OK"
 
 print "View Point (FRONT)..................",
@@ -90,7 +87,7 @@ view.CameraPosition = [2.4453961849843453, 0.03425, 0.541]
 pvsimple.Render()
 print "OK"
 
-print "View Point (BACK)...................", 
+print "View Point (BACK)...................",
 view.CameraPosition = [-2.0343961849843457, 0.03425, 0.541]
 pvsimple.Render()
 print "OK"
@@ -112,7 +109,7 @@ view.CameraPosition = [0.2055, -2.2056461849843454, 0.541]
 pvsimple.Render()
 print "OK"
 
-print "View Point (RIGHT) .................", 
+print "View Point (RIGHT) .................",
 view.CameraPosition = [0.2055, 2.2741461849843456, 0.541]
 pvsimple.Render()
 print "OK"
index 508ce38fe5e0796937750f6218990672d1b8816c..9eeb228bc43d03679d00fcce421e2336ec419bf4 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE
 
@@ -34,7 +31,7 @@ print "**** Step1: Import MED file"
 
 print 'Import "Hexa8.med"....................',
 file_path = datadir + "Hexa8.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader1 = pvsimple.GetActiveSource()
 
 if med_reader1 is None:
@@ -42,7 +39,7 @@ if med_reader1 is None:
 else:
     print "OK"
 
-mesh_name1 = 'Maillage_MED_HEXA8'
+mesh_name1 = 'Maillage MED_HEXA8'
 scalar_field = 'scalar field'
 vectoriel_field = 'vectoriel field'
 view = pvsimple.GetRenderView()
@@ -55,7 +52,7 @@ else:
     display_only(scalarmap1, view)
     reset_view(view)
     print "OK"
-    
+
 print "Creating Vectors......................",
 vectors1 = VectorsOnField(med_reader1, cell_entity, vectoriel_field, 1)
 if vectors1 is None:
@@ -99,7 +96,7 @@ print "OK"
 
 print "Editing Vectors.......................",
 glyph = vectors1.Input
-glyph.SetScaleFactor = 2
+glyph.ScaleFactor = 2
 vectors1.LineWidth = 2
 glyph.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
 print "OK"
@@ -116,7 +113,7 @@ hide_all(view)
 print 'Importing file "cube_hexa8_quad4.med".',
 file_path = datadir + "cube_hexa8_quad4.med"
 mesh_name2 = 'CUBE_EN_HEXA8_QUAD4'
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader2 = pvsimple.GetActiveSource()
 
 if med_reader2 is None:
@@ -142,7 +139,7 @@ if vectors1 is None:
     print "FAILED"
 else:
     glyph2 = vectors2.Input
-    glyph2.SetScaleFactor = 0.2
+    glyph2.ScaleFactor = 0.2
     vectors2.LineWidth = 2
     glyph2.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
     print "OK"
@@ -160,14 +157,14 @@ hide_all(view)
 
 print 'Importing file "Penta6.med"...........',
 file_path = datadir + "Penta6.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader3 = pvsimple.GetActiveSource()
 
 if med_reader3 is None:
     print "FAILED"
 else:
     print "OK"
-    
+
 print "Creating Cut Planes...................",
 cutplanes1 = CutPlanesOnField(med_reader3, cell_entity, scalar_field, 1)
 if cutplanes1 is None:
@@ -200,7 +197,7 @@ else:
 
 print "Displaying Vectors (l.w.=2, s.f.=1.5).",
 glyph3 = vectors3.Input
-glyph3.SetScaleFactor = 1.5
+glyph3.ScaleFactor = 1.5
 vectors3.LineWidth = 2
 display_only(vectors3, view)
 print "OK"
@@ -221,7 +218,7 @@ hide_all(view)
 
 print 'Importing "Quad4.med".................',
 file_path = datadir + "Quad4.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader4 = pvsimple.GetActiveSource()
 
 if med_reader4 is None:
@@ -269,7 +266,7 @@ print "OK"
 
 print 'Importing "Tetra4.med"................',
 file_path = datadir + "Tetra4.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader5 = pvsimple.GetActiveSource()
 
 if med_reader5 is None:
@@ -294,7 +291,7 @@ else:
     print "OK"
 
 vectors5.LineWidth = 3
-vectors5.Input.SetScaleFactor = 2
+vectors5.Input.ScaleFactor = 2
 
 print "Displaying Scalar Map and Vectoes.....",
 hide_all(view)
@@ -305,7 +302,7 @@ print "OK"
 
 print 'Importing "Tria3.med".................',
 file_path = datadir + "Tria3.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader6 = pvsimple.GetActiveSource()
 
 if med_reader6 is None:
@@ -353,7 +350,7 @@ else:
     glyph = vectors6.Input
     glyph.GlyphType.Center = [0.5, 0.0, 0.0] # TAIL position
     vectors6.LineWidth = 2
-    glyph.SetScaleFactor = 1
+    glyph.ScaleFactor = 1
     display_only(vectors6, view)
     print "OK"
 
index c87d30aeff821cb482ac15eb71d7d7d2aacf0aff..ad2426fecb093c14165ae5532e7db5ee8a84423c 100644 (file)
 
 from paravistest import datadir
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE
 
@@ -34,7 +31,7 @@ print "**** Step1: Import MED file"
 
 print 'Import "ResOK_0000.med"...............',
 file_path = datadir + "ResOK_0000.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -107,4 +104,3 @@ print "Mesh Node color in RGB....(", color[0], ",", color[1], ",", color[2], ")"
 pvsimple.Render()
 
 ## Note: no special property for edge color in PARAVIS; skip link color changing ( SetLinkColor()/GetLinkColor() methods )
-
index fa7f816b6547e2f068185b14debe18bcfe2a0cbf..2380c3fefaf3d23b42a74de65e4063bc844aafd1 100644 (file)
 
 from paravistest import datadir, compare_lists
 from presentations import *
-import pvserver as paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
 error=0
 
 # 1. Import MED file
 file_path = datadir + "TimeStamps.med"
-OpenDataFile(file_path)
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None: