Skip to content
Snippets Groups Projects
Commit 9355916f authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Squashed 'moose-core/' changes from 3498c1801a..0e0615c816

0e0615c816 Fixes to #186 are integrated into chamcham release.

git-subtree-dir: moose-core
git-subtree-split: 0e0615c8161f99ad294448e68c122b651da879e3
parent 01290cc5
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ class NetworkML():
cell_name = self.populationDict[population][0]
segment_path = self.populationDict[population][1][int(cell_id)].path+'/'+\
self.cellSegmentDict[cell_name][0][segment_id][0]
compartment = moose.Compartment(segment_path)
compartment = moose.element(segment_path)
_logger.debug("Adding pulse at {0}: {1}".format(
segment_path, pulsegen.firstLevel )
)
......@@ -226,7 +226,7 @@ class NetworkML():
if childobj.className in ['Compartment','SymCompartment']:
## SymCompartment inherits from Compartment,
## so below wrapping by Compartment() is fine for both Compartment and SymCompartment
child = moose.Compartment(childId)
child = moose.element(childId)
x0 = child.x0
y0 = child.y0
x0new = x0*cos(ztheta)-y0*sin(ztheta)
......@@ -316,7 +316,7 @@ class NetworkML():
weight_override, threshold, delay_override)
def connect(self, syn_name, pre_path, post_path, weight, threshold, delay):
postcomp = moose.Compartment(post_path)
postcomp = moose.element(post_path)
## We usually try to reuse an existing SynChan & SynHandler -
## event based SynHandlers have an array of weights and delays and can represent multiple synapses,
## so a new element of the weights and delays array is created
......@@ -349,7 +349,7 @@ class NetworkML():
if gradedchild is not None and gradedchild.value=='True': # graded synapse
interpol = moose.element(syn.path+"/graded_table")
#### always connect source to input - else 'cannot create message' error.
precomp = moose.Compartment(pre_path)
precomp = moose.element(pre_path)
moose.connect(precomp,"VmOut",interpol,"input")
try:
tau_table = moose.element(syn.path+'/tau_table')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment