Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove restraint of vtk<9.1.0 #132

Merged
merged 18 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

I think that, since we are supporting above Python 3.7, shouldn't it be included in this matrix testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is tested in job Build_and_Test. We separated them to be able to trigger them independantly. The CI will however be reworked soon with a testing strategy coherent with what is being put in place for PyDPF-Core.

os: ["windows-latest", "ubuntu-latest"]

steps:
Expand Down
5 changes: 2 additions & 3 deletions ansys/dpf/post/result_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
user will be able to use to compute through the DPF Post API.

This is a fields container wrapper."""

from textwrap import wrap

from ansys.dpf.core import FieldsContainer, Operator
Expand Down Expand Up @@ -296,7 +295,7 @@ def plot_contour(
>>> solution = post.load_solution(examples.download_all_kinds_of_complexity())
>>> stress = solution.stress(location=post.locations.nodal)
>>> sx = stress.xx
>>> pl = sx.plot_contour("time", [1], off_screen=True)
>>> pl = sx.plot_contour("time", [1], off_screen=True) # doctest: +SKIP

The labels can be obtained using:

Expand Down Expand Up @@ -348,7 +347,7 @@ def plot_contour(
else:
# sorts and creates a new fields_container with only the desired labels
fc = self._sort_fields_container_with_labels(option_id, display_option)
# Call Plotter.plot_contour (to change for use of DpfPlotter

pl.plot_contour(fc, **kwargs)

def _plot_chart(self):
Expand Down
5 changes: 3 additions & 2 deletions requirements/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest==7.1.2
coverage==6.4.4
pytest-cov==3.0.0
pytest-rerunfailures==10.2
coverage==6.4.4
pytest==7.1.2
vtk<9.1.0; os_name == 'nt' # needed for OSMesa wheels for VTK on Windows
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.7.*,!=3.10.*",
python_requires=">=3.7.*,<4.0",
extras_require={
"plotting": ["vtk<9.1.0", "pyvista>=0.24.0", "matplotlib"],
"plotting": ["pyvista>=0.24.0", "matplotlib"],
},
install_requires=install_requires,
license='MIT',
Expand Down