Skip to content

Commit

Permalink
fixup! No importorskip in test_neurons
Browse files Browse the repository at this point in the history
  • Loading branch information
hunse committed Feb 14, 2019
1 parent 5db0373 commit e2496ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nengo_loihi/tests/test_neurons.py
Expand Up @@ -98,7 +98,7 @@ def test_loihi_neurons(neuron_type, Simulator, plt, allclose):
assert allclose(loihi_rates, ref, atol=atol, rtol=0, xtol=1)


@pytest.mark.skipif(not HAS_DL, "requires nengo_dl")
@pytest.mark.skipif(not HAS_DL, reason="requires nengo_dl")
@pytest.mark.parametrize('neuron_type', [
LoihiLIF(),
LoihiSpikingRectifiedLinear(),
Expand Down Expand Up @@ -245,7 +245,7 @@ def rate_nengo_dl_net(
return net, rates, lif_kw


@pytest.mark.skipif(not HAS_DL, "requires nengo_dl")
@pytest.mark.skipif(not HAS_DL, reason="requires nengo_dl")
@pytest.mark.parametrize('neuron_type', [
LoihiLIF(amplitude=1.0, tau_rc=0.02, tau_ref=0.002),
LoihiLIF(amplitude=0.063, tau_rc=0.05, tau_ref=0.001),
Expand Down Expand Up @@ -344,7 +344,7 @@ def test_nengo_dl_neuron_grads(neuron_type, plt, allclose):
assert allclose(y_spikerate, rates["ref"], atol=1, rtol=1e-2)


@pytest.mark.skipif(not HAS_DL, "requires nengo_dl")
@pytest.mark.skipif(not HAS_DL, reason="requires nengo_dl")
@pytest.mark.parametrize('neuron_type', [
LoihiLIF(amplitude=0.3, nengo_dl_noise=LowpassRCNoise(0.001)),
LoihiLIF(amplitude=0.3, nengo_dl_noise=AlphaRCNoise(0.001)),
Expand Down

0 comments on commit e2496ac

Please sign in to comment.