From d1b043200107e1755ed37618d3237d2c35d204dd Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:03:25 +0000 Subject: [PATCH 1/2] fix: components typo --- doc/source/user_guide/components.rst | 2 +- src/ansys/mapdl/core/component.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/user_guide/components.rst b/doc/source/user_guide/components.rst index 3c606eb099..a83a599346 100644 --- a/doc/source/user_guide/components.rst +++ b/doc/source/user_guide/components.rst @@ -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( diff --git a/src/ansys/mapdl/core/component.py b/src/ansys/mapdl/core/component.py index d04fbcc392..21bc4765c0 100644 --- a/src/ansys/mapdl/core/component.py +++ b/src/ansys/mapdl/core/component.py @@ -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" ) @@ -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( From f5aea7763db997b2c9ab3bcbb4c56f00d15ef616 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:12:11 +0000 Subject: [PATCH 2/2] chore: adding changelog file 3582.fixed.md [dependabot-skip] --- doc/changelog.d/3582.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3582.fixed.md diff --git a/doc/changelog.d/3582.fixed.md b/doc/changelog.d/3582.fixed.md new file mode 100644 index 0000000000..d6c82a7222 --- /dev/null +++ b/doc/changelog.d/3582.fixed.md @@ -0,0 +1 @@ +fix: components typo \ No newline at end of file