Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 7c5e04d

Browse files
committed
remove cell::core::initialize_synapses, it's not used
1 parent 522f187 commit 7c5e04d

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

bluecellulab/cell/core.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -751,34 +751,6 @@ def add_replay_minis(self, syn_id, syn_description, connection_parameters,
751751
self.ips[syn_id].setTbins(tbins_vec)
752752
self.ips[syn_id].setRate(rate_vec)
753753

754-
def initialize_synapses(self):
755-
"""Initialize the synapses."""
756-
for synapse in self.synapses.values():
757-
syn = synapse.hsynapse
758-
syn_type = syn.hname().partition('[')[0]
759-
# todo: Is there no way to call the mod file's INITIAL block?
760-
# ... and do away with this brittle mess
761-
assert syn_type in ['ProbAMPANMDA_EMS', 'ProbGABAAB_EMS']
762-
if syn_type == 'ProbAMPANMDA_EMS':
763-
# basically what's in the INITIAL block
764-
syn.Rstate = 1
765-
syn.tsyn_fac = bluecellulab.neuron.h.t
766-
syn.u = syn.u0
767-
syn.A_AMPA = 0
768-
syn.B_AMPA = 0
769-
syn.A_NMDA = 0
770-
syn.B_NMDA = 0
771-
elif syn_type == 'ProbGABAAB_EMS':
772-
syn.Rstate = 1
773-
syn.tsyn_fac = bluecellulab.neuron.h.t
774-
syn.u = syn.u0
775-
syn.A_GABAA = 0
776-
syn.B_GABAA = 0
777-
syn.A_GABAB = 0
778-
syn.B_GABAB = 0
779-
else:
780-
assert False, "Problem with initialize_synapse"
781-
782754
def locate_bapsite(self, seclist_name, distance):
783755
"""Return the location of the BAP site.
784756

bluecellulab/ssim.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,6 @@ def _instantiate_synapse(self, cell_id: CellId, syn_id, syn_description,
554554
popids=popids,
555555
mini_frequencies=mini_frequencies)
556556

557-
def initialize_synapses(self):
558-
"""Resets the state of all synapses of all cells to initial values."""
559-
for cell in self.cells.values():
560-
cell.initialize_synapses()
561-
562557
def run(
563558
self,
564559
t_stop: Optional[float] = None,

0 commit comments

Comments
 (0)