Skip to content

Commit 1748e15

Browse files
authored
Merge pull request #676 from MetaCell/feature/netpyne-102
Feature/netpyne 102
2 parents 5350849 + c4109cd commit 1748e15

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ multimethod==1.3
4545
nbconvert==5.6.1
4646
nbformat==5.0.6
4747
netpyne==1.0.3.1
48-
NEURON==8.0.2
48+
NEURON==8.2.2
4949
numpy==1.18.5
5050
oauthlib==3.0.1
5151
optuna==2.10.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
'sentry_sdk>=1.5.2',
4949
'dacite>=1.6.0',
5050
'h5py>=3.7.0',
51-
'jsonpickle>=2.1.0'
51+
'jsonpickle>=2.1.0',
5252
],
5353
)

tests/backend/netpyne_model_importer_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def setUpClass(cls):
4141
except:
4242
logging.error("Error loading mechanisms", exc_info=True)
4343

44-
@unittest.skip("Neuroml model import issue")
44+
# @unittest.skip("Neuroml model import issue")
4545
def test_netpyne_exported_model_1(self):
4646
print("------------------------------------")
4747
print("Netpyne exported model sim run")
@@ -68,7 +68,7 @@ def test_netpyne_exported_model_1(self):
6868
params["modFolder"] = ""
6969
params["modPath"] = ""
7070
params["tab"] = "simulate"
71-
71+
7272
print(params['jsonModelFolder'])
7373

7474
netpyne = NetPyNEGeppetto()

tests/backend/netpyne_model_interpreter_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,31 @@ def test_getGeppettoModelSimpleNetwork(self):
8080

8181
self.getGeppettoModel(netParams, simConfig)
8282

83-
@unittest.skip("Neuron restart kernel issue")
83+
# @unittest.skip("Neuron restart kernel issue")
8484
def test_tut1(self):
8585
print("------------------------------------")
8686
print("Tutorial 1 Instantiation:")
8787
print("------------------------------------")
8888
from gui_tut1 import netParams, simConfig
8989
self.getGeppettoModel(netParams, simConfig)
9090

91-
@unittest.skip("Neuron restart kernel issue")
91+
# @unittest.skip("Neuron restart kernel issue")
9292
def test_tut2(self):
9393
print("------------------------------------")
9494
print("Tutorial 2 Instantiation:")
9595
print("------------------------------------")
9696
from gui_tut2 import netParams, simConfig
9797
self.getGeppettoModel(netParams, simConfig)
9898

99-
@unittest.skip("Neuron restart kernel issue")
99+
# @unittest.skip("Neuron restart kernel issue")
100100
def test_tut3(self):
101101
print("------------------------------------")
102102
print("Tutorial 3 Instantiation:")
103103
print("------------------------------------")
104104
from gui_tut3 import netParams, simConfig
105105
self.getGeppettoModel(netParams, simConfig)
106106

107-
@unittest.skip("Neuron restart kernel issue")
107+
# @unittest.skip("Neuron restart kernel issue")
108108
def test_tut4(self):
109109
print("------------------------------------")
110110
print("Tutorial 3 ip3high Instantiation:")
@@ -113,15 +113,15 @@ def test_tut4(self):
113113
from gui_tut3_ip3high import netParams, simConfig
114114
self.getGeppettoModel(netParams, simConfig)
115115

116-
@unittest.skip("Neuron restart kernel issue")
116+
# @unittest.skip("Neuron restart kernel issue")
117117
def test_tut5(self):
118118
print("------------------------------------")
119119
print("Tutorial 3 norxd Instantiation:")
120120
print("------------------------------------")
121121
from gui_tut3_norxd import netParams, simConfig
122122
self.getGeppettoModel(netParams, simConfig)
123123

124-
@unittest.skip("Neuron restart kernel issue")
124+
# @unittest.skip("Neuron restart kernel issue")
125125
def test_tut6(self):
126126
print("------------------------------------")
127127
print("Tutorial 3 osc Instantiation:")

utilities/install.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def clone(repository, folder=None, branch_or_tag=None, cwdp=DEPS_DIR, recursive=
6060

6161
if exit_code != 0:
6262
raise SystemExit(f'Failed to clone repository {repository} into {folder}')
63-
63+
6464
if not os.path.exists(os.path.join(cwdp, folder, '.git')):
6565
print(f'Skipping checkout of {repository}: folder is not a git repository')
6666
return
@@ -138,8 +138,8 @@ def main(netpyne_branch, workspace_branch, geppetto_branch=None, skipNpm=False,
138138
execute(cmd=['npm', 'ci'], cwd=os.path.join(DEPS_DIR, META_DIR, JUPYTER_DIR, 'js'))
139139
execute(cmd=['npm', 'run', 'build-dev' if development else 'build'],
140140
cwd=os.path.join(DEPS_DIR, META_DIR, JUPYTER_DIR, 'js'))
141-
142-
execute(cmd=['jupyter', 'nbextension', 'uninstall', 'jupyter_geppetto'])
141+
142+
execute(cmd=['jupyter', 'nbextension', 'uninstall', 'jupyter_geppetto'])
143143
execute(cmd=['jupyter', 'nbextension', 'install', '--py', '--symlink', '--sys-prefix', 'jupyter_geppetto'])
144144
execute(cmd=['jupyter', 'nbextension', 'enable', '--py', '--sys-prefix', 'jupyter_geppetto'])
145145
execute(cmd=['jupyter', 'nbextension', 'enable', '--py', '--sys-prefix', 'widgetsnbextension'])
@@ -190,7 +190,7 @@ def main(netpyne_branch, workspace_branch, geppetto_branch=None, skipNpm=False,
190190
cprint("Installing test libraries")
191191
execute(cmd=['pip', 'install', '-r', 'requirements-test.txt'], cwd=ROOT_DIR)
192192
cprint("Testing NetPyNE")
193-
# execute("python -m unittest netpyne_ui.tests.netpyne_model_interpreter_test".split())
193+
execute("python -m pytest tests".split())
194194

195195
cprint("Installing client packages")
196196
if not skipNpm:

0 commit comments

Comments
 (0)