Skip to content

Commit f0cd422

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 366ea43 + 7ad3476 commit f0cd422

File tree

13 files changed

+1520
-89
lines changed

13 files changed

+1520
-89
lines changed

doc/source/api/common_types.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. _ref_common_types:
2+
3+
Common Types
4+
============
5+
.. automodule:: ansys.sherlock.core.types.common_types
6+
.. currentmodule:: ansys.sherlock.core.types.common_types
7+
8+
Constants
9+
---------
10+
.. autoclass:: ListUnitsRequestUnitType
11+
:members:
12+
.. autoclass:: TableDelimiter
13+
:members:

doc/source/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Use the search feature or click links to view API documentation.
1212

1313
analysis
1414
common
15+
common_types
1516
launcher
1617
layer
1718
lifecycle

doc/source/api/project_types.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Constants
2121
---------
2222
.. autoclass:: LegendOrientation
2323
:members:
24+
.. autoclass:: StrainMapsFileType
25+
:members:
26+
.. autoclass:: StrainMapLegendOrientation
27+
:members:
2428
.. autoclass:: ThermalBoardSide
2529
:members:
2630
.. autoclass:: ThermalMapsFileType

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ classifiers = [
2424
]
2525

2626
dependencies = [
27-
"ansys-api-sherlock==0.1.24",
27+
"ansys-api-sherlock==0.1.27",
2828
"grpcio>=1.17",
2929
"importlib-metadata>=4.0,<5; python_version<='3.8'",
3030
"protobuf~=3.20",
3131
]
3232

3333
[project.optional-dependencies]
3434
tests = [
35-
"grpcio==1.62.0",
35+
"grpcio==1.62.1",
3636
"protobuf==3.20.3",
37-
"pytest==8.1.0",
38-
"pytest-cov==4.1.0",
37+
"pytest==8.1.1",
38+
"pytest-cov==5.0.0",
3939
]
4040
doc = [
41-
"ansys-sphinx-theme==0.14.0",
42-
"numpydoc==1.6.0",
41+
"ansys-sphinx-theme==0.15.2",
42+
"numpydoc==1.7.0",
4343
"Sphinx==6.2.1", # BLOCKED BY sphinx-design - Cannot upgrade to Sphinx 7 for now
4444
"sphinx-copybutton==0.5.2",
4545
"sphinx_design==0.5.0",

src/ansys/sherlock/core/errors.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,18 @@ def __str__(self):
637637
return f"Model service error: {self.message}"
638638

639639

640+
class SherlockExportAEDBError(Exception):
641+
"""Contains the error raised when an Electronics Desktop model cannot be exported."""
642+
643+
def __init__(self, message):
644+
"""Initialize error message."""
645+
self.message = message
646+
647+
def __str__(self):
648+
"""Format error message."""
649+
return f"Export AEDB error: {self.message}"
650+
651+
640652
class SherlockInvalidLoadDirectionError(Exception):
641653
"""Contains the error raised when the load direction string is invalid."""
642654

@@ -1001,3 +1013,15 @@ def str_itr(self):
10011013

10021014
assert self.error_array is None
10031015
return [f"Update parts list properties error: {self.message}"]
1016+
1017+
1018+
class SherlockExportNetListError(Exception):
1019+
"""Contains the error raised when a net list cannot be exported."""
1020+
1021+
def __init__(self, message):
1022+
"""Initialize error message."""
1023+
self.message = message
1024+
1025+
def __str__(self):
1026+
"""Format error message."""
1027+
return f"Export net list error: {self.message}"

0 commit comments

Comments
 (0)