summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice
diff options
context:
space:
mode:
authorrahulp132020-02-21 12:39:52 +0530
committerrahulp132020-02-21 12:39:52 +0530
commit567e3b725fcc9d22e27cfd854a573d3e64deaff1 (patch)
treeabd4d995d5891a1196a7ca421b7d7b33cad75552 /src/kicadtoNgspice
parent982b49ef618222af80162aa98c07ab281dec1692 (diff)
downloadeSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.gz
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.bz2
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.zip
restructured code - pyinstaller
Diffstat (limited to 'src/kicadtoNgspice')
-rw-r--r--src/kicadtoNgspice/DeviceModel.py5
-rw-r--r--src/kicadtoNgspice/KicadtoNgspice.py4
-rw-r--r--src/kicadtoNgspice/Processing.py2
-rw-r--r--src/kicadtoNgspice/SubcircuitTab.py6
4 files changed, 8 insertions, 9 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index 41faa6f0..65e09753 100644
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -363,9 +363,8 @@ class DeviceModel(QtGui.QWidget):
self.libfile = str(
QtGui.QFileDialog.getOpenFileName(
- self,
- "Open Library Directory",
- "../deviceModelLibrary",
+ self, "Open Library Directory",
+ "library/deviceModelLibrary",
"*.lib"))
# Setting Library to Text Edit Line
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py
index cfc4f671..18701c43 100644
--- a/src/kicadtoNgspice/KicadtoNgspice.py
+++ b/src/kicadtoNgspice/KicadtoNgspice.py
@@ -114,7 +114,7 @@ class MainWindow(QtGui.QWidget):
"""
- Checking if any unknown model is used in schematic which is not
- recognized by NgSpice.
+ recognized by Ngspice.
- Also if the two model of same name is present under
modelParamXML directory
"""
@@ -233,7 +233,7 @@ class MainWindow(QtGui.QWidget):
- This function called when convert button clicked
- Extracting data from the objs created above
- Pushing this data to json, and dumping it finally
- - Written to a ..._Previous_Valuse.json file in the projDirectory
+ - Written to a ..._Previous_Values.json file in the projDirectory
- Finally, call createNetListFile, with the converted schematic
"""
global schematicInfo
diff --git a/src/kicadtoNgspice/Processing.py b/src/kicadtoNgspice/Processing.py
index 427f0823..67ffd3f5 100644
--- a/src/kicadtoNgspice/Processing.py
+++ b/src/kicadtoNgspice/Processing.py
@@ -8,7 +8,7 @@ class PrcocessNetlist:
- This class include all the function required for pre-proccessing of
netlist before converting to Ngspice Netlist.
"""
- modelxmlDIR = '../modelParamXML'
+ modelxmlDIR = 'library/modelParamXML'
def __init__(self):
pass
diff --git a/src/kicadtoNgspice/SubcircuitTab.py b/src/kicadtoNgspice/SubcircuitTab.py
index 08ad7332..35b876f0 100644
--- a/src/kicadtoNgspice/SubcircuitTab.py
+++ b/src/kicadtoNgspice/SubcircuitTab.py
@@ -141,9 +141,9 @@ class SubcircuitTab(QtGui.QWidget):
self.subfile = str(
QtGui.QFileDialog.getExistingDirectory(
- self,
- "Open Subcircuit",
- "../SubcircuitLibrary"))
+ self, "Open Subcircuit",
+ "library/SubcircuitLibrary")
+ )
self.reply = self.obj_validation.validateSub(
self.subfile, self.numPorts[self.widgetObjCount - 1])
if self.reply == "True":