From 03c61330512ccbac9663dbc20d09bda0a5151dec Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 11 Jun 2019 19:48:44 +0530 Subject: type before attr, whitespace after .py --- src/kicadtoNgspice/Convert.py | 4 ++-- src/kicadtoNgspice/Model.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kicadtoNgspice') diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 725a6909..76b6ba57 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -443,8 +443,8 @@ class Convert: default = 0 # Cheking if value is iterable.its for vector if ( - hasattr(value, '__iter__') and - type(value) is not str + type(value) is not str and + hasattr(value, '__iter__') ): addmodelLine += param + "=[" for lineVar in value: diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py index dc94d9de..eb1793f9 100644 --- a/src/kicadtoNgspice/Model.py +++ b/src/kicadtoNgspice/Model.py @@ -62,7 +62,7 @@ class Model(QtGui.QWidget): # print "Key : ",key # print "Value : ",value # Check if value is iterable - if hasattr(value, '__iter__') and type(value) is not str: + if type(value) is not str and hasattr(value, '__iter__'): # For tag having vector value temp_tag = [] for item in value: -- cgit