From 2a1594a4c95f4090ca67cb3d49d54e2460df0a4c Mon Sep 17 00:00:00 2001 From: natsfr Date: Fri, 24 Mar 2017 17:39:33 +0100 Subject: [PATCH] Adding line to ignore noise parameter from infineon file --- Amplifier_BJT/auto_match.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Amplifier_BJT/auto_match.py b/Amplifier_BJT/auto_match.py index 025abec..a960ea9 100755 --- a/Amplifier_BJT/auto_match.py +++ b/Amplifier_BJT/auto_match.py @@ -41,7 +41,9 @@ class TransistorBlock: # Apparently the nominal Impedance is splitted: R 50 self.spformats["R"] = sfor[5] elif not line.startswith("!"): - tmpspars.append(line.strip().split()) + tmpline = line.strip().split() + if len(tmpline) >= 9: #We skip short line often used for noise parameter + tmpspars.append(tmpline) # Parse options: we mainly need to know unit and complex format # http://cp.literature.agilent.com/litweb/pdf/genesys200801/sim/linear_sim/sparams/touchstone_file_format.htms -- GitLab