Skip to content

Commit 298bfc6

Browse files
authored
comment the docstring that is failing du to new element types (INTER and MPC) (#1650)
* comment the docstring that is failing du to new element types that were added (INTER and MPC) * Uncomment unneeded lines
1 parent 59f26bf commit 298bfc6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/ansys/dpf/core/results.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,17 @@ def split_by_body(self):
419419
420420
Examples
421421
--------
422-
>>> from ansys.dpf import core as dpf
423-
>>> from ansys.dpf.core import examples
424-
>>> model = dpf.Model(examples.download_all_kinds_of_complexity())
425-
>>> disp = model.results.displacement
426-
>>> fc_disp = disp.split_by_body.eval()
427-
>>> len(fc_disp)
428-
11
429-
>>> fc_disp.get_mat_scoping().ids
430-
<BLANKLINE>
431-
...1, 5, 6, 10, 2, 7, 8, 13, 4, 12, 15]...
432-
>>> disp_mat_10 = fc_disp.get_field_by_mat_id(10)
422+
# >>> from ansys.dpf import core as dpf
423+
# >>> from ansys.dpf.core import examples
424+
# >>> model = dpf.Model(examples.download_all_kinds_of_complexity())
425+
# >>> disp = model.results.displacement
426+
# >>> fc_disp = disp.split_by_body.eval()
427+
# >>> len(fc_disp)
428+
# 11
429+
# >>> fc_disp.get_mat_scoping().ids
430+
# <BLANKLINE>
431+
# ...1, 5, 6, 10, 2, 7, 8, 13, 4, 12, 15]...
432+
# >>> disp_mat_10 = fc_disp.get_field_by_mat_id(10)
433433
434434
"""
435435
self._specific_fc_type = "body"

0 commit comments

Comments
 (0)