Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Open
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
6 changes: 6 additions & 0 deletions tests/test_gap_junctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ def test_dendrite_sync(gj):
df = circuit.where(query.format(pair)).toPandas()
df = fltr._dendrite_match(df)
assert len(df) == expected
# GJ ids should match, but not be the same - these can be used to pair up
# junctions, as they are supposed to be bidirectional.
assert not any(df["afferent_junction_id"] == df["efferent_junction_id"])
assert len(set(df["afferent_junction_id"])) == len(df)
assert len(set(df["efferent_junction_id"])) == len(df)
assert set(df["afferent_junction_id"]) == set(df["efferent_junction_id"])

df = fltr._dendrite_match(circuit.toPandas())
for col in ("afferent_junction_id", "efferent_junction_id"):
Expand Down