Skip to content

Commit

Permalink
Merge pull request #264 from Kaustuv942/fixLint
Browse files Browse the repository at this point in the history
Fixing ESLint errors from PR #248
  • Loading branch information
firuza authored Jun 9, 2021
2 parents 7ce33fe + 6ba876b commit f1d9deb
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 381 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const ComponentParameters = {
MODEL: '',
VALUE_UNIT: 'H',
IC: '0',
DTEMP:'27',
DTEMP: '27'
},

M: {
Expand All @@ -215,7 +215,7 @@ const ComponentParameters = {
EXTRA_EXPRESSION: '',
MULTIPLICITY_PARAMETER: '1',
MODEL: '.model mymosfet NMOS',
DTEMP:'27',
DTEMP: '27'
},

Q: {
Expand All @@ -225,9 +225,9 @@ const ComponentParameters = {
N2: '',
N3: '',
EXTRA_EXPRESSION: '',
MODEL: '.model mybjt PNP',
MODEL: '.model mybjt PNP',
MULTIPLICITY_PARAMETER: '1',
DTEMP:'27',
DTEMP: '27'
},

V: {
Expand Down Expand Up @@ -342,10 +342,10 @@ const ComponentParameters = {
EXTRA_EXPRESSION: '',
MODEL: '',
VALUE_UNIT: 'Ohm',
SHEET_RESISTANCE:'0',
FIRST_ORDER_TEMPERATURE_COEFF:'0',
SECOND_ORDER_TEMPERATURE_COEFF:'0',
PARAMETER_MEASUREMENT_TEMPERATURE:'27',
SHEET_RESISTANCE: '0',
FIRST_ORDER_TEMPERATURE_COEFF: '0',
SECOND_ORDER_TEMPERATURE_COEFF: '0',
PARAMETER_MEASUREMENT_TEMPERATURE: '27'
},

Z: {
Expand Down Expand Up @@ -389,8 +389,7 @@ const ComponentParameters = {
MODEL: '',
VALUE: '1',
EXTRA_EXPRESSION: ''
},

}

}

Expand Down
19 changes: 9 additions & 10 deletions eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,17 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) {

const handleClickOpen = () => {
var compNetlist = GenerateNetList()
var printToPlotControlBlock =""
var printToPlotControlBlock = ''
var ctrlblk = netfile.controlBlock.split('\n')
for (var line = 0; line < ctrlblk.length; line++) {
if (ctrlblk[line].includes('print')) {
printToPlotControlBlock += 'plot '
var cleanCode= ctrlblk[line].split('print ')[1]
cleanCode = cleanCode.split('>')[0]
printToPlotControlBlock += cleanCode + '\n'
}
else{
printToPlotControlBlock += ctrlblk[line] + '\n'
}
if (ctrlblk[line].includes('print')) {
printToPlotControlBlock += 'plot '
var cleanCode = ctrlblk[line].split('print ')[1]
cleanCode = cleanCode.split('>')[0]
printToPlotControlBlock += cleanCode + '\n'
} else {
printToPlotControlBlock += ctrlblk[line] + '\n'
}
}
var netlist = netfile.title + '\n\n' +
compNetlist.models + '\n' +
Expand Down
Loading

0 comments on commit f1d9deb

Please sign in to comment.