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

@@ -539,10 +539,14 @@ class DockerLauncher(Launcher):
539
539
  # http port
540
540
  wss_cmd += " --http_port " + str(self._service_host_port["http"][1])
541
541
  # vnc port
542
- if int(self._ansys_version) > 252:
542
+ if int(self._ansys_version) > 252 and self._rest_ws_separate_loops:
543
543
  wss_cmd += " --separate_loops"
544
544
  wss_cmd += f" --security_token {self._secret_key}"
545
- wss_cmd += " --client_port 1999"
545
+ wss_cmd += " --client_port "
546
+ if int(self._ansys_version) > 252 and self._do_not_start_ws:
547
+ wss_cmd += "-1"
548
+ else:
549
+ wss_cmd += "1999"
546
550
  # optional PIM instance header
547
551
  if self._pim_instance is not None:
548
552
  # Add the PIM instance header. wss needs to return this optional
@@ -107,6 +107,8 @@ class Launcher:
107
107
  use_mpi: Optional[str] = None,
108
108
  interconnect: Optional[str] = None,
109
109
  server_hosts: Optional[List[str]] = None,
110
+ rest_ws_separate_loops: bool = False,
111
+ do_not_start_ws: bool = False,
110
112
  ) -> None:
111
113
  self._timeout = timeout
112
114
  self._use_egl_param_val: bool = use_egl
@@ -141,6 +143,8 @@ class Launcher:
141
143
  self._query_parameters: Dict[str, str] = {}
142
144
  self._additional_command_line_options = additional_command_line_options
143
145
  self._launch_webui = launch_webui
146
+ self._do_not_start_ws = do_not_start_ws
147
+ self._rest_ws_separate_loops = rest_ws_separate_loops
144
148
 
145
149
  @property
146
150
  def session_directory(self) -> str:
@@ -284,11 +284,14 @@ class LocalLauncher(Launcher):
284
284
  cmd.extend(["--grpc_port", str(self._ports[0])])
285
285
  # EnVision sessions
286
286
  cmd.extend(["--local_session", "envision", "5"])
287
- if int(version) > 252:
287
+ if int(version) > 252 and self._rest_ws_separate_loops:
288
288
  cmd.append("--separate_loops")
289
289
  cmd.extend(["--security_token", self._secret_key])
290
290
  # websocket port
291
- cmd.append(str(self._ports[3]))
291
+ if int(version) > 252 and self._do_not_start_ws:
292
+ cmd.append("-1")
293
+ else:
294
+ cmd.append(str(self._ports[3]))
292
295
  logging.debug(f"Starting WSS: {cmd}\n")
293
296
  if is_windows:
294
297
  startupinfo = subprocess.STARTUPINFO()
@@ -240,7 +240,7 @@ class _Simba:
240
240
  def render(self):
241
241
  """Force render update in EnSight."""
242
242
  self.ensight.view_transf.zoom(1)
243
- self.ensight.render()
243
+ # self.ensight.render()
244
244
  self.ensight.refresh(1)
245
245
 
246
246
  def _probe_setup(self, part_obj, get_probe_data=False):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ansys-pyensight-core
3
- Version: 0.10.14
3
+ Version: 0.10.15
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,17 +1,17 @@
1
1
  ansys/pyensight/core/__init__.py,sha256=BCfpDonS2OZRM2O6wjcyOYhLSgdy9hMQRl6G-_9Bvkg,845
2
2
  ansys/pyensight/core/common.py,sha256=GhDxSoSscT9ObyTyEcuP0zeKKVJOpWVVYG0SwEby7CA,7575
3
3
  ansys/pyensight/core/deep_pixel_view.html,sha256=6u4mGOuzJiPze8N8pIKJsEGPv5y6-zb38m9IfrarATE,3510
4
- ansys/pyensight/core/dockerlauncher.py,sha256=iemgGEotlZjpX_tCvnAdLKRDNLaDuGKeYWihiqUSDNY,30523
4
+ ansys/pyensight/core/dockerlauncher.py,sha256=zoCd-I91YJ_qhOplJajd0sHG_qyajmTcXa0GSRDx__A,30693
5
5
  ansys/pyensight/core/dvs.py,sha256=zRhizBkIUCk09BaR-7BxkC6EkIEjG7rU5vznh45QOzA,32018
6
6
  ansys/pyensight/core/enscontext.py,sha256=GSKkjZt1QEPyHEQ59EEBgKGMik9vjCdR9coR4uX7fEw,12141
7
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
- ansys/pyensight/core/launcher.py,sha256=_AH0Lr_kTFM6c5DYxEXp1pfrbYmoHWHajxnHgq_0CBo,13229
11
+ ansys/pyensight/core/launcher.py,sha256=DtyaK1xJGOAzlvb6wnl9nA2o59w3x7uWC6UuZ8htT3k,13424
12
12
  ansys/pyensight/core/libuserd.py,sha256=P6j-mgT6kDYiuRRDKEepJvZusBYa5jo4AQIwK__9R6Q,76020
13
13
  ansys/pyensight/core/listobj.py,sha256=Trw87IxIMXtmUd1DzywRmMzORU704AG4scX4fqYmO6M,9340
14
- ansys/pyensight/core/locallauncher.py,sha256=wiYup9hwYeojfHgBKfambgZ2IIeTMsu0jKmKXP7-kew,19146
14
+ ansys/pyensight/core/locallauncher.py,sha256=nxbPI0FuErjVj4mhzhBjGayxcntDs5QD5bVmobPeQg4,19295
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=6iIzw_PPpJ0ry9jwLfNdm5e5x_ppzamYv7BS1rtNZDw,74455
@@ -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=vyO5w5Z1PFlz26FpXjXYDZyGFv2rUTGHJS5ovJvorvc,24675
32
+ ansys/pyensight/core/utils/views.py,sha256=K5r-QcXGgg_S_QMpYGAr34VZLq9A1bYRbVJYPVqRxJ8,24677
33
33
  ansys/pyensight/core/utils/resources/Materials/000_sky.exr,sha256=xAR1gFd2uxPZDnvgfegdhEhRaqKtZldQDiR_-1rHKO0,8819933
34
- ansys_pyensight_core-0.10.14.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
- ansys_pyensight_core-0.10.14.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
- ansys_pyensight_core-0.10.14.dist-info/METADATA,sha256=oelSO4dbpZPk_Ors9o3XJsssT1yOX-TfkQDcL-DL4S0,12201
37
- ansys_pyensight_core-0.10.14.dist-info/RECORD,,
34
+ ansys_pyensight_core-0.10.15.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
+ ansys_pyensight_core-0.10.15.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
+ ansys_pyensight_core-0.10.15.dist-info/METADATA,sha256=DL_6WARahbl-8V1SfFynfPOH32Ny7RqVewqgI_b0T00,12201
37
+ ansys_pyensight_core-0.10.15.dist-info/RECORD,,