From 4c603b6926cfd7ec9d3203051fe43a6cd82643b3 Mon Sep 17 00:00:00 2001
From: Nora Abi Akar <nora.abiakar@gmail.com>
Date: Thu, 22 Apr 2021 16:33:49 +0200
Subject: [PATCH] Fix gj python constructor (#1485)

---
 python/recipe.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/python/recipe.cpp b/python/recipe.cpp
index 9456dd3d..febd5cdb 100644
--- a/python/recipe.cpp
+++ b/python/recipe.cpp
@@ -158,15 +158,15 @@ void register_recipe(pybind11::module& m) {
         "Describes a gap junction between two gap junction sites.");
     gap_junction_connection
         .def(pybind11::init<arb::cell_member_type, arb::cell_lid_type, double>(),
-            "local"_a, "peer"_a, "ggap"_a,
+            "peer"_a, "local"_a, "ggap"_a,
             "Construct a gap junction connection with arguments:\n"
-            "  local: One half of the gap junction connection.\n"
-            "  peer:  Other half of the gap junction connection.\n"
+            "  peer:  One half of the gap junction connection.\n"
+            "  local: Other half of the gap junction connection.\n"
             "  ggap:  Gap junction conductance [μS].")
-        .def_readwrite("local", &arb::gap_junction_connection::local,
-            "One half of the gap junction connection.")
         .def_readwrite("peer", &arb::gap_junction_connection::peer,
-            "Other half of the gap junction connection.")
+            "Peer half of the gap junction connection.")
+        .def_readwrite("local", &arb::gap_junction_connection::local,
+            "Local half of the gap junction connection.")
         .def_readwrite("ggap", &arb::gap_junction_connection::ggap,
             "Gap junction conductance [μS].")
         .def("__str__",  &gj_to_string)
-- 
GitLab