ansys-pyensight-core 0.9.15__tar.gz → 0.9.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ansys-pyensight-core might be problematic. Click here for more details.
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/PKG-INFO +2 -3
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/pyproject.toml +3 -4
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/dockerlauncher.py +1 -1
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/omniverse.py +15 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/readers.py +4 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/LICENSE +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/README.rst +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/__init__.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/common.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/deep_pixel_view.html +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/dvs.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/enscontext.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/enshell_grpc.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/ensight_grpc.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/ensobj.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/launch_ensight.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/launcher.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/libuserd.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/listobj.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/locallauncher.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/py.typed +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/renderable.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/session.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/sgeo_poll.html +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/__init__.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/adr.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/dsg_server.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/export.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/omniverse_cli.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/omniverse_dsg_server.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/omniverse_glb_server.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/parts.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/query.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/resources/Materials/000_sky.exr +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/support.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/variables.py +0 -0
- {ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ansys-pyensight-core
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.17
|
|
4
4
|
Summary: A python wrapper for Ansys EnSight
|
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
6
|
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
@@ -26,7 +26,6 @@ Requires-Dist: pypng>=0.0.20
|
|
|
26
26
|
Requires-Dist: psutil>=5.9.2
|
|
27
27
|
Requires-Dist: usd-core==24.8
|
|
28
28
|
Requires-Dist: pygltflib>=1.16.2
|
|
29
|
-
Requires-Dist: grpcio<=1.67.1
|
|
30
29
|
Requires-Dist: build>=0.10.0 ; extra == "dev"
|
|
31
30
|
Requires-Dist: bump2version>=1.0.1 ; extra == "dev"
|
|
32
31
|
Requires-Dist: ipdb>=0.9.4 ; extra == "dev"
|
|
@@ -55,7 +54,7 @@ Requires-Dist: urllib3==2.3.0 ; extra == "tests"
|
|
|
55
54
|
Requires-Dist: requests>=2.28.2 ; extra == "tests"
|
|
56
55
|
Requires-Dist: docker>=6.1.0 ; extra == "tests"
|
|
57
56
|
Requires-Dist: pytest-xdist==3.6.1 ; extra == "tests"
|
|
58
|
-
Requires-Dist: pytest-rerunfailures
|
|
57
|
+
Requires-Dist: pytest-rerunfailures>=14,<16 ; extra == "tests"
|
|
59
58
|
Project-URL: Changelog, https://github.com/ansys/pyensight/blob/main/CHANGELOG.rst
|
|
60
59
|
Project-URL: Documentation, https://ensight.docs.pyansys.com/
|
|
61
60
|
Project-URL: Homepage, https://github.com/ansys/pyensight
|
|
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "ansys-pyensight-core"
|
|
9
|
-
version = "0.9.
|
|
9
|
+
version = "0.9.17"
|
|
10
10
|
description = "A python wrapper for Ansys EnSight"
|
|
11
11
|
readme = "README.rst"
|
|
12
12
|
requires-python = ">=3.10,<3.14"
|
|
@@ -35,8 +35,7 @@ dependencies = [
|
|
|
35
35
|
"pypng>=0.0.20",
|
|
36
36
|
"psutil>=5.9.2",
|
|
37
37
|
"usd-core==24.8",
|
|
38
|
-
"pygltflib>=1.16.2"
|
|
39
|
-
"grpcio<=1.67.1"
|
|
38
|
+
"pygltflib>=1.16.2"
|
|
40
39
|
]
|
|
41
40
|
|
|
42
41
|
[project.optional-dependencies]
|
|
@@ -56,7 +55,7 @@ tests = [
|
|
|
56
55
|
"requests>=2.28.2",
|
|
57
56
|
"docker>=6.1.0",
|
|
58
57
|
"pytest-xdist==3.6.1",
|
|
59
|
-
"pytest-rerunfailures
|
|
58
|
+
"pytest-rerunfailures>=14,<16",
|
|
60
59
|
]
|
|
61
60
|
doc = [
|
|
62
61
|
"Sphinx==8.1.3",
|
|
@@ -402,7 +402,7 @@ class DockerLauncher(Launcher):
|
|
|
402
402
|
cmd += f" --ensight-ws-port {ws_port}"
|
|
403
403
|
cmd += f" --ensight-session-directory {self._session_directory}"
|
|
404
404
|
cmd += f" --ensight-secret-key {self._secret_key}"
|
|
405
|
-
cmd += "--main-show-gui 'False'"
|
|
405
|
+
cmd += " --main-show-gui 'False'"
|
|
406
406
|
logging.debug(f"Starting WebUI: {cmd}\n")
|
|
407
407
|
ret = self._enshell.start_other(cmd, extra_env=container_env_str)
|
|
408
408
|
if ret[0] != 0: # pragma: no cover
|
|
@@ -274,8 +274,23 @@ class Omniverse:
|
|
|
274
274
|
if platform.system() == "Windows":
|
|
275
275
|
self._interpreter += ".bat"
|
|
276
276
|
return
|
|
277
|
+
# Check if the python interpreter is kit itself
|
|
278
|
+
is_omni = False
|
|
279
|
+
try:
|
|
280
|
+
import omni # noqa: F401
|
|
281
|
+
|
|
282
|
+
is_omni = "kit" in os.path.basename(sys.executable)
|
|
283
|
+
except ModuleNotFoundError:
|
|
284
|
+
pass
|
|
277
285
|
# Using the python interpreter running this code
|
|
278
286
|
self._interpreter = sys.executable
|
|
287
|
+
if is_omni:
|
|
288
|
+
kit_path = os.path.dirname(sys.executable)
|
|
289
|
+
self._interpreter = os.path.join(kit_path, "python")
|
|
290
|
+
if platform.system() == "Windows":
|
|
291
|
+
self._interpreter += ".bat"
|
|
292
|
+
else:
|
|
293
|
+
self._interpreter += ".sh"
|
|
279
294
|
|
|
280
295
|
# in the future, these will be part of the pyensight wheel
|
|
281
296
|
# dependencies, but for now we include this check.
|
|
@@ -68,6 +68,7 @@ class DVS:
|
|
|
68
68
|
if monitor_new_timesteps:
|
|
69
69
|
cmd += f'ensight.solution_time.monitor_for_new_steps("{monitor_new_timesteps}")\n'
|
|
70
70
|
cmd += 'ensight.part.elt_representation("3D_feature_2D_full")\n'
|
|
71
|
+
cmd += 'ensight.data.format("DVS")\n'
|
|
71
72
|
cmd += 'err = ensight.data.replace("notexisting.dvs")\n'
|
|
72
73
|
return cmd
|
|
73
74
|
|
|
@@ -96,6 +97,7 @@ class DVS:
|
|
|
96
97
|
cmd += f"{indent}dvsfile.write(f'SERVER_SECURITY_SECRET={secret_key}\\n')\n"
|
|
97
98
|
cmd += f'ensight.solution_time.monitor_for_new_steps("{monitor_new_timesteps}")\n'
|
|
98
99
|
cmd += 'ensight.part.elt_representation("3D_feature_2D_full")\n'
|
|
100
|
+
cmd += 'ensight.data.format("DVS")\n'
|
|
99
101
|
cmd += "ensight.data.replace(path)\n"
|
|
100
102
|
return cmd
|
|
101
103
|
|
|
@@ -154,6 +156,7 @@ class DVS:
|
|
|
154
156
|
raise RuntimeError(f"Couldn't write allocated DVS port to {filename}")
|
|
155
157
|
ensight.part.elt_representation("3D_feature_2D_full")
|
|
156
158
|
ensight.solution_time.monitor_for_new_steps(f"{monitor_new_timesteps}")
|
|
159
|
+
ensight.data.format("DVS")
|
|
157
160
|
ensight.data.replace(path)
|
|
158
161
|
else:
|
|
159
162
|
|
|
@@ -180,6 +183,7 @@ class DVS:
|
|
|
180
183
|
ensight.objs.core.CURRENTCASE[0].client_command_callback(dvs_callback)
|
|
181
184
|
ensight.solution_time.monitor_for_new_steps(f"{monitor_new_timesteps}")
|
|
182
185
|
ensight.part.elt_representation("3D_feature_2D_full")
|
|
186
|
+
ensight.data.format("DVS")
|
|
183
187
|
ensight.data.replace("notexisting.dvs")
|
|
184
188
|
|
|
185
189
|
def launch_live_dvs(
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/__init__.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/enscontext.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/enshell_grpc.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/ensight_grpc.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/ensobj.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/launcher.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/libuserd.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/listobj.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/py.typed
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/renderable.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/session.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/sgeo_poll.html
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/adr.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/export.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/parts.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.9.15 → ansys_pyensight_core-0.9.17}/src/ansys/pyensight/core/utils/views.py
RENAMED
|
File without changes
|