File tree 10 files changed +22
-12
lines changed
10 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ jobs:
110
110
python -c "from ansys.dpf import core"
111
111
112
112
- name : " Setup headless display"
113
- uses : pyvista/setup-headless-display-action@v2
113
+ uses : pyvista/setup-headless-display-action@48066dd0b79cf46babc16223a1dce3aa4803ec43 # v4.0
114
114
115
115
- name : " Setup Graphviz"
116
116
uses : ts-graphviz/setup-graphviz@v2
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ jobs:
120
120
run : python -c "from ansys.dpf import core"
121
121
122
122
- 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
124
124
with :
125
125
DEBUG : true
126
126
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ jobs:
116
116
run : python -c "from ansys.dpf import core"
117
117
118
118
- 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
120
120
with :
121
121
DEBUG : true
122
122
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ jobs:
137
137
ls
138
138
139
139
- 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
141
141
with :
142
142
DEBUG : true
143
143
working-directory : pydpf-post
Original file line number Diff line number Diff line change 98
98
run : python -c "from ansys.dpf import core"
99
99
100
100
- 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
102
102
with :
103
103
DEBUG : true
104
104
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ jobs:
206
206
python -c "from ansys.dpf import core"
207
207
208
208
- 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
210
210
with :
211
211
DEBUG : true
212
212
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ plotting = [
54
54
" matplotlib>=3.2" ,
55
55
# 3D plotting
56
56
" pyvista>=0.32.0" ,
57
- " vtk!=9.4.0 " ,
57
+ " vtk" ,
58
58
# Animations
59
59
" imageio < 2.28.1" ,
60
60
" imageio-ffmpeg" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ imageio==2.37.0
5
5
imageio-ffmpeg==0.6.0
6
6
pypandoc==1.15
7
7
pytest-sphinx==0.6.3
8
- pyvista==0.44.2
8
+ pyvista==0.45.0
9
9
sphinx==8.2.3
10
10
sphinx-copybutton==0.5.2
11
11
sphinx-gallery==0.19.0
@@ -14,4 +14,4 @@ sphinx-notfound-page==1.1.0
14
14
sphinx-reredirects==0.1.6
15
15
sphinx_design==0.6.1
16
16
sphinxcontrib-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
8
8
pytest-cov==6.0.0
9
9
pytest-order==1.3.0
10
10
pytest-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):
193
193
import pyvista as pv
194
194
195
195
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" ):
197
207
for data_set in self ._plotter ._datasets :
198
208
if type (data_set ) is pv .core .pointset .UnstructuredGrid :
199
209
active_scalars = data_set .active_scalars
You can’t perform that action at this time.
0 commit comments