Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 161d197c authored by Quentin Khan's avatar Quentin Khan
Browse files

Remove obsolete ParaView script

parent 79afdbe2
Branches
Tags
No related merge requests found
from paraview import *
reader = GetActiveSource()
# SVReader(DetectNumericColumns = True, FieldDelimiterCharacters = ",", HaveHeaders = True, FileName = "/home/qkhan/work/scalfmm/Build/20k10z.4.csv")
#classRef = CSVReader()
#if not isinstance(reader, classRef.__class__):
# exit(-1)
filename = reader.FileName[0]
print filename
nbZones = int(filename.split('.')[0].split('_')[-1][0:-1])
selection = SelectionQuerySource(FieldType = "ROW", QueryString = "zone >= 0")
extractor = ExtractSelection(Input = reader, Selection = selection)
points = TableToPoints(Input = extractor, XColumn = "x", YColumn = "y", ZColumn = "z")
repr = GetRepresentation()
repr.ColorArrayName = 'zone'
repr.LookupTable = AssignLookupTable(points.PointData['zone'], "Cool to Warm")
Show()
#for i in range(nbZones):
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment