Skip to content

Commit 2dea3bc

Browse files
pre-commit-ci[bot]germa89
authored andcommitted
ci: auto fixes from pre-commit.com hooks.
for more information, see https://pre-commit.ci
1 parent 35bcf88 commit 2dea3bc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ansys/mapdl/core/plugin.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def _mapdl(self):
6161
"""Return the weakly referenced instance of mapdl."""
6262
return self._mapdl_weakref()
6363

64-
6564
def load(self, plugin_name: str, feature: str = "CMD") -> str:
6665
"""
6766
Loads a plugin into MAPDL.
@@ -83,14 +82,15 @@ def load(self, plugin_name: str, feature: str = "CMD") -> str:
8382
PluginLoadError
8483
If the plugin fails to load.
8584
"""
86-
85+
8786
command = f"*PLUG,LOAD,{plugin_name},{feature}"
8887
response = self._mapdl.run(command)
8988
if "error" in response.lower():
90-
raise PluginLoadError(f"Failed to load plugin '{plugin_name}' with feature '{feature}'.")
89+
raise PluginLoadError(
90+
f"Failed to load plugin '{plugin_name}' with feature '{feature}'."
91+
)
9192
return f"Plugin '{plugin_name}' with feature '{feature}' loaded successfully."
9293

93-
9494
def unload(self, plugin_name: str) -> str:
9595
"""
9696
Unloads a plugin from MAPDL.
@@ -117,7 +117,6 @@ def unload(self, plugin_name: str) -> str:
117117
raise PluginUnloadError(f"Failed to unload plugin '{plugin_name}'.")
118118
return f"Plugin '{plugin_name}' unloaded successfully."
119119

120-
121120
def list(self) -> list:
122121
"""
123122
Lists all currently loaded plugins in MAPDL.

0 commit comments

Comments
 (0)