ansys-pyensight-core 0.10.4__py3-none-any.whl → 0.10.5__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.

@@ -384,7 +384,8 @@ class DockerLauncher(Launcher):
384
384
 
385
385
  def launch_webui(self, container_env_str):
386
386
  # Run websocketserver
387
- cmd = "cpython -m ansys.simba.plugin.post.simba_post"
387
+ cmd = f"/ansys_inc/v{self._ansys_version}/FluidsOne/server/linx64/fluidsone"
388
+ cmd += " --main-run-mode post"
388
389
  # websocket port - this needs to come first since we now have
389
390
  # --add_header as a optional arg that can take an arbitrary
390
391
  # number of optional headers.
@@ -393,10 +394,7 @@ class DockerLauncher(Launcher):
393
394
  http_port = self._service_host_port["http"][1]
394
395
  ws_port = self._service_host_port["ws"][1]
395
396
  cmd += f" --server-listen-port {webui_port}"
396
- cmd += (
397
- f" --server-web-roots /ansys_inc/v{self._ansys_version}/CEI/nexus{self._ansys_version}/"
398
- )
399
- cmd += f"ansys{self._ansys_version}/ensight/WebUI/web/ui/"
397
+ cmd += f" --server-web-roots /ansys_inc/v{self._ansys_version}/FluidsOne/web/ui"
400
398
  cmd += f" --ensight-grpc-port {grpc_port}"
401
399
  cmd += f" --ensight-html-port {http_port}"
402
400
  cmd += f" --ensight-ws-port {ws_port}"
@@ -102,8 +102,16 @@ class LocalLauncher(Launcher):
102
102
  """Type of app to launch. Options are ``ensight`` and ``envision``."""
103
103
  return self._application
104
104
 
105
- def launch_webui(self, cpython, version, popen_common):
106
- cmd = [cpython, "-m", "ansys.simba.plugin.post.simba_post"]
105
+ def launch_webui(self, version, popen_common):
106
+ if os.environ.get("PYENSIGHT_FLUIDSONE_PATH"):
107
+ fluids_one_path = os.environ["PYENSIGHT_FLUIDSONE_PATH"]
108
+ else:
109
+ awp_path = os.path.dirname(self._install_path)
110
+ platf = "winx64" if self._is_windows() else "linx64"
111
+ fluids_one_path = os.path.join(awp_path, "FluidsOne", "server", platf, "fluids_one")
112
+ if self._is_windows():
113
+ fluids_one_path += ".exe"
114
+ cmd = [fluids_one_path, "--main-run-mode", "post"]
107
115
  path_to_webui = self._install_path
108
116
  # Dev environment
109
117
  path_to_webui_internal = os.path.join(
@@ -265,7 +273,6 @@ class LocalLauncher(Launcher):
265
273
  cmd = [os.path.join(self._install_path, "bin", "cpython"), websocket_script]
266
274
  if is_windows:
267
275
  cmd[0] += ".bat"
268
- ensight_python = cmd[0]
269
276
  cmd.extend(["--http_directory", self.session_directory])
270
277
  # http port
271
278
  cmd.extend(["--http_port", str(self._ports[2])])
@@ -312,7 +319,7 @@ class LocalLauncher(Launcher):
312
319
  self._sessions.append(session)
313
320
 
314
321
  if self._launch_webui:
315
- self.launch_webui(ensight_python, version, popen_common)
322
+ self.launch_webui(version, popen_common)
316
323
  return session
317
324
 
318
325
  def stop(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ansys-pyensight-core
3
- Version: 0.10.4
3
+ Version: 0.10.5
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>
@@ -1,7 +1,7 @@
1
1
  ansys/pyensight/core/__init__.py,sha256=BCfpDonS2OZRM2O6wjcyOYhLSgdy9hMQRl6G-_9Bvkg,845
2
2
  ansys/pyensight/core/common.py,sha256=f28uGaJhpSmOE1i6MwzqFH0_jKpIByglM2plB2K4Hdk,7574
3
3
  ansys/pyensight/core/deep_pixel_view.html,sha256=6u4mGOuzJiPze8N8pIKJsEGPv5y6-zb38m9IfrarATE,3510
4
- ansys/pyensight/core/dockerlauncher.py,sha256=eAg50C1BjGzOkRKHgSPssz8_jiMwQOP1o-a7lUY-p_Q,28415
4
+ ansys/pyensight/core/dockerlauncher.py,sha256=1ufL3uG170ZmZ5KnhwcFh07iMIbqNCDjD1mC0u7MH20,28371
5
5
  ansys/pyensight/core/dvs.py,sha256=ILUyWphtda_FVDckVbC-FxHWjsp4GdZ4EZs_zGeGE5w,31987
6
6
  ansys/pyensight/core/enscontext.py,sha256=GSKkjZt1QEPyHEQ59EEBgKGMik9vjCdR9coR4uX7fEw,12141
7
7
  ansys/pyensight/core/enshell_grpc.py,sha256=-OxSdFI_p3DmQnqh1jT_a_aSh_w-EUD2IaWGKxrnyjI,17122
@@ -11,7 +11,7 @@ ansys/pyensight/core/launch_ensight.py,sha256=iZJM6GdpzGRDLzrv1V2QZ5veIOpNSB5xPp
11
11
  ansys/pyensight/core/launcher.py,sha256=x6L1E6OGpqL2jrDdIGI0p4BxQZhHt93yl1Pwj_2lAiQ,13143
12
12
  ansys/pyensight/core/libuserd.py,sha256=er49fOZJ050OU122cYQgtdDSFr2YNNvKoqFk7Ogjiro,76018
13
13
  ansys/pyensight/core/listobj.py,sha256=Trw87IxIMXtmUd1DzywRmMzORU704AG4scX4fqYmO6M,9340
14
- ansys/pyensight/core/locallauncher.py,sha256=SokWJoRkiyBs6WXbPN58zGQYm1_1voiT_LX8s2RJW18,16890
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
17
  ansys/pyensight/core/session.py,sha256=nNYKzbmVRELUHtj0XRU80JNiAVcuXsOeXXh3CbJLsLA,74450
@@ -31,7 +31,7 @@ ansys/pyensight/core/utils/support.py,sha256=QI3z9ex7zJxjFbkCPba9DWqWgPFIThORqr0
31
31
  ansys/pyensight/core/utils/variables.py,sha256=ZUiJdDIeRcowrnLXaJQqGwA0RbrfXhc1s4o4v9A4PiY,95133
32
32
  ansys/pyensight/core/utils/views.py,sha256=ZKhJ6vMT7Rdd4bwJ0egMYTV7-D7Q7I19fF2_j_CMQ0o,12489
33
33
  ansys/pyensight/core/utils/resources/Materials/000_sky.exr,sha256=xAR1gFd2uxPZDnvgfegdhEhRaqKtZldQDiR_-1rHKO0,8819933
34
- ansys_pyensight_core-0.10.4.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
- ansys_pyensight_core-0.10.4.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
- ansys_pyensight_core-0.10.4.dist-info/METADATA,sha256=BJxvtWh71aMqlx6SkZ7yCag_RNp546cbNg8Os_Ey1dQ,12203
37
- ansys_pyensight_core-0.10.4.dist-info/RECORD,,
34
+ ansys_pyensight_core-0.10.5.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
+ ansys_pyensight_core-0.10.5.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
+ ansys_pyensight_core-0.10.5.dist-info/METADATA,sha256=gjhhcJb77lu8elOV8X_Vv58BoWa2DpWUWFp5yYWEzQs,12203
37
+ ansys_pyensight_core-0.10.5.dist-info/RECORD,,