From 7057507f590e5d912642dabe50b49f7431e998d5 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Wed, 22 Jan 2025 10:04:25 -0800 Subject: [PATCH] ParaView: AnyLocation -> Any Location (#150) ParaView 5.10 released three years ago changed AnyLocation to Any Location. --- ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py | 6 +++--- .../Exec/SingleVortex/sensei/render_iso_catalyst_2d.py | 2 +- .../Exec/SingleVortex/sensei/render_iso_catalyst_3d.py | 2 +- .../Exec/SingleVortex/sensei/render_iso_catalyst_2d.py | 2 +- .../Exec/SingleVortex/sensei/render_iso_catalyst_3d.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py b/ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py index 7b98606d..007db338 100644 --- a/ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py +++ b/ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py @@ -146,7 +146,7 @@ def generate_movie_3D(AllPlotFiles): phiLUTColorBar = GetScalarBar(phiLUT, renderView1) # change scalar bar placement - phiLUTColorBar.WindowLocation = 'AnyLocation' + phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0, 0.75] phiLUTColorBar.ScalarBarLength = 0.2 @@ -284,7 +284,7 @@ def generate_movie_2D(AllPlotFiles): phiLUTColorBar = GetScalarBar(phiLUT, renderView1) # change scalar bar placement - phiLUTColorBar.WindowLocation = 'AnyLocation' + phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0, 0.75] phiLUTColorBar.ScalarBarLength = 0.2 @@ -336,4 +336,4 @@ def convert_avi_to_gif(output_movie_base, output_movie): output_movie_base, output_movie = generate_movie_2D(PlotFiles) # convert the avi movie into an animated gif - convert_avi_to_gif(output_movie_base, output_movie) \ No newline at end of file + convert_avi_to_gif(output_movie_base, output_movie) diff --git a/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py b/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py index c6bbdafa..85add2da 100644 --- a/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py +++ b/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py @@ -149,7 +149,7 @@ class Pipeline: # get color legend/bar for phiLUT in view renderView1 phiLUTColorBar = GetScalarBar(phiLUT, renderView1) - phiLUTColorBar.WindowLocation = 'AnyLocation' + phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0.7951562900333077, 0.0840151515151517] phiLUTColorBar.Title = 'phi' phiLUTColorBar.ComponentTitle = '' diff --git a/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py b/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py index 10a45753..a0fa3ade 100644 --- a/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py +++ b/ExampleCodes/SENSEI/Advection_AmrCore/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py @@ -138,7 +138,7 @@ # get color legend/bar for phiLUT in view renderView1 phiLUTColorBar = GetScalarBar(phiLUT, renderView1) phiLUTColorBar.Orientation = 'Horizontal' -phiLUTColorBar.WindowLocation = 'AnyLocation' +phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0.4079687499999999, 0.09624999999999999] phiLUTColorBar.Title = 'phi' phiLUTColorBar.ComponentTitle = '' diff --git a/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py b/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py index dacd30b8..00c8da03 100644 --- a/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py +++ b/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_2d.py @@ -149,7 +149,7 @@ class Pipeline: # get color legend/bar for phiLUT in view renderView1 phiLUTColorBar = GetScalarBar(phiLUT, renderView1) - phiLUTColorBar.WindowLocation = 'AnyLocation' + phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0.7951562900333077, 0.0840151515151517] phiLUTColorBar.Title = 'phi' phiLUTColorBar.ComponentTitle = '' diff --git a/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py b/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py index 255751e9..707da72d 100644 --- a/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py +++ b/ExampleCodes/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py @@ -138,7 +138,7 @@ # get color legend/bar for phiLUT in view renderView1 phiLUTColorBar = GetScalarBar(phiLUT, renderView1) phiLUTColorBar.Orientation = 'Horizontal' -phiLUTColorBar.WindowLocation = 'AnyLocation' +phiLUTColorBar.WindowLocation = 'Any Location' phiLUTColorBar.Position = [0.4079687499999999, 0.09624999999999999] phiLUTColorBar.Title = 'phi' phiLUTColorBar.ComponentTitle = ''