Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/arborize/arborize/builders/_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def insert_receiver(
if source is None:
return p.ParallelCon(gid, synapse, **kwargs)
else:
spp = synapse._point_process
spp = synapse._pp
p.parallel.target_var(spp, getattr(spp, "_ref_" + source), gid)

def insert_transmitter(
Expand Down
23 changes: 22 additions & 1 deletion libs/arborize/tests/test_neuron_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,31 @@ def test_synapses(self):

p.run(100)

self.assertEqual(list(r), list(r2), "Recording from same loc should be identical")
self.assertEqual(
list(r), list(r2), "Recording from same loc should be identical"
)
self.assertFalse(min(r) == max(r), "No synaptic currents detected")
self.assertTrue(min(r_nosyn) == max(r_nosyn), "Synaptic currents detected")

def test_receiver(self):
cell = neuron_build(self.p75_expsyn)
cell.insert_receiver(10, "ExpSyn", (0, 0))
synapse = cell.get_location((0, 0)).section.synapses[0]
self.assertEqual(synapse.gid, 10, "GId should be 1")
synapse.stimulate(start=0, number=3, interval=10)
r = cell.sections[0].record()
p.run(100)
self.assertFalse(min(r) == max(r), "No synaptic currents detected")
cell2 = neuron_build(self.p75_expsyn)
cell2.insert_receiver(10, "ExpSyn", (0, 0), source="i")
synapse2 = cell2.get_location((0, 0)).section.synapses[0]
self.assertEqual(
synapse2._pp._interpreter.parallel._transfer_max,
10,
"transfer_max should be 10",
)
synapse2._pp._interpreter.parallel.gid_clear()

def test_cable_building(self):
self.cell010.definition = define_model(
{
Expand Down
2 changes: 1 addition & 1 deletion libs/nmodl-glia/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"black>=24.0",
"toml~=0.10",
"packaging~=24.0",
"neuron-nightly==9.0a1.dev1485; sys_platform != 'win32'",
"NEURON>=9.0; sys_platform != 'win32'",
"importlib_metadata~=6.5"
]

Expand Down
2 changes: 1 addition & 1 deletion libs/nrn-patch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = [
"packaging~=24.0",
"errr~=1.2",
"numpy~=1.21",
"neuron-nightly==9.0a1.dev1485; sys_platform != 'win32'"
"NEURON>=9.0; sys_platform != 'win32'",
]

[[project.authors]]
Expand Down
Loading