You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test_short_synapse.py", line 10, in <module>
with nengo.Simulator(net) as sim:
File "/data/eric/workspace/nengo/nengo/simulator.py", line 150, in __init__
self.model.build(network, progress=pt.next_stage("Building", "Build"))
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 133, in build
built = self.builder.build(self, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 227, in build
return cls.builders[obj_cls](model, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/network.py", line 94, in build_network
model.build(conn)
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 133, in build
built = self.builder.build(self, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 227, in build
return cls.builders[obj_cls](model, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/connection.py", line 309, in build_connection
weighted = model.build(conn.synapse, weighted, mode="update")
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 133, in build
built = self.builder.build(self, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/builder.py", line 227, in build
return cls.builders[obj_cls](model, obj, *args, **kwargs)
File "/data/eric/workspace/nengo/nengo/builder/processes.py", line 151, in build_process
state_init = process.make_state(shape_in, shape_out, model.dt, dtype=dtype)
File "/data/eric/workspace/nengo/nengo/synapses.py", line 238, in make_state
A, B, C, D = self._get_ss(dt)
File "/data/eric/workspace/nengo/nengo/synapses.py", line 222, in _get_ss
A, B, C, D, _ = cont2discrete((A, B, C, D), dt, method=self.method)
File "/data/eric/workspace/nengo/nengo/utils/filter_design.py", line 517, in cont2discrete
ms = expm(dt * em)
File "/data/eric/workspace/nengo/nengo/_vendor/scipy/sparse/linalg_expm.py", line 546, in expm
return _expm(A, use_exact_onenorm='auto')
File "/data/eric/workspace/nengo/nengo/_vendor/scipy/sparse/linalg_expm.py", line 600, in _expm
s = max(int(np.ceil(np.log2(eta_5 / theta_13))), 0)
ValueError: cannot convert float NaN to integer
The text was updated successfully, but these errors were encountered:
We used to treat small tau in Lowpass and Alpha as zero, when we used to use a worse expm function. We removed this in 4ea0b05. It would be nice if we could do something more general in LinearFilter to fix this, but we could go back to that special behaviour in Lowpass and Alpha for small tau.
Describe the bug
A tiny value for
Lowpass.tau
results in an error in Scipy'sexpm
.To reproduce
Expected behavior
This should act the same as if
tau == 0
.Error message and logs
The text was updated successfully, but these errors were encountered: