From 17139411a2aaaefcf833649a18d0fca395113d17 Mon Sep 17 00:00:00 2001 From: Aaron Voelker Date: Wed, 17 Apr 2019 17:13:56 -0400 Subject: [PATCH] [SYNC] Drop nengo>2.8.0 transform compatibility --- nengolib/temporal.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nengolib/temporal.py b/nengolib/temporal.py index 5bcda21..1dc70f9 100644 --- a/nengolib/temporal.py +++ b/nengolib/temporal.py @@ -12,7 +12,6 @@ from nengo.params import Default from nengo.solvers import Solver, LstsqL2, SolverParam from nengo.synapses import SynapseParam, Lowpass -from nengo.version import version_info class Temporal(Solver, SupportDefaultsMixin): @@ -179,13 +178,8 @@ def override_rates_method(x, gain, bias): # ignores the solver and considers only the conn. The only point of # passing solver.solver here is to invoke its corresponding builder # function in case something custom happens to be registered. - if version_info >= (2, 8, 1): - # https://github.com/nengo/nengo/pull/1481 - assert transform is None - return model.build(solver.solver, conn, rng) - - else: # pragma: no cover - return model.build(solver.solver, conn, rng, transform) + # Note: in nengo>2.8.0 the transform parameter is dropped + return model.build(solver.solver, conn, rng, transform) finally: neuron_type.rates = save_rates_method