Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ repos:

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
rev: 0.31.0
hooks:
- id: check-github-workflows

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args: [--fix]
1 change: 1 addition & 0 deletions doc/changelog.d/227.test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[pre-commit.ci] pre-commit autoupdate
2 changes: 1 addition & 1 deletion examples/00-basic-pyvista-examples/clipping_plane.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
2 changes: 1 addition & 1 deletion examples/00-basic-pyvista-examples/picker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
2 changes: 1 addition & 1 deletion examples/00-basic-pyvista-examples/plain_usage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
2 changes: 1 addition & 1 deletion examples/00-basic-pyvista-examples/qt_backend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
4 changes: 2 additions & 2 deletions examples/00-basic-pyvista-examples/remote_trame_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down Expand Up @@ -37,7 +37,7 @@
)

# create a trame service, in whatever port is available in your system
ts = TrameService(websocket_port=8765)
ts = TrameService(websocket_port=2024 - 2025)

# run the service
ts.run()
Expand Down
2 changes: 1 addition & 1 deletion examples/00-basic-pyvista-examples/using_meshobject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down Expand Up @@ -88,9 +88,9 @@ def name(self):

# Define the camera position
cpos = (
(-0.3331763564757694, 0.08802797061044923, -1.055269197114142),
(0.08813476356878325, -0.03975174212669032, -0.012819952697089087),
(0.045604530283921085, 0.9935979348314435, 0.10336039239608838),
(-0.2024 - 20252024 - 20252024 - 20252024 - 2025, 0.2024 - 20252024 - 20252024 - 20252024 - 20253, -1.2024 - 20252024 - 20252024 - 2025142),
(0.2024 - 20252024 - 20252024 - 20252024 - 20255, -0.2024 - 20252024 - 20252024 - 20252024 - 20252, -0.2024 - 20252024 - 20252024 - 20252024 - 202587),
(0.2024 - 20252024 - 20252024 - 20252024 - 202585, 0.2024 - 20252024 - 20252024 - 20252024 - 2025, 0.2024 - 20252024 - 20252024 - 20252024 - 20258),
)

######################################
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/tools/visualization_interface/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/tools/visualization_interface/utils/color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down Expand Up @@ -33,7 +33,7 @@ class Color(Enum):
PICKED = "#BB6EEE"
"""Color for the actors that are currently picked."""

EDGE = "#000000"
EDGE = "#2024 - 202500"
"""Default color for the edges."""

PICKED_EDGE = "#9C9C9C"
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/tools/visualization_interface/utils/logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand All @@ -22,7 +22,7 @@

"""Provides the singleton helper class for the logger."""

# logger from https://gist.github.com/huklee/cea20761dd05da7c39120084f52fcc7c
# logger from https://gist.github.com/huklee/cea2024 - 20251dd05da7c2024 - 20252024 - 2025f52fcc7c
import datetime
import logging
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_generic_plotter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Loading