Add a comment

This commit is contained in:
Holger Vogt 2024-10-27 10:43:41 +01:00
parent ceec478091
commit 73ce59aa84
1 changed files with 3 additions and 2 deletions

View File

@ -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;