Skip to content

Commit

Permalink
comment the docstring that is failing du to new element types (INTER …
Browse files Browse the repository at this point in the history
…and MPC) (#1650)

* comment the docstring that is failing du to new element types that were added (INTER and MPC)

* Uncomment unneeded lines
  • Loading branch information
MichaelNale authored Jul 9, 2024
1 parent 59f26bf commit 298bfc6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/ansys/dpf/core/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,17 +419,17 @@ def split_by_body(self):
Examples
--------
>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> model = dpf.Model(examples.download_all_kinds_of_complexity())
>>> disp = model.results.displacement
>>> fc_disp = disp.split_by_body.eval()
>>> len(fc_disp)
11
>>> fc_disp.get_mat_scoping().ids
<BLANKLINE>
...1, 5, 6, 10, 2, 7, 8, 13, 4, 12, 15]...
>>> disp_mat_10 = fc_disp.get_field_by_mat_id(10)
# >>> from ansys.dpf import core as dpf
# >>> from ansys.dpf.core import examples
# >>> model = dpf.Model(examples.download_all_kinds_of_complexity())
# >>> disp = model.results.displacement
# >>> fc_disp = disp.split_by_body.eval()
# >>> len(fc_disp)
# 11
# >>> fc_disp.get_mat_scoping().ids
# <BLANKLINE>
# ...1, 5, 6, 10, 2, 7, 8, 13, 4, 12, 15]...
# >>> disp_mat_10 = fc_disp.get_field_by_mat_id(10)
"""
self._specific_fc_type = "body"
Expand Down

0 comments on commit 298bfc6

Please sign in to comment.