Details
Description
integrators.IntegratorStochastic.noise.default =noise.Additive()
Unless we change this field when we configure a simulation, this class belonging default instance will be used for further instances of Simulator (which take the default noise).
This was revealed by this PR https://github.com/the-virtual-brain/tvb-root/pull/578
To reproduce it: this will fail in tvb-library 2.6, but we expect it to pass:
sim = simulator.Simulator( connectivity=con, coupling=coupling.Linear(a=numpy.array([2e-4])), integrator=integrators.EulerStochastic(dt=10.0), model=models.Linear(gamma=numpy.array([-1e-2])), monitors=(monitors.Raw(),), simulation_length=60e3 ) assert sim.integrator.noise != integrators.IntegratorStochastic.noise.default
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
TVB-2878 Copy an instance of a model or other object in TVB
-
- Resolved
-