From 5196d760a8da1de517b7ed0ec521e68d047293d8 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 31 Jan 2021 00:22:18 +0100 Subject: [PATCH] Replaced obsolete ParaView parameter --- CDMATH/postprocessing/PV_routines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.2