diff options
author | nilshah98 | 2019-06-07 18:54:35 +0530 |
---|---|---|
committer | nilshah98 | 2019-06-13 12:15:50 +0530 |
commit | a0f738ba15264b69d9d51755569408bdd8e383b5 (patch) | |
tree | 3d472af32b57508a16dd7f81e5c54f8ccda1bf47 /src/kicadtoNgspice/Convert.py | |
parent | cc9bb8d5d56e64b6e6b6ff2db988ff200b9f720d (diff) | |
download | eSim-a0f738ba15264b69d9d51755569408bdd8e383b5.tar.gz eSim-a0f738ba15264b69d9d51755569408bdd8e383b5.tar.bz2 eSim-a0f738ba15264b69d9d51755569408bdd8e383b5.zip |
pep8 fixes and list models bug fixed
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index 38234fed..51daa1de 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -39,7 +39,7 @@ class Convert: str(self.entry_var[self.start].text())) > 0 else '0' va_val = str( self.entry_var[self.start + 1].text() - ) if len( + ) if len( str(self.entry_var[self.start + 1].text())) \ > 0 else '0' freq_val = str(self.entry_var[self.start + 2].text()) \ @@ -440,7 +440,10 @@ class Convert: param = key default = 0 # Cheking if value is iterable.its for vector - if hasattr(value, '__iter__'): + if ( + hasattr(value, '__iter__') + and type(value) is not str + ): addmodelLine += param + "=[" for lineVar in value: if str( |