Skip to content

Commit

Permalink
Pulled updates from main branch.
Browse files Browse the repository at this point in the history
Updated list_layers and export_layer_image in layer.py to raise SherlockNoGrpcConnectionException() instead of returning with an error message.
  • Loading branch information
ansmedson-ext committed Dec 6, 2024
2 parents 442205e + df5a1de commit 84a4f41
Show file tree
Hide file tree
Showing 33 changed files with 1,816 additions and 1,609 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#

# You can set these variables from the command line.
SPHINXOPTS = -j auto -W --color
SPHINXOPTS = -j auto -W --keep-going
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = _build
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/454.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: add type hints
23 changes: 23 additions & 0 deletions doc/source/api/analysis_types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.. _ref_analysis_types:

Analysis Types
==============
.. automodule:: ansys.sherlock.core.types.analysis_types
.. currentmodule:: ansys.sherlock.core.types.analysis_types

Constants
---------
.. autoclass:: ElementOrder
:members:
.. autoclass:: ModelSource
:members:
.. autoclass:: RunAnalysisRequestAnalysisType
:members:
.. autoclass:: RunStrainMapAnalysisRequestAnalysisType
:members:
.. autoclass:: UpdatePcbModelingPropsRequestAnalysisType
:members:
.. autoclass:: UpdatePcbModelingPropsRequestPcbMaterialModel
:members:
.. autoclass:: UpdatePcbModelingPropsRequestPcbModelType
:members:
2 changes: 2 additions & 0 deletions doc/source/api/common_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ Constants
:members:
.. autoclass:: TableDelimiter
:members:
.. autoclass:: Measurement
:members:
7 changes: 5 additions & 2 deletions doc/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ Use the search feature or click links to view API documentation.
:hidden:

analysis
analysis_types
common
common_types
launcher
layer
layer_types
lifecycle
model
parts
layer_types
parts_types
project
project_types
Expand All @@ -27,13 +28,15 @@ Use the search feature or click links to view API documentation.
.. autosummary::

ansys.sherlock.core.analysis
ansys.sherlock.core.types.analysis_types
ansys.sherlock.core.common
ansys.sherlock.core.types.common_types
ansys.sherlock.core.launcher
ansys.sherlock.core.layer
ansys.sherlock.core.types.layer_types
ansys.sherlock.core.lifecycle
ansys.sherlock.core.model
ansys.sherlock.core.parts
ansys.sherlock.core.types.layer_types
ansys.sherlock.core.types.parts_types
ansys.sherlock.core.project
ansys.sherlock.core.types.project_types
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [

dependencies = [
"ansys-api-sherlock==0.1.34",
"grpcio>=1.17",
"grpcio>=1.17, <1.68.0",
"protobuf>=3.20",
"pydantic>=2.9.2",
]
Expand Down
Loading

0 comments on commit 84a4f41

Please sign in to comment.