From d6be152553d5dfe12fd7ab962ac727518c71d618 Mon Sep 17 00:00:00 2001
From: Sebastian Schmitt <sebastian.schmitt@kip.uni-heidelberg.de>
Date: Thu, 22 Apr 2021 16:34:54 +0200
Subject: [PATCH] State and fix unit of conductance in point process NMODL
 (#1497)

---
 mechanisms/default/expsyn.mod      | 3 ++-
 mechanisms/default/expsyn_stdp.mod | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/mechanisms/default/expsyn.mod b/mechanisms/default/expsyn.mod
index 44da3697..c1f7d24e 100644
--- a/mechanisms/default/expsyn.mod
+++ b/mechanisms/default/expsyn.mod
@@ -6,6 +6,7 @@ NEURON {
 
 UNITS {
     (mV) = (millivolt)
+    (uS) = (microsiemens)
 }
 
 PARAMETER {
@@ -16,7 +17,7 @@ PARAMETER {
 ASSIGNED {}
 
 STATE {
-    g
+    g (uS)
 }
 
 INITIAL {
diff --git a/mechanisms/default/expsyn_stdp.mod b/mechanisms/default/expsyn_stdp.mod
index 011c1129..b1595e7b 100644
--- a/mechanisms/default/expsyn_stdp.mod
+++ b/mechanisms/default/expsyn_stdp.mod
@@ -18,7 +18,7 @@ PARAMETER {
     Apre = 0.01 : pre-synaptic contribution
     Apost = -0.01  : post-synaptic contribution
     e = 0   (mV) : reversal potential
-    max_weight = 10 (nS) : maximum synaptic conductance
+    max_weight = 10 (uS) : maximum synaptic conductance
 }
 
 STATE {
-- 
GitLab