Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing ESLint errors from PR #248 #264

Merged
merged 1 commit into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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