Skip to content

Commit 0429cfc

Browse files
committed
#125 fixed model generation with new pygeppetto
1 parent eedf3fe commit 0429cfc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def simulateNetPyNEModelInGeppetto(self, args):
9898
logging.debug('Running single thread simulation')
9999
netpyne_model = self.simulateNetPyNEModel()
100100

101-
return json.loads(GeppettoModelSerializer().serialize(self.geppetto_model))
101+
return json.loads(GeppettoModelSerializer.serialize(self.geppetto_model))
102102
except:
103103
return utils.getJSONError("Error while simulating the NetPyNE model", sys.exc_info())
104104

netpyne_ui/netpyne_model_interpreter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def getGeppettoModel(self, netpyne_model):
1818

1919
# We create a GeppettoModel instance and we set a name a assign a lib
2020
geppetto_model = self.factory.createGeppettoModel('NetPyNEModel')
21+
self.factory.geppetto_common_library = geppetto_model.libraries[0]
2122
netpyne_geppetto_library = pygeppetto.GeppettoLibrary(
2223
name='netpynelib')
2324
geppetto_model.libraries.append(netpyne_geppetto_library)
@@ -44,6 +45,7 @@ def extractPopulations(self, netpyne_model, netpyne_geppetto_library, geppetto_m
4445
composite_id = cell['tags']['pop'] + "_cell"
4546

4647
cellType = pygeppetto.CompositeType(id=str(composite_id), name=str(composite_id), abstract= False)
48+
4749
visualType = pygeppetto.CompositeVisualType(id='cellMorphology', name='cellMorphology')
4850
cellType.visualType = visualType
4951
defaultValue = ArrayValue(elements=[])

0 commit comments

Comments
 (0)