File tree Expand file tree Collapse file tree 10 files changed +22
-12
lines changed Expand file tree Collapse file tree 10 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ jobs:
110110 python -c "from ansys.dpf import core"
111111
112112 - name : " Setup headless display"
113- uses : pyvista/setup-headless-display-action@v2
113+ uses : pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
114114
115115 - name : " Setup Graphviz"
116116 uses : ts-graphviz/setup-graphviz@v2
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ jobs:
120120 run : python -c "from ansys.dpf import core"
121121
122122 - name : " Prepare Testing Environment"
123- uses : ansys/pydpf-actions/prepare_tests@v2.3
123+ uses : ansys/pydpf-actions/prepare_tests@dependencies/bump_pyvista_setup-headless-display-action_to_v4
124124 with :
125125 DEBUG : true
126126
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ jobs:
116116 run : python -c "from ansys.dpf import core"
117117
118118 - name : " Prepare Testing Environment"
119- uses : ansys/pydpf-actions/prepare_tests@v2.3
119+ uses : ansys/pydpf-actions/prepare_tests@dependencies/bump_pyvista_setup-headless-display-action_to_v4
120120 with :
121121 DEBUG : true
122122
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ jobs:
137137 ls
138138
139139 - name : " Prepare Testing Environment"
140- uses : ansys/pydpf-actions/prepare_tests@v2.3
140+ uses : ansys/pydpf-actions/prepare_tests@dependencies/bump_pyvista_setup-headless-display-action_to_v4
141141 with :
142142 DEBUG : true
143143 working-directory : pydpf-post
Original file line number Diff line number Diff line change 9898 run : python -c "from ansys.dpf import core"
9999
100100 - name : " Prepare Testing Environment"
101- uses : ansys/pydpf-actions/prepare_tests@v2.3
101+ uses : ansys/pydpf-actions/prepare_tests@dependencies/bump_pyvista_setup-headless-display-action_to_v4
102102 with :
103103 DEBUG : true
104104
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ jobs:
206206 python -c "from ansys.dpf import core"
207207
208208 - name : " Prepare Testing Environment"
209- uses : ansys/pydpf-actions/prepare_tests@v2.3
209+ uses : ansys/pydpf-actions/prepare_tests@dependencies/bump_pyvista_setup-headless-display-action_to_v4
210210 with :
211211 DEBUG : true
212212
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ plotting = [
5454 " matplotlib>=3.2" ,
5555 # 3D plotting
5656 " pyvista>=0.32.0" ,
57- " vtk!=9.4.0 " ,
57+ " vtk" ,
5858 # Animations
5959 " imageio < 2.28.1" ,
6060 " imageio-ffmpeg" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ imageio==2.37.0
55imageio-ffmpeg==0.6.0
66pypandoc==1.15
77pytest-sphinx==0.6.3
8- pyvista==0.44.2
8+ pyvista==0.45.0
99sphinx==8.2.3
1010sphinx-copybutton==0.5.2
1111sphinx-gallery==0.19.0
@@ -14,4 +14,4 @@ sphinx-notfound-page==1.1.0
1414sphinx-reredirects==0.1.6
1515sphinx_design==0.6.1
1616sphinxcontrib-napoleon==0.7
17- vtk==9.3.1
17+ vtk==9.4.2
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ pytest==8.3.5
88pytest-cov==6.0.0
99pytest-order==1.3.0
1010pytest-rerunfailures==15.0
11- pyvista==0.44.2
12- vtk==9.3.1
11+ pyvista==0.45.0
12+ vtk==9.4.2
Original file line number Diff line number Diff line change @@ -193,7 +193,17 @@ def get_label_at_grid_point(index):
193193 import pyvista as pv
194194
195195 active_scalars = None
196- if parse (pv .__version__ ) >= parse ("0.35.2" ):
196+ if parse (pv .__version__ ) >= parse ("0.42.0" ):
197+ # Get actors of active renderer
198+ actors = list (self ._plotter .actors .values ())
199+ for actor in actors :
200+ mapper = actor .mapper if hasattr (actor , "mapper" ) else None
201+ if mapper :
202+ dataset = mapper .dataset
203+ if type (dataset ) is pv .core .pointset .UnstructuredGrid :
204+ active_scalars = dataset .active_scalars
205+ break
206+ elif parse (pv .__version__ ) >= parse ("0.35.2" ):
197207 for data_set in self ._plotter ._datasets :
198208 if type (data_set ) is pv .core .pointset .UnstructuredGrid :
199209 active_scalars = data_set .active_scalars
You can’t perform that action at this time.
0 commit comments