Skip to content

Commit

Permalink
fix: components typo
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 27, 2024
1 parent 6f2a1d6 commit d1b0432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/source/user_guide/components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Set a component without specifying the type, by default it is ``NODE``:
>>> mapdl.components["mycomp4"] = (1, 2, 3)
/Users/german.ayuso/pymapdl/src/ansys/mapdl/core/component.py:347: UserWarning: Assuming a KP selection.
It is recommended you use the following notation to avoid this warning:
> mapdl.components['mycomp4'] = 'KP' (1, 2, 3)
> mapdl.components['mycomp4'] = 'KP', (1, 2, 3)
Alternatively, you disable this warning using:
> mapdl.components.default_entity_warning=False
warnings.warn(
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/mapdl/core/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
warning_entity = (
"Assuming a {default_entity} selection.\n"
"It is recommended you use the following notation to avoid this warning:\n"
">>> mapdl.components['{key}'] = '{default_entity}' {value}\n"
">>> mapdl.components['{key}'] = '{default_entity}', {value}\n"
"Alternatively, you disable this warning using:\n"
">>> mapdl.components.default_entity_warning=False"
)
Expand Down Expand Up @@ -204,7 +204,7 @@ class ComponentManager:
>>> mapdl.components["mycomp4"] = (1, 2, 3)
/Users/german.ayuso/pymapdl/src/ansys/mapdl/core/component.py:282: UserWarning: Assuming a NODES selection.
It is recommended you use the following notation to avoid this warning:
\>\>\> mapdl.components['mycomp3'] = 'NODES' (1, 2, 3)
\>\>\> mapdl.components['mycomp3'] = 'NODES', (1, 2, 3)
Alternatively, you disable this warning using:
> mapdl.components.default_entity_warning=False
warnings.warn(
Expand Down

0 comments on commit d1b0432

Please sign in to comment.