Skip to content

Commit

Permalink
[SYNC] Drop nengo>2.8.0 transform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
arvoelke committed Apr 17, 2019
1 parent 1f3832c commit 1713941
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions nengolib/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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

0 comments on commit 1713941

Please sign in to comment.