annotate_op: if no OP and no DC dataset found load TRAN dataset and use 1st tran point in schematic annotation

This commit is contained in:
stefan schippers 2026-02-22 12:35:04 +01:00
parent b1bfafe329
commit 26b67ba137
1 changed files with 3 additions and 0 deletions

View File

@ -373,6 +373,9 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
/* Xyce uses a 1-point DC transfer characteristic for operating point (OP) data */
res = extra_rawfile(1, f, "dc", -1.0, -1.0);
}
if(res != 1) { /* try to load a tran analysis (display 1stpoint as OP data in schematic) */
res = extra_rawfile(1, f, "tran", -1.0, -1.0);
}
if(res == 1) {
if(level >= 0) {
xctx->raw->level = level;