ansys-pyensight-core 0.8.3__tar.gz → 0.8.4__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.8.3 → ansys_pyensight_core-0.8.4}/PKG-INFO +4 -4
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/pyproject.toml +4 -4
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/dsg_server.py +3 -6
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/omniverse.py +9 -9
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/parts.py +5 -5
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/variables.py +36 -1
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/LICENSE +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/README.rst +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/__init__.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/deep_pixel_view.html +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/dockerlauncher.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/enscontext.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/enshell_grpc.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/ensight_grpc.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/ensobj.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/launch_ensight.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/launcher.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/listobj.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/locallauncher.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/py.typed +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/renderable.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/session.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/sgeo_poll.html +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/__init__.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/adr.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/export.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/omniverse_dsg_server.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/query.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/readers.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/resources/Materials/000_sky.exr +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_BaseColor.png +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_N.png +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_ORM.png +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone.mdl +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/support.py +0 -0
- {ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ansys-pyensight-core
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.4
|
|
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>
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Requires-Dist: importlib-metadata>=4.0; python_version<='3.8'
|
|
19
19
|
Requires-Dist: ansys-api-pyensight==0.4.1
|
|
20
|
-
Requires-Dist: requests>=2.28.2
|
|
20
|
+
Requires-Dist: requests>=2.28.2
|
|
21
21
|
Requires-Dist: docker>=6.1.0
|
|
22
22
|
Requires-Dist: urllib3<2
|
|
23
23
|
Requires-Dist: numpy>=1.21.0,<2
|
|
@@ -37,7 +37,7 @@ Requires-Dist: sphinx-gallery==0.13.0 ; extra == "doc"
|
|
|
37
37
|
Requires-Dist: sphinxcontrib-mermaid==0.9.2 ; extra == "doc"
|
|
38
38
|
Requires-Dist: docker>=6.1.0 ; extra == "doc"
|
|
39
39
|
Requires-Dist: matplotlib==3.7.2 ; extra == "doc"
|
|
40
|
-
Requires-Dist: requests>=2.28.2
|
|
40
|
+
Requires-Dist: requests>=2.28.2 ; extra == "doc"
|
|
41
41
|
Requires-Dist: sphinxcontrib.jquery==4.1 ; extra == "doc"
|
|
42
42
|
Requires-Dist: coverage-badge==1.1.0 ; extra == "doc"
|
|
43
43
|
Requires-Dist: sphinxcontrib-openapi==0.8.1 ; extra == "doc"
|
|
@@ -47,7 +47,7 @@ Requires-Dist: pytest-cov==4.1.0 ; extra == "tests"
|
|
|
47
47
|
Requires-Dist: dill>=0.3.5.1 ; extra == "tests"
|
|
48
48
|
Requires-Dist: pytest-mock==3.10.0 ; extra == "tests"
|
|
49
49
|
Requires-Dist: urllib3==1.26.10 ; extra == "tests"
|
|
50
|
-
Requires-Dist: requests>=2.28.2
|
|
50
|
+
Requires-Dist: requests>=2.28.2 ; extra == "tests"
|
|
51
51
|
Requires-Dist: docker>=6.1.0 ; extra == "tests"
|
|
52
52
|
Project-URL: Changelog, https://github.com/ansys/pyensight/blob/main/CHANGELOG.rst
|
|
53
53
|
Project-URL: Documentation, https://ensight.docs.pyansys.com/
|
|
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "ansys-pyensight-core"
|
|
9
|
-
version = "0.8.
|
|
9
|
+
version = "0.8.4"
|
|
10
10
|
description = "A python wrapper for Ansys EnSight"
|
|
11
11
|
readme = "README.rst"
|
|
12
12
|
requires-python = ">=3.9,<4"
|
|
@@ -28,7 +28,7 @@ classifiers = [
|
|
|
28
28
|
dependencies = [
|
|
29
29
|
"importlib-metadata>=4.0; python_version<='3.8'",
|
|
30
30
|
"ansys-api-pyensight==0.4.1",
|
|
31
|
-
"requests>=2.28.2
|
|
31
|
+
"requests>=2.28.2",
|
|
32
32
|
"docker>=6.1.0",
|
|
33
33
|
"urllib3<2",
|
|
34
34
|
"numpy>=1.21.0,<2",
|
|
@@ -51,7 +51,7 @@ tests = [
|
|
|
51
51
|
"dill>=0.3.5.1",
|
|
52
52
|
"pytest-mock==3.10.0",
|
|
53
53
|
"urllib3==1.26.10",
|
|
54
|
-
"requests>=2.28.2
|
|
54
|
+
"requests>=2.28.2",
|
|
55
55
|
"docker>=6.1.0",
|
|
56
56
|
]
|
|
57
57
|
doc = [
|
|
@@ -63,7 +63,7 @@ doc = [
|
|
|
63
63
|
"sphinxcontrib-mermaid==0.9.2",
|
|
64
64
|
"docker>=6.1.0",
|
|
65
65
|
"matplotlib==3.7.2",
|
|
66
|
-
"requests>=2.28.2
|
|
66
|
+
"requests>=2.28.2",
|
|
67
67
|
"sphinxcontrib.jquery==4.1",
|
|
68
68
|
"coverage-badge==1.1.0",
|
|
69
69
|
"sphinxcontrib-openapi==0.8.1",
|
|
@@ -100,9 +100,6 @@ class Part(object):
|
|
|
100
100
|
It will duplicate triangles as needed (to preserve element normals) and will convert
|
|
101
101
|
variable data into texture coordinates.
|
|
102
102
|
|
|
103
|
-
Note: this call can only be made once as the internal structures are released when this
|
|
104
|
-
call is made.
|
|
105
|
-
|
|
106
103
|
Returns
|
|
107
104
|
-------
|
|
108
105
|
On failure, the method returns None for the first return value. The returned tuple is:
|
|
@@ -122,7 +119,6 @@ class Part(object):
|
|
|
122
119
|
self.session.log(
|
|
123
120
|
f"Note: part '{self.cmd.name}' contains lines which are not currently supported."
|
|
124
121
|
)
|
|
125
|
-
self.cmd = None
|
|
126
122
|
return None, None, None, None, None, None
|
|
127
123
|
verts = self.coords
|
|
128
124
|
if self.session.normalize_geometry and self.session.scene_bounds is not None:
|
|
@@ -285,8 +281,9 @@ class UpdateHandler(object):
|
|
|
285
281
|
|
|
286
282
|
def finalize_part(self, part: Part) -> None:
|
|
287
283
|
"""Called when all the updates on a Part object have been completed.
|
|
288
|
-
|
|
289
|
-
|
|
284
|
+
|
|
285
|
+
Note: this superclass method should be called after the subclass has processed
|
|
286
|
+
the part geometry as the saved part command will be destroyed by this call.
|
|
290
287
|
"""
|
|
291
288
|
if part.cmd:
|
|
292
289
|
self.session.log(f"Part finalized: {part.cmd.name}")
|
|
@@ -19,13 +19,6 @@ class Omniverse:
|
|
|
19
19
|
The omniverse class methods provide an interface between an EnSight session
|
|
20
20
|
and an Omniverse instance. See :ref:`omniverse_info` for additional details.
|
|
21
21
|
|
|
22
|
-
Note
|
|
23
|
-
----
|
|
24
|
-
This interface is only available when using pyensight (they do not work with
|
|
25
|
-
the ensight Python interpreter) and the module must be used in an interpreter
|
|
26
|
-
that includes the Omniverse Python modules (e.g. omni and pxr). Only a single
|
|
27
|
-
Omniverse connection can be established within a single pyensight session.
|
|
28
|
-
|
|
29
22
|
Parameters
|
|
30
23
|
----------
|
|
31
24
|
interface:
|
|
@@ -33,8 +26,15 @@ class Omniverse:
|
|
|
33
26
|
EnSight Python, the ``ensight`` module is passed. In the case
|
|
34
27
|
of PyEnSight, ``Session.ensight`` is passed.
|
|
35
28
|
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
Notes
|
|
30
|
+
-----
|
|
31
|
+
This interface is only available when using pyensight (they do not work with
|
|
32
|
+
the ensight Python interpreter) and the module must be used in an interpreter
|
|
33
|
+
that includes the Omniverse Python modules (e.g. omni and pxr). Only a single
|
|
34
|
+
Omniverse connection can be established within a single pyensight session.
|
|
35
|
+
|
|
36
|
+
Examples
|
|
37
|
+
--------
|
|
38
38
|
::
|
|
39
39
|
from ansys.pyensight.core import LocalLauncher
|
|
40
40
|
session = LocalLauncher().start()
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/parts.py
RENAMED
|
@@ -1081,7 +1081,7 @@ class Parts:
|
|
|
1081
1081
|
Returns
|
|
1082
1082
|
-------
|
|
1083
1083
|
list
|
|
1084
|
-
list of part objects selected or None if error.
|
|
1084
|
+
A list of part objects selected or None if error.
|
|
1085
1085
|
|
|
1086
1086
|
|
|
1087
1087
|
NOTE: If you do not want a measured part in your
|
|
@@ -1116,7 +1116,7 @@ class Parts:
|
|
|
1116
1116
|
ret_flag="id",
|
|
1117
1117
|
) -> Union[Optional[List[int]], Optional[List[str]], Optional[List["ENS_PART"]]]:
|
|
1118
1118
|
"""
|
|
1119
|
-
|
|
1119
|
+
Input a part or a list of parts and return an id, object, or name
|
|
1120
1120
|
or a list of ids, objects, or names.
|
|
1121
1121
|
|
|
1122
1122
|
Parameters
|
|
@@ -1125,13 +1125,13 @@ class Parts:
|
|
|
1125
1125
|
The list of part objects to compute the forces on. It can either be a list of names
|
|
1126
1126
|
a list of IDs (integers or strings) or directly a list of ENS_PART objects
|
|
1127
1127
|
|
|
1128
|
-
ret_flag:
|
|
1129
|
-
|
|
1128
|
+
ret_flag: str
|
|
1129
|
+
A string that determines what is returned
|
|
1130
1130
|
|
|
1131
1131
|
Returns
|
|
1132
1132
|
-------
|
|
1133
1133
|
list
|
|
1134
|
-
|
|
1134
|
+
Either a list of part IDs, or a list of names or a list of ENS_PART objects
|
|
1135
1135
|
depending on the requested ret_flag value
|
|
1136
1136
|
"""
|
|
1137
1137
|
# To not change the interface I didn't move ret_flag to be a required argument,
|
|
@@ -54,7 +54,42 @@ class Variables:
|
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
56
|
def calculator(self) -> "ens_calculator":
|
|
57
|
-
"""
|
|
57
|
+
"""
|
|
58
|
+
The calculator interface presents a Pythonic mechanism to access all the
|
|
59
|
+
EnSight calculator functions: :doc:`Calculator Functions <../calc_functions>`.
|
|
60
|
+
|
|
61
|
+
Unlike the native API function :func:`pyensight.ensight_api.variables.evaluate`
|
|
62
|
+
and the object API function :func:`pyensight.ens_globals.ENS_GLOBALS.create_variable`
|
|
63
|
+
which take a string as the function definition, the methods on the calculator
|
|
64
|
+
object take natural Python objects and return any newly created ``ENS_VARIABLE``
|
|
65
|
+
object.
|
|
66
|
+
|
|
67
|
+
Returns
|
|
68
|
+
-------
|
|
69
|
+
ens_calculator
|
|
70
|
+
An object supporting a method for each EnSight calculator function.
|
|
71
|
+
|
|
72
|
+
Examples
|
|
73
|
+
--------
|
|
74
|
+
The following are equavalent:
|
|
75
|
+
|
|
76
|
+
>>> # Native API
|
|
77
|
+
>>> session.ensight.part.select_all()
|
|
78
|
+
>>> session.ensight.variables.evaluate("EleSize = EleSize(plist)")
|
|
79
|
+
>>> var1 = session.ensight.objs.core.VARIABLES["EleSize"][0]
|
|
80
|
+
>>> session.ensight.variables.evaluate("OffsetVar = OffsetVar(plist,Momentum,2e-05)")
|
|
81
|
+
>>> var2 = session.ensight.objs.core.VARIABLES["OffsetVar"][0]
|
|
82
|
+
>>> # Object API
|
|
83
|
+
>>> parts = session.ensight.objs.core.PARTS
|
|
84
|
+
>>> var1 = session.ensight.objs.core.create_variable("EleSize", "EleSize(plist)", sources=parts)
|
|
85
|
+
>>> var2 = session.ensight.objs.core.create_variable("OffsetVar", "OffsetVar(plist,Momentum,2e-05)", sources=parts)
|
|
86
|
+
>>> # ens_calculator API
|
|
87
|
+
>>> parts = session.ensight.objs.core.PARTS
|
|
88
|
+
>>> var1 = session.ensight.utils.variables.calculator.elesize(parts, output_varname="EleSize")
|
|
89
|
+
>>> momentum = session.objs.core.PARTS["Momentum"]
|
|
90
|
+
>>> var2 = session.ensight.utils.variables.calculator.offsetvar(parts, momentum[0], 2.e-5, output_varname="OffsetVar")
|
|
91
|
+
|
|
92
|
+
"""
|
|
58
93
|
return self._calculator
|
|
59
94
|
|
|
60
95
|
def _check_for_var_elem(
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/dockerlauncher.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/enscontext.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/enshell_grpc.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/ensight_grpc.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/ensobj.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/launch_ensight.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/launcher.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/listobj.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/locallauncher.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/renderable.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/session.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/sgeo_poll.html
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/__init__.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/adr.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/export.py
RENAMED
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/query.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/readers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/support.py
RENAMED
|
File without changes
|
{ansys_pyensight_core-0.8.3 → ansys_pyensight_core-0.8.4}/src/ansys/pyensight/core/utils/views.py
RENAMED
|
File without changes
|