summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica
diff options
context:
space:
mode:
authorrahulp132020-04-20 17:38:03 +0530
committerrahulp132020-04-20 17:38:03 +0530
commite8048c5bd325c4f05fa69ff6638259304905d74f (patch)
tree4b406d498da23e00bb1d86c8e9b4ccfa4841419d /src/ngspicetoModelica
parent5c7db6b7cd0c6069f121e1684f336feb42b40c37 (diff)
downloadeSim-e8048c5bd325c4f05fa69ff6638259304905d74f.tar.gz
eSim-e8048c5bd325c4f05fa69ff6638259304905d74f.tar.bz2
eSim-e8048c5bd325c4f05fa69ff6638259304905d74f.zip
pycodestyle compliant - modelica
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r--src/ngspicetoModelica/ModelicaUI.py2
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ngspicetoModelica/ModelicaUI.py b/src/ngspicetoModelica/ModelicaUI.py
index f8889cce..cd5cf03b 100644
--- a/src/ngspicetoModelica/ModelicaUI.py
+++ b/src/ngspicetoModelica/ModelicaUI.py
@@ -163,7 +163,7 @@ class OpenModelicaEditor(QtGui.QWidget):
newfile = os.path.basename(self.ngspiceNetlist)
newfilename = os.path.join(fileDir, newfile.split('.')[0])
outfile = newfilename + ".mo"
-
+
out = open(outfile, "w")
out.writelines('model ' + os.path.basename(newfilename))
out.writelines('\n')
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 75bb8a52..83df42a4 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -407,7 +407,8 @@ class NgMoConverter:
if deviceName == 'd':
if len(words) > 3:
start = "\nparameter "
- start += self.mappingData["Devices"][deviceName]["modelcard"]
+ start += \
+ self.mappingData["Devices"][deviceName]["modelcard"]
stat = start + " card" + words[0] + "("
tempstatList = []
userDeviceParamList = []