Skip to content

Commit 693bf76

Browse files
authored
Merge pull request #87 from MetaCell/test-casper-appbar
Test casper appbar
2 parents 4ee1596 + 3899680 commit 693bf76

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile_dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpy
6060
WORKDIR /home/jovyan
6161
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
6262
WORKDIR /home/jovyan/netpyne_workspace
63+
RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui netpyne_ui
6364
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui"

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)