X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2FVisuPrs%2Fimps%2FA6.py;h=ecdebe673400c58c76876f375bfe8a9ae5167bfa;hb=937b15c6a43ec7efea52bd90272e2e35d89ab37b;hp=69b430bd1cd95cc8b4082355a0010eb5b25c6ab7;hpb=e32938b374fc9583c1dc3a69a3b3ec23e7c49b3e;p=modules%2Fparavis.git diff --git a/test/VisuPrs/imps/A6.py b/test/VisuPrs/imps/A6.py index 69b430bd..ecdebe67 100644 --- a/test/VisuPrs/imps/A6.py +++ b/test/VisuPrs/imps/A6.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2014 CEA/DEN, EDF R&D +# Copyright (C) 2010-2016 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,15 +21,13 @@ from paravistest import datadir from presentations import * -import paravis import pvsimple -my_paravis = paravis.myParavis error =0 # Import MED file file_path = datadir + "Bug891_Box.resu.med" -my_paravis.ImportFile(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..." -