Salome HOME
Merge branch 'V7_dev'
[modules/paravis.git] / test / VisuPrs / SWIG_scripts / C6.py
index 68623df504d845b24e4cd33ccfb80e0d85389a4c..5dea829be89309ee26e218b8b0c4fbadb44f7a17 100644 (file)
@@ -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
 
 from paravistest import tablesdir
 from presentations import *
-import paravis
 import pvsimple
 
-
 # 1. Import tables from file
 file_path = tablesdir + "tables_test.xls"
-table_reader = pvsimple.TableReader(FileName=file_path)
+table_reader = pvsimple.CSVReader(FileName=file_path)
 if table_reader is None:
     print "FAILED to import tables from tables_test.xls file."
 
@@ -39,7 +37,6 @@ if cur_view:
 xy_view = pvsimple.CreateXYPlotView()
 
 # 3. Display curves in the viewer
-table_reader.TableNumber = 1
 xy_rep = pvsimple.Show(table_reader)
 xy_rep.AttributeType = 'Row Data'
 xy_rep.UseIndexForXAxis = 0
@@ -47,4 +44,3 @@ xy_rep.XArrayName = 'toto 1 [s]'
 xy_rep.SeriesVisibility = [xy_rep.XArrayName, '0']
 xy_rep.SeriesVisibility = ['vtkOriginalIndices', '0']
 pvsimple.Render(xy_view)
-