Print Issue after using .connect()
Posted: Tue Dec 31, 2019 4:19 pm
Hi! I am new to the forum and also relatively new to computational neuroscience research. I am currently working on converting the McIntyre MRG axon model from Hoc to Python as part of my initial task as a researcher. However, I recently ran into an issue in which I am unable to print or display any output after instantiating an instance of my MRG axon class. I isolated the cause of the printing issue to a particular for loop I wrote in order to connect several parts of my axon model as was done in the original model:
I was wondering if anyone has had a similar issue and/or whether there are any specific issues in my implementation that may be causing this?
Code: Select all
for i in range(self.axonnodes - 1):
self.MYSA[2 * i].connect(self.node[i])
self.FLUT[2 * i].connect(self.MYSA[2 * i])
self.STIN[6 * i].connect(self.FLUT[2 * i])
self.STIN[6 * i + 1].connect(self.STIN[6 * i])
self.STIN[6 * i + 2].connect(self.STIN[6 * i + 1])
self.STIN[6 * i + 3].connect(self.STIN[6 * i + 2])
self.STIN[6 * i + 4].connect(self.STIN[6 * i + 3])
self.STIN[6 * i + 5].connect(self.STIN[6 * i + 4])
self.FLUT[2 * i + 1].connect(self.STIN[6 * i + 5])
self.MYSA[2 * i + 1].connect(self.FLUT[2 * i + 1])
self.node[i + 1].connect(self.MYSA[2 * i + 1])
...
print "Output received" # This will print because it is before instance declaration
testMRG = MRG()
print "Output received" # Nothing beyond this line will print due to above for loop
print testMRG.fiberD