Skip to content

Commit 1629271

Browse files
author
rodriguez-facundo
committed
extend casper to appbar
1 parent 1f4d4c8 commit 1629271

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def validateFunction(self, functionString):
439439

440440
def exportHLS(self, args):
441441
def convert2bool(string):
442-
return string.replace('true', 'True').replace('false', 'False')
442+
return string.replace('true', 'True').replace('false', 'False').replace('null', 'False')
443443

444444
def header(title, spacer='-'):
445445
return '\n# ' + title.upper() + ' ' + spacer*(77-len(title)) + '\n'
@@ -474,11 +474,11 @@ def header(title, spacer='-'):
474474
script.write(header('network configuration'))
475475
for attr, value in list(self.simConfig.__dict__.items()):
476476
if value!=getattr(specs.SimConfig(), attr):
477-
script.write('netParams.' + attr + ' = ')
477+
script.write('simConfig.' + attr + ' = ')
478478
script.write(convert2bool(json.dumps(value, indent=4))+'\n')
479479

480480
script.write(header('create simulate analyze network'))
481-
script.write('sim.createSimulateAnalyze(netParams=netParams, simConfig=simConfig)\n')
481+
script.write('# sim.createSimulateAnalyze(netParams=netParams, simConfig=simConfig)\n')
482482

483483
script.write(header('end script', spacer='='))
484484

0 commit comments

Comments
 (0)