Dear ParaViewers,

I have written and tested the following script, which I hope is self-explanatory. It doesn't work though (print cells_ gives "None") and I can't see what I missed. I'm thankful for any suggestions.

#!/usr/bin/pvpython

#setup paraview connection
from paraview.simple import *

def my_range(start, end, step):
    while start <= end:
        yield start
        start += step

def LoadMultipleFiles(FilePrefix, Low, High):
    for i in my_range(Low,High+1,100):
reader = XMLMultiBlockDataReader(FileName='/path-to-files/' + FilePrefix + str(i) + '.vtm')

cells_ = LoadMultipleFiles('Cells_', 0, 1000)
print cells_

# create a new 'Integrate Variables'
#integrateVariables1 = IntegrateVariables(Input=cells_)
# create a new 'Plot Selection Over Time'
#plotSelectionOverTime1 = PlotSelectionOverTime(Input=integrateVariables1,Selection=None)
# save data
#SaveData('/path-to-files/output10_areaovertime.csv', proxy=plotSelectionOverTime1, Precision=5,UseScientificNotation=0,WriteAllTimeSteps=0)






_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to