From 4cb325146310f5398c241a62f10f467b3873515b Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Tue, 18 Aug 2020 21:19:01 -0600 Subject: [PATCH] Increase Boost Python function arity only when necessary --- src/graph/generation/graph_generation.cc | 2 +- src/graph/inference/layers/graph_blockmodel_layers.cc | 2 +- src/graph/inference/layers/graph_blockmodel_layers_imp.cc | 1 - .../uncertain/graph_blockmodel_dynamics_cising_glauber.cc | 1 - .../inference/uncertain/graph_blockmodel_dynamics_epidemics.cc | 1 - .../uncertain/graph_blockmodel_dynamics_ising_glauber.cc | 1 - .../uncertain/graph_blockmodel_dynamics_pseudo_cising.cc | 1 - .../uncertain/graph_blockmodel_dynamics_pseudo_ising.cc | 1 - src/graph/inference/uncertain/graph_blockmodel_measured.cc | 1 - src/graph/inference/uncertain/graph_blockmodel_uncertain.cc | 1 - 10 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/graph/generation/graph_generation.cc b/src/graph/generation/graph_generation.cc index 31df8c6d..c05a4b66 100644 --- a/src/graph/generation/graph_generation.cc +++ b/src/graph/generation/graph_generation.cc @@ -15,7 +15,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 +#define BOOST_PYTHON_MAX_ARITY 20 #include "graph.hh" #include "graph_util.hh" diff --git a/src/graph/inference/layers/graph_blockmodel_layers.cc b/src/graph/inference/layers/graph_blockmodel_layers.cc index 40003e25..6fdb997a 100644 --- a/src/graph/inference/layers/graph_blockmodel_layers.cc +++ b/src/graph/inference/layers/graph_blockmodel_layers.cc @@ -15,7 +15,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 +#define BOOST_PYTHON_MAX_ARITY 20 #include #include "graph_tool.hh" diff --git a/src/graph/inference/layers/graph_blockmodel_layers_imp.cc b/src/graph/inference/layers/graph_blockmodel_layers_imp.cc index 1afc233a..57f94ef5 100644 --- a/src/graph/inference/layers/graph_blockmodel_layers_imp.cc +++ b/src/graph/inference/layers/graph_blockmodel_layers_imp.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_dynamics_cising_glauber.cc b/src/graph/inference/uncertain/graph_blockmodel_dynamics_cising_glauber.cc index 9e61a672..797e8ac4 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_dynamics_cising_glauber.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_dynamics_cising_glauber.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_dynamics_epidemics.cc b/src/graph/inference/uncertain/graph_blockmodel_dynamics_epidemics.cc index 861c93ba..f11d7a8a 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_dynamics_epidemics.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_dynamics_epidemics.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_dynamics_ising_glauber.cc b/src/graph/inference/uncertain/graph_blockmodel_dynamics_ising_glauber.cc index c1138a7c..b870e027 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_dynamics_ising_glauber.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_dynamics_ising_glauber.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_cising.cc b/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_cising.cc index f65b51c8..9feb53e4 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_cising.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_cising.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_ising.cc b/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_ising.cc index a0923d39..e7b12452 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_ising.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_dynamics_pseudo_ising.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_measured.cc b/src/graph/inference/uncertain/graph_blockmodel_measured.cc index 0a20ee74..f0119d9e 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_measured.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_measured.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" diff --git a/src/graph/inference/uncertain/graph_blockmodel_uncertain.cc b/src/graph/inference/uncertain/graph_blockmodel_uncertain.cc index d2b5ad22..0e779582 100644 --- a/src/graph/inference/uncertain/graph_blockmodel_uncertain.cc +++ b/src/graph/inference/uncertain/graph_blockmodel_uncertain.cc @@ -15,7 +15,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -#define BOOST_PYTHON_MAX_ARITY 40 #include #include "graph_tool.hh" -- GitLab