Skip to content
Snippets Groups Projects
Commit 748f4213 authored by Anna Mareike Kostelecky's avatar Anna Mareike Kostelecky
Browse files

Merge branch 'fix/extractlinedata_script_for_pvpython_version_5-11' into 'master'

[bin][postprocessing] add pvpython version check for 5.11

See merge request !3355
parents 6be6607a 172735e8
No related branches found
No related tags found
1 merge request!3355[bin][postprocessing] add pvpython version check for 5.11
Checking pipeline status
...@@ -105,13 +105,21 @@ for curFile in args["files"]: ...@@ -105,13 +105,21 @@ for curFile in args["files"]:
pvPythonVersion = GetParaViewVersion() pvPythonVersion = GetParaViewVersion()
# apply and configure PlotOverLine filter # apply and configure PlotOverLine filter
if pvPythonVersion >= 5.9: if pvPythonVersion >= 5.11:
plotOverLine = PlotOverLine()
plotOverLine.Resolution = args["resolution"]
plotOverLine.Point1 = args["point1"]
plotOverLine.Point2 = args["point2"]
elif pvPythonVersion >= 5.9:
plotOverLine = PlotOverLine(Source="Line") plotOverLine = PlotOverLine(Source="Line")
plotOverLine.Source.Resolution = args["resolution"]
plotOverLine.Source.Point1 = args["point1"]
plotOverLine.Source.Point2 = args["point2"]
else: else:
plotOverLine = PlotOverLine(Source="High Resolution Line Source") plotOverLine = PlotOverLine(Source="High Resolution Line Source")
plotOverLine.Source.Resolution = args["resolution"] plotOverLine.Source.Resolution = args["resolution"]
plotOverLine.Source.Point1 = args["point1"] plotOverLine.Source.Point1 = args["point1"]
plotOverLine.Source.Point2 = args["point2"] plotOverLine.Source.Point2 = args["point2"]
# write output to csv writer # write output to csv writer
writer = CreateWriter(csvFileName, plotOverLine) writer = CreateWriter(csvFileName, plotOverLine)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment