f950054cbc064f4da256dc0ec9ccb81f85ac7ed6,brian2/tests/test_GSL.py,,test_GSL_error_dimension_mismatch_dimensionless2,#,228
Before Change
"""
options = {"absolute_error_per_variable" : {"v" : 1e-3}}
neuron = NeuronGroup(1, eqs, threshold="v > 10*mV", reset="v = 0*mV", method="gsl", method_options=options)
try:
run(0*ms)
raise Exception("should not get here because run should raise error")
except DimensionMismatchError as err:
pass
except NotImplementedError:
raise SkipTest("GSL support for numpy has not been implemented yet")
@attr("standalone-compatible")
After Change
options = {"absolute_error_per_variable" : {"v" : 1e-3}}
neuron = NeuronGroup(1, eqs, threshold="v > 10*mV", reset="v = 0*mV",
method="gsl", method_options=options)
net = Network(neuron)
assert_raises(DimensionMismatchError, net.run, 0*ms, level=2)
except NotImplementedError:
raise SkipTest("GSL support for numpy has not been implemented yet")
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 8
Instances
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_error_dimension_mismatch_dimensionless2
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_error_nonODE_variable
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_stochastic
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_error_nonexisting_variable
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_error_dimension_mismatch_unit
Project Name: brian-team/brian2
Commit Name: f950054cbc064f4da256dc0ec9ccb81f85ac7ed6
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_GSL.py
Class Name:
Method Name: test_GSL_error_dimension_mismatch_dimensionless1