ansys-pyensight-core 0.10.14__tar.gz → 0.10.16__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.

Files changed (37) hide show
  1. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/PKG-INFO +1 -1
  2. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/pyproject.toml +1 -1
  3. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/dockerlauncher.py +5 -2
  4. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/launcher.py +4 -0
  5. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/locallauncher.py +5 -2
  6. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/views.py +1 -1
  7. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/LICENSE +0 -0
  8. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/README.rst +0 -0
  9. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/__init__.py +0 -0
  10. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/common.py +0 -0
  11. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/deep_pixel_view.html +0 -0
  12. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/dvs.py +0 -0
  13. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/enscontext.py +0 -0
  14. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/enshell_grpc.py +0 -0
  15. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/ensight_grpc.py +0 -0
  16. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/ensobj.py +0 -0
  17. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/launch_ensight.py +0 -0
  18. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/libuserd.py +0 -0
  19. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/listobj.py +0 -0
  20. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/py.typed +0 -0
  21. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/renderable.py +0 -0
  22. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/session.py +0 -0
  23. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/sgeo_poll.html +0 -0
  24. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/__init__.py +0 -0
  25. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/adr.py +0 -0
  26. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/dsg_server.py +0 -0
  27. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/export.py +0 -0
  28. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/omniverse.py +0 -0
  29. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/omniverse_cli.py +0 -0
  30. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/omniverse_dsg_server.py +0 -0
  31. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/omniverse_glb_server.py +0 -0
  32. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/parts.py +0 -0
  33. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/query.py +0 -0
  34. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/readers.py +0 -0
  35. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/resources/Materials/000_sky.exr +0 -0
  36. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/support.py +0 -0
  37. {ansys_pyensight_core-0.10.14 → ansys_pyensight_core-0.10.16}/src/ansys/pyensight/core/utils/variables.py +0 -0
@@ -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.16
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>
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
6
6
 
7
7
  [project]
8
8
  name = "ansys-pyensight-core"
9
- version = "0.10.14"
9
+ version = "0.10.16"
10
10
  description = "A python wrapper for Ansys EnSight"
11
11
  readme = "README.rst"
12
12
  requires-python = ">=3.10,<3.14"
@@ -533,13 +533,16 @@ class DockerLauncher(Launcher):
533
533
  # websocket port - this needs to come first since we now have
534
534
  # --add_header as a optional arg that can take an arbitrary
535
535
  # number of optional headers.
536
- wss_cmd += " " + str(self._service_host_port["ws"][1])
536
+ if int(self._ansys_version) > 252 and self._do_not_start_ws:
537
+ wss_cmd += " -1"
538
+ else:
539
+ wss_cmd += " " + str(self._service_host_port["ws"][1])
537
540
  #
538
541
  wss_cmd += " --http_directory " + self._session_directory
539
542
  # http port
540
543
  wss_cmd += " --http_port " + str(self._service_host_port["http"][1])
541
544
  # vnc port
542
- if int(self._ansys_version) > 252:
545
+ if int(self._ansys_version) > 252 and self._rest_ws_separate_loops:
543
546
  wss_cmd += " --separate_loops"
544
547
  wss_cmd += f" --security_token {self._secret_key}"
545
548
  wss_cmd += " --client_port 1999"
@@ -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):