From 1c0fb6a1d355b5cdd8005387cbf639d5948ff783 Mon Sep 17 00:00:00 2001 From: Chai Fillerup Date: Fri, 29 Aug 2025 16:58:33 +0200 Subject: [PATCH 1/3] Initial fix in interp_star_status function --- src/ansys/mapdl/core/parameters.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/parameters.py b/src/ansys/mapdl/core/parameters.py index 5995b48f966..c3f27ac6588 100644 --- a/src/ansys/mapdl/core/parameters.py +++ b/src/ansys/mapdl/core/parameters.py @@ -834,7 +834,7 @@ def interp_star_status(status): value = float(items[1]) else: value = items[1] - parameters[name] = {"type": items[2], "value": value} + parameters[name] = {"type": items[2], "value": valeu} elif len(items) == 4: # it is an array or string array if is_array_listing(status): @@ -863,6 +863,11 @@ def interp_star_status(status): "type": items[1], "workspace": int(items[4]), } + elif items[1] in ["C_FullFile"]: + print("I GOT HERE!") + parameters[name] = { + "type": items[1] + } else: shape = (int(items[2]), int(items[3]), int(items[4])) parameters[name] = {"type": items[1], "shape": shape} From 028f770f629373c284a576bda06b497fe3a8399a Mon Sep 17 00:00:00 2001 From: ChaiF1 Date: Fri, 29 Aug 2025 17:14:20 +0200 Subject: [PATCH 2/3] Removed junk lines and fixed a typo --- src/ansys/mapdl/core/parameters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansys/mapdl/core/parameters.py b/src/ansys/mapdl/core/parameters.py index c3f27ac6588..fb7ba9c2835 100644 --- a/src/ansys/mapdl/core/parameters.py +++ b/src/ansys/mapdl/core/parameters.py @@ -834,7 +834,7 @@ def interp_star_status(status): value = float(items[1]) else: value = items[1] - parameters[name] = {"type": items[2], "value": valeu} + parameters[name] = {"type": items[2], "value": value} elif len(items) == 4: # it is an array or string array if is_array_listing(status): @@ -864,7 +864,6 @@ def interp_star_status(status): "workspace": int(items[4]), } elif items[1] in ["C_FullFile"]: - print("I GOT HERE!") parameters[name] = { "type": items[1] } From 016cbc3a94f344978b104c82933bc660b802593f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Aug 2025 15:17:23 +0000 Subject: [PATCH 3/3] ci: auto fixes from pre-commit.com hooks. for more information, see https://pre-commit.ci --- src/ansys/mapdl/core/parameters.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ansys/mapdl/core/parameters.py b/src/ansys/mapdl/core/parameters.py index fb7ba9c2835..fdcd36ae34c 100644 --- a/src/ansys/mapdl/core/parameters.py +++ b/src/ansys/mapdl/core/parameters.py @@ -864,9 +864,7 @@ def interp_star_status(status): "workspace": int(items[4]), } elif items[1] in ["C_FullFile"]: - parameters[name] = { - "type": items[1] - } + parameters[name] = {"type": items[1]} else: shape = (int(items[2]), int(items[3]), int(items[4])) parameters[name] = {"type": items[1], "shape": shape}