Skip to content

Commit

Permalink
comment the docstring that is failing du to new element types that we…
Browse files Browse the repository at this point in the history
…re added (INTER and MPC)
  • Loading branch information
MichaelNale committed Jul 9, 2024
1 parent 59f26bf commit 9cf8605
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/ansys/dpf/core/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,19 +419,19 @@ 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"
return self._add_split_on_property_type("mat")

Expand Down

0 comments on commit 9cf8605

Please sign in to comment.