ansys-pyensight-core 0.10.7__py3-none-any.whl → 0.10.8__py3-none-any.whl
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/common.py +1 -1
- ansys/pyensight/core/dvs.py +3 -1
- ansys/pyensight/core/enshell_grpc.py +1 -1
- ansys/pyensight/core/libuserd.py +2 -2
- ansys/pyensight/core/session.py +2 -2
- ansys/pyensight/core/utils/omniverse.py +1 -1
- ansys/pyensight/core/utils/views.py +4 -0
- {ansys_pyensight_core-0.10.7.dist-info → ansys_pyensight_core-0.10.8.dist-info}/METADATA +3 -3
- {ansys_pyensight_core-0.10.7.dist-info → ansys_pyensight_core-0.10.8.dist-info}/RECORD +11 -11
- {ansys_pyensight_core-0.10.7.dist-info → ansys_pyensight_core-0.10.8.dist-info}/WHEEL +0 -0
- {ansys_pyensight_core-0.10.7.dist-info → ansys_pyensight_core-0.10.8.dist-info}/licenses/LICENSE +0 -0
ansys/pyensight/core/common.py
CHANGED
|
@@ -97,7 +97,7 @@ def get_host_port(uri: str) -> Tuple[str, int]:
|
|
|
97
97
|
port = (
|
|
98
98
|
parse_results.port
|
|
99
99
|
if parse_results.port
|
|
100
|
-
else (443 if re.search("^https|wss$", parse_results.scheme) else None)
|
|
100
|
+
else (443 if re.search(r"^https|wss$", parse_results.scheme) else None)
|
|
101
101
|
)
|
|
102
102
|
return (parse_results.host, port)
|
|
103
103
|
|
ansys/pyensight/core/dvs.py
CHANGED
|
@@ -156,7 +156,9 @@ class DVS(dvs_base):
|
|
|
156
156
|
arch = "win64" if self._is_windows() else "linux_2.6_64"
|
|
157
157
|
apex_libs = os.path.join(apex_path, "machines", arch)
|
|
158
158
|
python_path = glob.glob(os.path.join(apex_libs, "Python-3.*"))[-1]
|
|
159
|
-
apex_py_version = re.search(
|
|
159
|
+
apex_py_version = re.search(
|
|
160
|
+
r"Python-3.([0-9]+).([0-9]+)", os.path.basename(python_path)
|
|
161
|
+
)
|
|
160
162
|
apex_py_major_version = apex_py_version.group(1)
|
|
161
163
|
lib_path = os.path.join(python_path, "lib", f"python3.{apex_py_major_version}")
|
|
162
164
|
if self._is_windows():
|
|
@@ -455,7 +455,7 @@ class EnShellGRPC(object):
|
|
|
455
455
|
"Error getting CEI_HOME env var from the Docker container.\n{ret}\n"
|
|
456
456
|
) # pragma: no cover
|
|
457
457
|
self._cei_home = cei_home_line[equal_sign_loc + 1 :]
|
|
458
|
-
m = re.search("/v(\d\d\d)/", self._cei_home)
|
|
458
|
+
m = re.search(r"/v(\d\d\d)/", self._cei_home)
|
|
459
459
|
if not m: # pragma: no cover
|
|
460
460
|
self.stop_server() # pragma: no cover
|
|
461
461
|
raise RuntimeError(
|
ansys/pyensight/core/libuserd.py
CHANGED
|
@@ -1138,8 +1138,8 @@ class LibUserd(object):
|
|
|
1138
1138
|
>>> from ansys.pyensight.core import libuserd
|
|
1139
1139
|
>>> l = libuserd.LibUserd()
|
|
1140
1140
|
>>> l.initialize()
|
|
1141
|
-
>>> readers = l.query_format(
|
|
1142
|
-
>>> data = readers[0].read_dataset(
|
|
1141
|
+
>>> readers = l.query_format("D:\\data\\Axial_001.res")
|
|
1142
|
+
>>> data = readers[0].read_dataset("D:\\data\\Axial_001.res")
|
|
1143
1143
|
>>> part = data.parts[0]
|
|
1144
1144
|
>>> print(part, part.nodes())
|
|
1145
1145
|
>>> l.shutdown()
|
ansys/pyensight/core/session.py
CHANGED
|
@@ -1164,7 +1164,7 @@ class Session:
|
|
|
1164
1164
|
--------
|
|
1165
1165
|
>>> from ansys.pyensight.core import LocalLauncher
|
|
1166
1166
|
>>> session = LocalLauncher().start()
|
|
1167
|
-
>>> session.load_data(
|
|
1167
|
+
>>> session.load_data('D:\\data\\CFX\\example_data.res')
|
|
1168
1168
|
|
|
1169
1169
|
"""
|
|
1170
1170
|
self._establish_connection()
|
|
@@ -1431,7 +1431,7 @@ class Session:
|
|
|
1431
1431
|
>>> def cb(v: str):
|
|
1432
1432
|
>>> print("Event:", v)
|
|
1433
1433
|
>>> s.add_callback("ensight.objs.core", "partlist", ["PARTS"], cb)
|
|
1434
|
-
>>> s.load_data(
|
|
1434
|
+
>>> s.load_data("D:\\ANSYSDev\\data\\CFX\\HeatingCoil_001.res")
|
|
1435
1435
|
"""
|
|
1436
1436
|
self._establish_connection()
|
|
1437
1437
|
# shorten the tag up to the query block. Macros are only legal in the query block.
|
|
@@ -396,7 +396,7 @@ class Omniverse:
|
|
|
396
396
|
>>> from ansys.pyensight.core import LocalLauncher
|
|
397
397
|
>>> session = LocalLauncher().start()
|
|
398
398
|
>>> ov = session.ensight.utils.omniverse
|
|
399
|
-
>>> ov.create_connection(
|
|
399
|
+
>>> ov.create_connection("D:\\Omniverse\\Example")
|
|
400
400
|
>>> ov.update()
|
|
401
401
|
>>> ov.close_connection()
|
|
402
402
|
|
|
@@ -78,6 +78,7 @@ class _Simba:
|
|
|
78
78
|
|
|
79
79
|
def auto_scale(self):
|
|
80
80
|
"""Auto scale view."""
|
|
81
|
+
self.ensight.view_transf.function("global")
|
|
81
82
|
self.ensight.view_transf.fit()
|
|
82
83
|
self._initialize_simba_view()
|
|
83
84
|
self.render()
|
|
@@ -85,6 +86,7 @@ class _Simba:
|
|
|
85
86
|
|
|
86
87
|
def set_view(self, value: str):
|
|
87
88
|
"""Set the view."""
|
|
89
|
+
self.ensight.view_transf.function("global")
|
|
88
90
|
if value != "isometric":
|
|
89
91
|
new_value = value[1].upper() + value[0]
|
|
90
92
|
self.ensight.view_transf.view_recall(new_value)
|
|
@@ -210,6 +212,7 @@ class _Simba:
|
|
|
210
212
|
self, orthographic, view_up=None, position=None, focal_point=None, view_angle=None
|
|
211
213
|
):
|
|
212
214
|
"""Set the EnSight camera settings from the VTK input."""
|
|
215
|
+
self.ensight.view_transf.function("global")
|
|
213
216
|
perspective = "OFF" if orthographic else "ON"
|
|
214
217
|
if orthographic:
|
|
215
218
|
self.ensight.view.perspective(perspective)
|
|
@@ -230,6 +233,7 @@ class _Simba:
|
|
|
230
233
|
self.render()
|
|
231
234
|
|
|
232
235
|
def set_perspective(self, value):
|
|
236
|
+
self.ensight.view_transf.function("global")
|
|
233
237
|
vport = self.ensight.objs.core.VPORTS[0]
|
|
234
238
|
self.ensight.view.perspective(value)
|
|
235
239
|
vport.PERSPECTIVE = value == "ON"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ansys-pyensight-core
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.8
|
|
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,10 +17,10 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: importlib-metadata>=4.0; python_version<='3.8'
|
|
20
|
-
Requires-Dist: ansys-api-pyensight==0.4.
|
|
20
|
+
Requires-Dist: ansys-api-pyensight==0.4.9
|
|
21
21
|
Requires-Dist: requests>=2.28.2
|
|
22
22
|
Requires-Dist: docker>=6.1.0
|
|
23
|
-
Requires-Dist: urllib3<
|
|
23
|
+
Requires-Dist: urllib3<3
|
|
24
24
|
Requires-Dist: numpy>=1.21.0,<3
|
|
25
25
|
Requires-Dist: Pillow>=9.3.0
|
|
26
26
|
Requires-Dist: pypng>=0.0.20
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
ansys/pyensight/core/__init__.py,sha256=BCfpDonS2OZRM2O6wjcyOYhLSgdy9hMQRl6G-_9Bvkg,845
|
|
2
|
-
ansys/pyensight/core/common.py,sha256=
|
|
2
|
+
ansys/pyensight/core/common.py,sha256=GhDxSoSscT9ObyTyEcuP0zeKKVJOpWVVYG0SwEby7CA,7575
|
|
3
3
|
ansys/pyensight/core/deep_pixel_view.html,sha256=6u4mGOuzJiPze8N8pIKJsEGPv5y6-zb38m9IfrarATE,3510
|
|
4
4
|
ansys/pyensight/core/dockerlauncher.py,sha256=1ufL3uG170ZmZ5KnhwcFh07iMIbqNCDjD1mC0u7MH20,28371
|
|
5
|
-
ansys/pyensight/core/dvs.py,sha256=
|
|
5
|
+
ansys/pyensight/core/dvs.py,sha256=zRhizBkIUCk09BaR-7BxkC6EkIEjG7rU5vznh45QOzA,32018
|
|
6
6
|
ansys/pyensight/core/enscontext.py,sha256=GSKkjZt1QEPyHEQ59EEBgKGMik9vjCdR9coR4uX7fEw,12141
|
|
7
|
-
ansys/pyensight/core/enshell_grpc.py,sha256
|
|
7
|
+
ansys/pyensight/core/enshell_grpc.py,sha256=OPK84J44kwjbAYQM4acb9zd-abYYkMNculKaWZeVDIk,17123
|
|
8
8
|
ansys/pyensight/core/ensight_grpc.py,sha256=IitEgMzBJTyTgQff0sXPvGkVnC2E9qRKw-HXCF-mVvA,29713
|
|
9
9
|
ansys/pyensight/core/ensobj.py,sha256=uDtM2KHcAwd4hu5pcUYWbSD729ApHGIvuqZhEq8PxTI,18558
|
|
10
10
|
ansys/pyensight/core/launch_ensight.py,sha256=iZJM6GdpzGRDLzrv1V2QZ5veIOpNSB5xPpJUFY7rBuo,10254
|
|
11
11
|
ansys/pyensight/core/launcher.py,sha256=x6L1E6OGpqL2jrDdIGI0p4BxQZhHt93yl1Pwj_2lAiQ,13143
|
|
12
|
-
ansys/pyensight/core/libuserd.py,sha256=
|
|
12
|
+
ansys/pyensight/core/libuserd.py,sha256=P6j-mgT6kDYiuRRDKEepJvZusBYa5jo4AQIwK__9R6Q,76020
|
|
13
13
|
ansys/pyensight/core/listobj.py,sha256=Trw87IxIMXtmUd1DzywRmMzORU704AG4scX4fqYmO6M,9340
|
|
14
14
|
ansys/pyensight/core/locallauncher.py,sha256=b9sgHY1Fw_1lV4h4BE7GybL71GIRPDFw56Mt-5SQYEw,17256
|
|
15
15
|
ansys/pyensight/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
ansys/pyensight/core/renderable.py,sha256=KidVTVCZ4hKYq54pP9KoJ8OCxeWBXNUJYyKSwMZ2Sls,36362
|
|
17
|
-
ansys/pyensight/core/session.py,sha256=
|
|
17
|
+
ansys/pyensight/core/session.py,sha256=6iIzw_PPpJ0ry9jwLfNdm5e5x_ppzamYv7BS1rtNZDw,74455
|
|
18
18
|
ansys/pyensight/core/sgeo_poll.html,sha256=1M4BIc5CZpYA3b40qzk22NcPCLhjFnWdoS2PrS6Rhn4,752
|
|
19
19
|
ansys/pyensight/core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
ansys/pyensight/core/utils/adr.py,sha256=XslZhlwcrSGzOlnhzprOv3ju_ppxxsWBjCnQL5KiNms,3570
|
|
21
21
|
ansys/pyensight/core/utils/dsg_server.py,sha256=2jCPhOplPrlDaQNSKSk9qo7bEgfcrhx0rHS_cqW2zAY,47003
|
|
22
22
|
ansys/pyensight/core/utils/export.py,sha256=GC0NbVl0_CXvUUfkbJl49yjTsP_58bJZyjE95q6ATUo,22604
|
|
23
|
-
ansys/pyensight/core/utils/omniverse.py,sha256=
|
|
23
|
+
ansys/pyensight/core/utils/omniverse.py,sha256=Xnjw8XiIzTCOHKvpb7dH-P3ObA3dQHJvxXEsrRt6XvI,24738
|
|
24
24
|
ansys/pyensight/core/utils/omniverse_cli.py,sha256=ujoBbBGMYsYUn83nrk2dFkOd7kn7-6cs7ljBmmSXodw,20578
|
|
25
25
|
ansys/pyensight/core/utils/omniverse_dsg_server.py,sha256=MuHVurd8zaSIsQkvrY94X_IJSldFShnzEoGItjvZTTw,41067
|
|
26
26
|
ansys/pyensight/core/utils/omniverse_glb_server.py,sha256=dx2cfR036d3DY6meooNfLZOQpOMaiaLKqBjztpew2_Q,32167
|
|
@@ -29,9 +29,9 @@ ansys/pyensight/core/utils/query.py,sha256=OXKDbf1sOTX0sUvtKcp64LhVl-BcrEsE43w8u
|
|
|
29
29
|
ansys/pyensight/core/utils/readers.py,sha256=_IluAWz8mmoe5SM3hAewHIqlhtKMfEqrUJoQOlJ4U4I,12138
|
|
30
30
|
ansys/pyensight/core/utils/support.py,sha256=QI3z9ex7zJxjFbkCPba9DWqWgPFIThORqr0nvRfVjuc,4089
|
|
31
31
|
ansys/pyensight/core/utils/variables.py,sha256=ZUiJdDIeRcowrnLXaJQqGwA0RbrfXhc1s4o4v9A4PiY,95133
|
|
32
|
-
ansys/pyensight/core/utils/views.py,sha256=
|
|
32
|
+
ansys/pyensight/core/utils/views.py,sha256=FDBZsk_sXV5mRkOcrMsGfYgH3EhsYizByasEm_yHDbs,21597
|
|
33
33
|
ansys/pyensight/core/utils/resources/Materials/000_sky.exr,sha256=xAR1gFd2uxPZDnvgfegdhEhRaqKtZldQDiR_-1rHKO0,8819933
|
|
34
|
-
ansys_pyensight_core-0.10.
|
|
35
|
-
ansys_pyensight_core-0.10.
|
|
36
|
-
ansys_pyensight_core-0.10.
|
|
37
|
-
ansys_pyensight_core-0.10.
|
|
34
|
+
ansys_pyensight_core-0.10.8.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
|
|
35
|
+
ansys_pyensight_core-0.10.8.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
36
|
+
ansys_pyensight_core-0.10.8.dist-info/METADATA,sha256=De1e_99-YQMsdWK_MJqoHjvr3yveUiG4lzUWPR5YIK8,12228
|
|
37
|
+
ansys_pyensight_core-0.10.8.dist-info/RECORD,,
|
|
File without changes
|
{ansys_pyensight_core-0.10.7.dist-info → ansys_pyensight_core-0.10.8.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|