ansys-pyensight-core 0.8.1__tar.gz → 0.8.3__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.8.1 → ansys_pyensight_core-0.8.3}/PKG-INFO +5 -5
  2. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/pyproject.toml +9 -7
  3. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/renderable.py +14 -3
  4. ansys_pyensight_core-0.8.3/src/ansys/pyensight/core/utils/dsg_server.py +698 -0
  5. ansys_pyensight_core-0.8.3/src/ansys/pyensight/core/utils/omniverse_dsg_server.py +826 -0
  6. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/readers.py +1 -1
  7. ansys_pyensight_core-0.8.1/src/ansys/pyensight/core/utils/omniverse_dsg_server.py +0 -1355
  8. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/LICENSE +0 -0
  9. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/README.rst +0 -0
  10. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/__init__.py +0 -0
  11. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/deep_pixel_view.html +0 -0
  12. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/dockerlauncher.py +0 -0
  13. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/enscontext.py +0 -0
  14. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/enshell_grpc.py +0 -0
  15. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/ensight_grpc.py +0 -0
  16. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/ensobj.py +0 -0
  17. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/launch_ensight.py +0 -0
  18. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/launcher.py +0 -0
  19. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/listobj.py +0 -0
  20. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/locallauncher.py +0 -0
  21. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/py.typed +0 -0
  22. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/session.py +0 -0
  23. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/sgeo_poll.html +0 -0
  24. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/__init__.py +0 -0
  25. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/adr.py +0 -0
  26. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/export.py +0 -0
  27. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/omniverse.py +0 -0
  28. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/parts.py +0 -0
  29. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/query.py +0 -0
  30. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/resources/Materials/000_sky.exr +0 -0
  31. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_BaseColor.png +0 -0
  32. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_N.png +0 -0
  33. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone/Fieldstone_ORM.png +0 -0
  34. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/resources/Materials/Fieldstone.mdl +0 -0
  35. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/support.py +0 -0
  36. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/src/ansys/pyensight/core/utils/variables.py +0 -0
  37. {ansys_pyensight_core-0.8.1 → ansys_pyensight_core-0.8.3}/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.1
3
+ Version: 0.8.3
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>
@@ -16,8 +16,8 @@ Classifier: Programming Language :: Python :: 3.10
16
16
  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
- Requires-Dist: ansys-api-pyensight==0.4.0
20
- Requires-Dist: requests>=2.28.2
19
+ Requires-Dist: ansys-api-pyensight==0.4.1
20
+ Requires-Dist: requests>=2.28.2,<2.32
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 ; extra == "doc"
40
+ Requires-Dist: requests>=2.28.2,<2.32 ; 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 ; extra == "tests"
50
+ Requires-Dist: requests>=2.28.2,<2.32 ; 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.1"
9
+ version = "0.8.3"
10
10
  description = "A python wrapper for Ansys EnSight"
11
11
  readme = "README.rst"
12
12
  requires-python = ">=3.9,<4"
@@ -27,14 +27,14 @@ classifiers = [
27
27
 
28
28
  dependencies = [
29
29
  "importlib-metadata>=4.0; python_version<='3.8'",
30
- "ansys-api-pyensight==0.4.0",
31
- "requests>=2.28.2",
30
+ "ansys-api-pyensight==0.4.1",
31
+ "requests>=2.28.2,<2.32",
32
32
  "docker>=6.1.0",
33
33
  "urllib3<2",
34
34
  "numpy>=1.21.0,<2",
35
35
  "Pillow>=9.3.0",
36
36
  "pypng>=0.0.20",
37
- "psutil>=5.9.2"
37
+ "psutil>=5.9.2",
38
38
  ]
39
39
 
40
40
  [project.optional-dependencies]
@@ -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,<2.32",
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,<2.32",
67
67
  "sphinxcontrib.jquery==4.1",
68
68
  "coverage-badge==1.1.0",
69
69
  "sphinxcontrib-openapi==0.8.1",
@@ -85,7 +85,9 @@ branch = true
85
85
  omit = [
86
86
  "*/locallauncher.py",
87
87
  "*/adr.py",
88
- "*/omniverse*.py"
88
+ "*/omniverse*.py",
89
+ "*/dsg_server.py",
90
+ "*/readers.py"
89
91
  ]
90
92
 
91
93
  [tool.coverage.report]
@@ -382,10 +382,21 @@ class RenderableDeepPixel(Renderable):
382
382
  html = fp.read()
383
383
  # copy some files from Nexus
384
384
  cmd = "import shutil, enve, ceiversion, os.path\n"
385
- for script in ["jquery-3.4.1.min.js", "geotiff.js", "geotiff_nexus.js", "bootstrap.min.js"]:
386
- name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
387
- name += f"'website', 'static', 'website', 'scripts', '{script}')"
385
+ base_name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
386
+ base_name += "'website', 'static', 'website', 'scripts', "
387
+ for script in ["geotiff.js", "geotiff_nexus.js", "bootstrap.min.js"]:
388
+ name = base_name + f"'{script}')"
388
389
  cmd += f'shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'
390
+ if int(self._session._cei_suffix) < 251:
391
+ jquery = "jquery-3.4.1.min.js"
392
+ else:
393
+ jquery = "jquery.min.js"
394
+ cmd = "import shutil, enve, ceiversion, os.path\n"
395
+ name = base_name + f"'{jquery}')"
396
+ cmd += "try:"
397
+ cmd += f' shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'
398
+ cmd += "except Exception:"
399
+ cmd += " pass"
389
400
  name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
390
401
  name += "'website', 'static', 'website', 'content', 'bootstrap.min.css')"
391
402
  cmd += f'shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'