@@ -36,6 +36,7 @@ def setUpClass(cls):
3636 logging .error ("Error loading mechanisms" , exc_info = True )
3737
3838 def test_dict_import_1 (self ):
39+ assert 0
3940 print ("------------------------------------" )
4041 print ("Dictionary transform importModel:" )
4142 print ("------------------------------------" )
@@ -60,6 +61,40 @@ def test_dict_import_1(self):
6061 netpyne = NetPyNEGeppetto ()
6162 netpyne .importModel (netpyne_info )
6263
64+ def test_netpyne_exported_model_1 (self ):
65+ print ("------------------------------------" )
66+ print ("Netpyne export model" )
67+ print ("------------------------------------" )
68+
69+ params = {}
70+
71+ HERE = os .path .dirname (os .path .realpath (__file__ ))
72+ ROOT = os .path .dirname (HERE )
73+
74+ params ["areModFieldsRequired" ] = False
75+ params ["compileMod" ] = False
76+ params ["exploreOnlyDirs" ] = False
77+ params ["explorerDialogOpen" ] = False
78+ params ["explorerParameter" ] = ""
79+ params ["freezeInstance" ] = True
80+ params ["freezeSimulation" ] = True
81+ params ["jsonModelFolder" ] = ROOT + "/workspace/HHCellNetwork.txt_data.json"
82+ params ["jsonPath" ] = ""
83+ params ["loadNet" ] = True
84+ params ["loadNetParams" ] = True
85+ params ["loadSimCfg" ] = True
86+ params ["loadSimData" ] = True
87+ params ["modFolder" ] = ""
88+ params ["modPath" ] = ""
89+ params ["tab" ] = "simulate"
90+
91+ netpyne = NetPyNEGeppetto ()
92+
93+ netpyne .loadModel (params )
94+ netpyne .instantiateNetPyNEModel ()
95+
96+ return False
97+
6398if __name__ == '__main__' :
6499 try :
65100 unittest .main ()
0 commit comments