Demonstrates <electricalConnection> — bidirectional electrical coupling between cells via gap junctions with linear conductance: \(I_{gap} = g_{gap}(V_{pre} - V_{post})\).
import matplotlib.pyplot as pltimport numpy as npfor name, ref_arr in ref_outputs.items(): t = ref_arr[:, 0] *1000 fig, ax = plt.subplots(figsize=(10, 4))for i inrange(1, min(ref_arr.shape[1], 6)): ax.plot(t, ref_arr[:, i] *1000, alpha=0.8, label=f'Cell {i}') ax.set_xlabel("Time (ms)") ax.set_ylabel("Voltage (mV)") ax.set_title(f"Ex19: Gap Junctions — {name}") ax.legend(fontsize=7) ax.grid(True, alpha=0.3) plt.tight_layout() plt.show()
Gap Junctions
Electrical synapses (electricalConnection) are NeuroML-native network features. TVBO represents the FHN cell dynamics; the gap junction coupling is handled by the NeuroML adapter.