Skip to content

Commit

Permalink
docs: Updated documentation in update potting region. (#477)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
anskhanson and pyansys-ci-bot authored Jan 15, 2025
1 parent 3a358f9 commit 6227ba1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/477.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs: Updated documentation in update potting region.
17 changes: 10 additions & 7 deletions src/ansys/sherlock/core/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def update_potting_region(
>>> from ansys.sherlock.core.types.layer_types import PottingRegion
>>> sherlock = launch_sherlock()
>>>
>>> update_request1 = PottingRegionUpdateData(
>>> update1 = PottingRegionUpdateData(
potting_region_id_to_update=potting_id,
potting_region=PottingRegionData(
cca_name=cca_name,
Expand All @@ -298,7 +298,7 @@ def update_potting_region(
)
)
)
>>> update_request2 = PottingRegionUpdateData(
>>> update2 = PottingRegionUpdateData(
potting_region_id_to_update=potting_id,
potting_region=PottingRegionData(
cca_name=cca_name,
Expand All @@ -314,11 +314,14 @@ def update_potting_region(
)
)
)
>>> potting_region_requests = [
update_request1,
update_request2
]
>>> return_codes = sherlock.layer.update_potting_region(request)
>>> example_request = UpdatePottingRegionRequest(
"project_name",
[
update1,
update2
]
)
>>> return_codes = sherlock.layer.update_potting_region(example_request)
"""
update_request = request._convert_to_grpc()

Expand Down

0 comments on commit 6227ba1

Please sign in to comment.