Skip to content

Commit

Permalink
feat: stripping spaces from the command output
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Dec 5, 2024
1 parent b763e2b commit 711ef9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def _get_parameter_array(self, parm_name, shape):
f"that could not be read using '{format_str}'."
)

arr_flat = np.fromstring(output, sep="\n").reshape(shape)
arr_flat = np.fromstring(output.strip(), sep="\n").reshape(shape)

if len(shape) == 3:
if shape[2] == 1:
Expand Down

0 comments on commit 711ef9c

Please sign in to comment.