From a0661be86cefd064f55c078db8309860890f0da4 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Fri, 16 Oct 2020 22:47:27 +0200 Subject: [PATCH] "proc is_xschem_file" reports SYMBOL if file contains <=2 instances of symbols. Need to figure out a different, simple and reliable way to recognize symbols that contain a title and/or a "architecture" symbol. For the time being reverted to previous state. Thanks to JL for pointing out the issue --- src/xschem.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xschem.tcl b/src/xschem.tcl index e0772a16..fc486827 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -895,7 +895,7 @@ proc is_xschem_file {f} { } if { $score > 6 } { set ret 1} ;# Heuristic decision :-) if { $ret } { - if { $instances>2} { + if { $instances} { set ret SCHEMATIC } else { set ret SYMBOL