diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24e44d59f..eb7b01a16 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ansys/pre-commit-hooks - rev: v0.7.2 + rev: v0.8.0 hooks: - id: add-license-headers files: '(src|examples|tests|docker)/.*\.(py)|\.(proto)' @@ -29,12 +29,12 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.2 + rev: 0.37.3 hooks: - id: check-github-workflows - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.16 + rev: v0.15.18 hooks: - id: ruff args: [--fix] diff --git a/doc/changelog.d/545.test.md b/doc/changelog.d/545.test.md new file mode 100644 index 000000000..49457b88d --- /dev/null +++ b/doc/changelog.d/545.test.md @@ -0,0 +1 @@ +[pre-commit.ci] pre-commit autoupdate diff --git a/doc/styles/config/vocabularies/ANSYS/accept.txt b/doc/styles/config/vocabularies/ANSYS/accept.txt index c7c740617..9c3500d33 100644 --- a/doc/styles/config/vocabularies/ANSYS/accept.txt +++ b/doc/styles/config/vocabularies/ANSYS/accept.txt @@ -2,9 +2,9 @@ pytest unhovered (?i)Plotly - +(?!)Synopsys t.M a.P e.B -r.A \ No newline at end of file +r.A diff --git a/examples/00-basic-pyvista-examples/animation.py b/examples/00-basic-pyvista-examples/animation.py index bdfe21df7..01663036b 100644 --- a/examples/00-basic-pyvista-examples/animation.py +++ b/examples/00-basic-pyvista-examples/animation.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/clipping_plane.py b/examples/00-basic-pyvista-examples/clipping_plane.py index 9367252a7..1bbf0f855 100644 --- a/examples/00-basic-pyvista-examples/clipping_plane.py +++ b/examples/00-basic-pyvista-examples/clipping_plane.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/custom_picker.py b/examples/00-basic-pyvista-examples/custom_picker.py index c5027e026..98ad67ddb 100644 --- a/examples/00-basic-pyvista-examples/custom_picker.py +++ b/examples/00-basic-pyvista-examples/custom_picker.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/customization_api.py b/examples/00-basic-pyvista-examples/customization_api.py index 62a7c2e16..2245ac73d 100644 --- a/examples/00-basic-pyvista-examples/customization_api.py +++ b/examples/00-basic-pyvista-examples/customization_api.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/picker.py b/examples/00-basic-pyvista-examples/picker.py index a09cff832..6873f4a13 100644 --- a/examples/00-basic-pyvista-examples/picker.py +++ b/examples/00-basic-pyvista-examples/picker.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/plain_usage.py b/examples/00-basic-pyvista-examples/plain_usage.py index 142cc1349..35ded153b 100644 --- a/examples/00-basic-pyvista-examples/plain_usage.py +++ b/examples/00-basic-pyvista-examples/plain_usage.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/qt_backend.py b/examples/00-basic-pyvista-examples/qt_backend.py index c633bc3e4..b534c6b06 100644 --- a/examples/00-basic-pyvista-examples/qt_backend.py +++ b/examples/00-basic-pyvista-examples/qt_backend.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/remote_trame_view.py b/examples/00-basic-pyvista-examples/remote_trame_view.py index dde330cbc..a146b5d97 100644 --- a/examples/00-basic-pyvista-examples/remote_trame_view.py +++ b/examples/00-basic-pyvista-examples/remote_trame_view.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/tree_menu.py b/examples/00-basic-pyvista-examples/tree_menu.py index d87ce0c7f..33bc4ca83 100644 --- a/examples/00-basic-pyvista-examples/tree_menu.py +++ b/examples/00-basic-pyvista-examples/tree_menu.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/tree_struct.py b/examples/00-basic-pyvista-examples/tree_struct.py index dd5a768be..9c48e9306 100644 --- a/examples/00-basic-pyvista-examples/tree_struct.py +++ b/examples/00-basic-pyvista-examples/tree_struct.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/00-basic-pyvista-examples/using_meshobject.py b/examples/00-basic-pyvista-examples/using_meshobject.py index 0bb1a8a4b..0015c722a 100644 --- a/examples/00-basic-pyvista-examples/using_meshobject.py +++ b/examples/00-basic-pyvista-examples/using_meshobject.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/01-basic-plotly-examples/customization_api.py b/examples/01-basic-plotly-examples/customization_api.py index ea2a059f0..d4ecb58ba 100644 --- a/examples/01-basic-plotly-examples/customization_api.py +++ b/examples/01-basic-plotly-examples/customization_api.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/01-basic-plotly-examples/dash-usage.py b/examples/01-basic-plotly-examples/dash-usage.py index b89bb8092..25c1cd153 100644 --- a/examples/01-basic-plotly-examples/dash-usage.py +++ b/examples/01-basic-plotly-examples/dash-usage.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """ .. _ref_plain_usage_dash: diff --git a/examples/01-basic-plotly-examples/name-filter.py b/examples/01-basic-plotly-examples/name-filter.py index 781536575..f78acc242 100644 --- a/examples/01-basic-plotly-examples/name-filter.py +++ b/examples/01-basic-plotly-examples/name-filter.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """ .. _ref_name_filter_plotly: diff --git a/examples/01-basic-plotly-examples/plain-usage.py b/examples/01-basic-plotly-examples/plain-usage.py index 5e9311544..4a7003842 100644 --- a/examples/01-basic-plotly-examples/plain-usage.py +++ b/examples/01-basic-plotly-examples/plain-usage.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """ .. _ref_plain_usage_plotly: diff --git a/examples/02-basic-usd-examples/plain_usage.py b/examples/02-basic-usd-examples/plain_usage.py index 9c74662ec..049a3e2ec 100644 --- a/examples/02-basic-usd-examples/plain_usage.py +++ b/examples/02-basic-usd-examples/plain_usage.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/examples/99-advanced-pyansys-examples/using_meshobject_with_field_data.py b/examples/99-advanced-pyansys-examples/using_meshobject_with_field_data.py index d1a27d544..d62a9fe64 100644 --- a/examples/99-advanced-pyansys-examples/using_meshobject_with_field_data.py +++ b/examples/99-advanced-pyansys-examples/using_meshobject_with_field_data.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/__init__.py b/src/ansys/tools/visualization_interface/__init__.py index 687a226b3..56db21624 100644 --- a/src/ansys/tools/visualization_interface/__init__.py +++ b/src/ansys/tools/visualization_interface/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Visualization Interface Tool is a Python client library for visualizing the results of Ansys simulations.""" import importlib.metadata as importlib_metadata import os diff --git a/src/ansys/tools/visualization_interface/backends/__init__.py b/src/ansys/tools/visualization_interface/backends/__init__.py index 01fb54dfc..0f7cf6587 100644 --- a/src/ansys/tools/visualization_interface/backends/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides interfaces.""" diff --git a/src/ansys/tools/visualization_interface/backends/_base.py b/src/ansys/tools/visualization_interface/backends/_base.py index de920fe5b..d2e5687ab 100644 --- a/src/ansys/tools/visualization_interface/backends/_base.py +++ b/src/ansys/tools/visualization_interface/backends/_base.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/backends/plotly/__init__.py b/src/ansys/tools/visualization_interface/backends/plotly/__init__.py index 0d5025d51..3b1bb705f 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Plotly initialization.""" diff --git a/src/ansys/tools/visualization_interface/backends/plotly/plotly_dash.py b/src/ansys/tools/visualization_interface/backends/plotly/plotly_dash.py index bf47b7471..72b9077cb 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/plotly_dash.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/plotly_dash.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Module for dash plotly.""" from typing import TYPE_CHECKING, Union diff --git a/src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py b/src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py index 498c0a93b..c3d11748d 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/backends/plotly/widgets/__init__.py b/src/ansys/tools/visualization_interface/backends/plotly/widgets/__init__.py index 37a9b5f6a..e1171e9f0 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/widgets/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/widgets/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Widgets module init.""" \ No newline at end of file diff --git a/src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py b/src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py index 69cd208d8..77b24a91c 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Module for button management.""" from typing import Any, List, Tuple diff --git a/src/ansys/tools/visualization_interface/backends/plotly/widgets/dropdown_manager.py b/src/ansys/tools/visualization_interface/backends/plotly/widgets/dropdown_manager.py index f1eca1495..6534a2d26 100644 --- a/src/ansys/tools/visualization_interface/backends/plotly/widgets/dropdown_manager.py +++ b/src/ansys/tools/visualization_interface/backends/plotly/widgets/dropdown_manager.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Module for dropdown management in Plotly figures.""" from typing import Any, Dict, List diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/__init__.py b/src/ansys/tools/visualization_interface/backends/pyvista/__init__.py index 16916e83f..fb6f107c1 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides interfaces.""" from ansys.tools.visualization_interface.backends.pyvista.animation import ( # noqa: F401 Animation, diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/animation.py b/src/ansys/tools/visualization_interface/backends/pyvista/animation.py index d5452683c..6d642aee0 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/animation.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/animation.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/picker.py b/src/ansys/tools/visualization_interface/backends/pyvista/picker.py index a3bffdf39..9c637de0a 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/picker.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/picker.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py index f77fe5621..6cf769a59 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides a wrapper to aid in plotting.""" from abc import abstractmethod import importlib.util diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py index 8455b0fee..8ebc1deb5 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides plotting for various PyAnsys objects.""" import importlib.util as importlib_util import re diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/trame_local.py b/src/ansys/tools/visualization_interface/backends/pyvista/trame_local.py index 37393b307..3d6de0379 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/trame_local.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/trame_local.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides `trame `_ visualizer interface for visualization.""" try: diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/trame_remote.py b/src/ansys/tools/visualization_interface/backends/pyvista/trame_remote.py index 0a4a0b167..2125cd15f 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/trame_remote.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/trame_remote.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Module for trame websocket client functions.""" # Pickle vulnerabilities are ignored, since we require to use pickle to send and receive data # from the websocket. This is a trusted source, so we can ignore this vulnerability. diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/trame_service.py b/src/ansys/tools/visualization_interface/backends/pyvista/trame_service.py index 00c4e9419..c52142b13 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/trame_service.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/trame_service.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/__init__.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/__init__.py index 0c917418b..9ffbfbd57 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides widgets for the Visualization Interface Tool plotter.""" from ansys.tools.visualization_interface.backends.pyvista.widgets.widget import ( # noqa: F401 PlotterWidget, diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/button.py index 6ef54deb4..cd584553a 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides for implementing buttons in PyAnsys.""" from abc import abstractmethod diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dark_mode.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dark_mode.py index bf5738afd..fcd015491 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dark_mode.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dark_mode.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the dark mode button widget for the PyAnsys plotter.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/displace_arrows.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/displace_arrows.py index c1673abc2..ae1ab0603 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/displace_arrows.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/displace_arrows.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the displacement arrows widget for the PyVista plotter.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dynamic_tree_menu.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dynamic_tree_menu.py index 0075a1a01..bfa03bd63 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dynamic_tree_menu.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/dynamic_tree_menu.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides a dynamic tree menu widget with clickable buttons.""" from typing import Dict, List diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py index 5fd58840a..d7079ed45 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/hide_buttons.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the hide buttons widget for the PyAnsys plotter.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py index e96971723..7e2bc87ce 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/measure.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the measure widget for the PyAnsys plotter.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py index ede8b9438..eb2f90de8 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the measure widget for the PyAnsys plotter.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/next_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/next_button.py index 5b2c5006b..a9be563e6 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/next_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/next_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the next button widget for animation control.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/parallel_projection.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/parallel_projection.py index 1d044021f..5b324cb55 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/parallel_projection.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/parallel_projection.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the parallel projection button widget.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/pick_rotation_center.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/pick_rotation_center.py index 8663a5521..c423ef29e 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/pick_rotation_center.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/pick_rotation_center.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the measure widget for the PyAnsys plotter.""" from pathlib import Path from typing import TYPE_CHECKING diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/play_pause_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/play_pause_button.py index 952df8149..850eb536b 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/play_pause_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/play_pause_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the play/pause button widget for animation control.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/previous_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/previous_button.py index c76b9b11c..594233b87 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/previous_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/previous_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the previous button widget for animation control.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py index 03b9df477..40213b82e 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the ruler widget for the Visualization Interface Tool plotter.""" from pathlib import Path diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/save_gif_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/save_gif_button.py index 9513db8dd..44322b1eb 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/save_gif_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/save_gif_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the save GIF button widget for animation control.""" import datetime diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py index eaf995bc6..a7b6e6a67 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the screenshot widget for the Visualization Interface Tool plotter.""" from pathlib import Path diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/stop_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/stop_button.py index 537ddf9ab..f3c26b3ad 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/stop_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/stop_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the stop button widget for animation control.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/tree_menu_toggle.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/tree_menu_toggle.py index e1dd90e38..0227b66c5 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/tree_menu_toggle.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/tree_menu_toggle.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides a button to toggle the tree menu visibility.""" from ansys.tools.visualization_interface.backends.pyvista.widgets.widget import PlotterWidget diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/view_button.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/view_button.py index 8d95a317c..1edae278d 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/view_button.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/view_button.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the view button widget for changing the camera view.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/widget.py b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/widget.py index 6ec0d7fb4..d732dd343 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/widgets/widget.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/widgets/widget.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the abstract implementation of plotter widgets.""" from abc import ABC, abstractmethod diff --git a/src/ansys/tools/visualization_interface/backends/usd/__init__.py b/src/ansys/tools/visualization_interface/backends/usd/__init__.py index b6dbcfdd0..e54e388e1 100644 --- a/src/ansys/tools/visualization_interface/backends/usd/__init__.py +++ b/src/ansys/tools/visualization_interface/backends/usd/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """USD backend initialization.""" diff --git a/src/ansys/tools/visualization_interface/backends/usd/usd_interface.py b/src/ansys/tools/visualization_interface/backends/usd/usd_interface.py index 8267f1d59..bfc47c556 100644 --- a/src/ansys/tools/visualization_interface/backends/usd/usd_interface.py +++ b/src/ansys/tools/visualization_interface/backends/usd/usd_interface.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/plotter.py b/src/ansys/tools/visualization_interface/plotter.py index fad69198e..7cb9eff34 100644 --- a/src/ansys/tools/visualization_interface/plotter.py +++ b/src/ansys/tools/visualization_interface/plotter.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/types/__init__.py b/src/ansys/tools/visualization_interface/types/__init__.py index 79b5222e4..4c4812981 100644 --- a/src/ansys/tools/visualization_interface/types/__init__.py +++ b/src/ansys/tools/visualization_interface/types/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides custom types.""" diff --git a/src/ansys/tools/visualization_interface/types/edge_plot.py b/src/ansys/tools/visualization_interface/types/edge_plot.py index 53c1dd74a..b35e1d300 100644 --- a/src/ansys/tools/visualization_interface/types/edge_plot.py +++ b/src/ansys/tools/visualization_interface/types/edge_plot.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the edge type for plotting.""" diff --git a/src/ansys/tools/visualization_interface/types/mesh_object_plot.py b/src/ansys/tools/visualization_interface/types/mesh_object_plot.py index 9764b3500..510ac8a43 100644 --- a/src/ansys/tools/visualization_interface/types/mesh_object_plot.py +++ b/src/ansys/tools/visualization_interface/types/mesh_object_plot.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the ``MeshObjectPlot`` class.""" diff --git a/src/ansys/tools/visualization_interface/utils/__init__.py b/src/ansys/tools/visualization_interface/utils/__init__.py index f1fccc7b5..171c09fd4 100644 --- a/src/ansys/tools/visualization_interface/utils/__init__.py +++ b/src/ansys/tools/visualization_interface/utils/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,4 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the Utils package.""" diff --git a/src/ansys/tools/visualization_interface/utils/_kwargs_manager.py b/src/ansys/tools/visualization_interface/utils/_kwargs_manager.py index 48e94fd2d..748de4c83 100644 --- a/src/ansys/tools/visualization_interface/utils/_kwargs_manager.py +++ b/src/ansys/tools/visualization_interface/utils/_kwargs_manager.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Utilities for filtering and extracting keyword arguments.""" import inspect from typing import Any, Callable, Dict, List, Optional diff --git a/src/ansys/tools/visualization_interface/utils/clip_plane.py b/src/ansys/tools/visualization_interface/utils/clip_plane.py index 3477bed56..b9e65e46b 100644 --- a/src/ansys/tools/visualization_interface/utils/clip_plane.py +++ b/src/ansys/tools/visualization_interface/utils/clip_plane.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the ``ClipPlane`` class.""" from typing import Tuple diff --git a/src/ansys/tools/visualization_interface/utils/color.py b/src/ansys/tools/visualization_interface/utils/color.py index a7a5089f3..8726ebcb3 100644 --- a/src/ansys/tools/visualization_interface/utils/color.py +++ b/src/ansys/tools/visualization_interface/utils/color.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides an enum with the color to use for the plotter actors.""" from enum import Enum diff --git a/src/ansys/tools/visualization_interface/utils/logger.py b/src/ansys/tools/visualization_interface/utils/logger.py index 64389f958..c615aed31 100644 --- a/src/ansys/tools/visualization_interface/utils/logger.py +++ b/src/ansys/tools/visualization_interface/utils/logger.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/src/ansys/tools/visualization_interface/utils/plotting_options.py b/src/ansys/tools/visualization_interface/utils/plotting_options.py index cb5c52d97..b266e1564 100644 --- a/src/ansys/tools/visualization_interface/utils/plotting_options.py +++ b/src/ansys/tools/visualization_interface/utils/plotting_options.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Provides the ``PlottingOptions`` dataclass for framework-specific plotting kwargs.""" from dataclasses import dataclass, field, fields diff --git a/src/ansys/tools/visualization_interface/utils/vtkhdf_converter.py b/src/ansys/tools/visualization_interface/utils/vtkhdf_converter.py index 8757a3307..76f36c831 100644 --- a/src/ansys/tools/visualization_interface/utils/vtkhdf_converter.py +++ b/src/ansys/tools/visualization_interface/utils/vtkhdf_converter.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/tests/conftest.py b/tests/conftest.py index a07d65d9c..032d22f80 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Conftest file for unit tests.""" import os from pathlib import Path diff --git a/tests/test_animation.py b/tests/test_animation.py index da02d1657..f162f639f 100644 --- a/tests/test_animation.py +++ b/tests/test_animation.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/tests/test_customization_api.py b/tests/test_customization_api.py index 879d34ebf..84135778d 100644 --- a/tests/test_customization_api.py +++ b/tests/test_customization_api.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Test module for the customization API methods.""" import pyvista as pv diff --git a/tests/test_generic_plotter.py b/tests/test_generic_plotter.py index 095f55899..840b47e1e 100644 --- a/tests/test_generic_plotter.py +++ b/tests/test_generic_plotter.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Test module for the generic plotter.""" import os from pathlib import Path diff --git a/tests/test_interactables.py b/tests/test_interactables.py index e835dce6a..010c0b47d 100644 --- a/tests/test_interactables.py +++ b/tests/test_interactables.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Test module for interactables in the picker.""" from pathlib import Path diff --git a/tests/test_meshobject.py b/tests/test_meshobject.py index 9d245acf4..95d1dc0ea 100644 --- a/tests/test_meshobject.py +++ b/tests/test_meshobject.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Test module for the generic plotter.""" import os diff --git a/tests/test_plotly_backend.py b/tests/test_plotly_backend.py index b2820c542..b1742bb86 100644 --- a/tests/test_plotly_backend.py +++ b/tests/test_plotly_backend.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Test module for plotly backend.""" import numpy as np from plotly.graph_objects import Mesh3d, Scatter3d diff --git a/tests/test_plotting_options.py b/tests/test_plotting_options.py index daaadb619..65081c5c6 100644 --- a/tests/test_plotting_options.py +++ b/tests/test_plotting_options.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Tests for the ``PlottingOptions`` dataclass.""" from ansys.tools.visualization_interface.utils.clip_plane import ClipPlane diff --git a/tests/test_tree_visibility.py b/tests/test_tree_visibility.py index 8f92e04db..56dbb26db 100644 --- a/tests/test_tree_visibility.py +++ b/tests/test_tree_visibility.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # diff --git a/tests/test_usd_interface.py b/tests/test_usd_interface.py index 17680ae44..fd9b169b1 100644 --- a/tests/test_usd_interface.py +++ b/tests/test_usd_interface.py @@ -1,4 +1,4 @@ -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # # @@ -19,6 +19,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. + """Tests for the USD backend interface.""" import sys diff --git a/tests/test_vtkhdf_converter.py b/tests/test_vtkhdf_converter.py index 1a33f4825..b73877d82 100644 --- a/tests/test_vtkhdf_converter.py +++ b/tests/test_vtkhdf_converter.py @@ -1,6 +1,4 @@ -#!/usr/bin/env python3 - -# Copyright (C) 2024 - 2026 ANSYS, Inc. and/or its affiliates. +# Copyright (C) 2024 - 2026 Synopsys, Inc. and ANSYS, Inc. All rights reserved. # SPDX-License-Identifier: MIT # #