From: michael Date: Sat, 30 Jan 2021 23:22:18 +0000 (+0100) Subject: Replaced obsolete ParaView parameter X-Git-Tag: V9_7_0~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5196d760a8da1de517b7ed0ec521e68d047293d8;p=tools%2Fsolverlab.git Replaced obsolete ParaView parameter --- diff --git a/CDMATH/postprocessing/PV_routines.py b/CDMATH/postprocessing/PV_routines.py index 2891699..944a374 100755 --- a/CDMATH/postprocessing/PV_routines.py +++ b/CDMATH/postprocessing/PV_routines.py @@ -16,7 +16,7 @@ def Extract_PV_data_over_line_to_txt_file(inputFileName, outputFileName, PlotOverLine1.Source.Point2 = point2 PlotOverLine1.Source.Resolution = resolution writer = pvs.CreateWriter(outputFileName, PlotOverLine1) - writer.FieldAssociation = "Points" # or "Cells" + writer.FieldAssociation = "Point Data" # or "Cell Data" writer.UpdatePipeline() def Extract_PV_data_over_line_to_numpyArray(inputFileName, point1, point2, resolution): @@ -54,7 +54,7 @@ def Slice_PV_data_to_txt_file(inputFileName, CellCenters1 = pvs.CellCenters() writer = pvs.CreateWriter(outputFileName, CellCenters1) writer.Precision=resolution - writer.FieldAssociation = "Points" # or "Cells" + writer.FieldAssociation = "Point Data" # or "Cell Data" writer.UpdatePipeline() def Slice_PV_field_data_to_numpyArray(field,