From 73ce59aa84fcb7384abd261fb5445405dec7b0c3 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 27 Oct 2024 10:43:41 +0100 Subject: [PATCH] Add a comment --- src/frontend/outitf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 4e3dfe2a1..35bb0d1ca 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -969,6 +969,9 @@ guess_type(const char *name, char* pltypename) type = SV_RES; else if (cieq(name, "i-sweep")) type = SV_CURRENT; + else if (strstr(name, ":power\0")) + type = SV_POWER; + /* Special treatment if plot has been generated by S-parameter simulation */ else if (pltypename && ciprefix("sp", pltypename) && ciprefix("S_", name)) type = SV_SPARAM; else if (pltypename && ciprefix("sp", pltypename) && ciprefix("Y_", name)) @@ -985,8 +988,6 @@ guess_type(const char *name, char* pltypename) type = SV_NOTYPE; else if (pltypename && ciprefix("sp", pltypename) && ciprefix("Cy_", name)) type = SV_CURRENT; - else if (strstr(name, ":power\0")) - type = SV_POWER; /* current source ISRC parameters for current */ else if (substring("@i", name) && (substring("[c]", name) || substring("[dc]", name) || substring("[current]", name))) type = SV_CURRENT;