1a08386ee50a4798fb08eeaa02fb95f3b7ac6ea0,brian2/stateupdaters/exact.py,LinearStateUpdater,__call__,#LinearStateUpdater#Any#Any#,95
Before Change
if isinstance(symbol, Symbol)])
for symbol in symbols:
if symbol in specifiers and not getattr(specifiers[symbol],
"constant", False):
raise ValueError(("The coefficient matrix for the equations "
"contains "%s", which is not constant.") %
symbol)
symbols = [Symbol(variable, real=True) for variable in variables]
solution = sp.solve_linear_system(matrix.row_join(constants), *symbols)
b = sp.Matrix([solution[symbol] for symbol in symbols]).transpose()
After Change
// Make sure that the matrix M is constant, i.e. it only contains
// external variables or constant specifiers
non_constant = _non_constant_symbols(matrix, specifiers)
if len(non_constant):
raise ValueError(("The coefficient matrix for the equations "
"contains the symbols %s, which are not "
"constant.") % str(non_constant))
symbols = [Symbol(variable, real=True) for variable in variables]
solution = sp.solve_linear_system(matrix.row_join(constants), *symbols)
b = sp.Matrix([solution[symbol] for symbol in symbols]).transpose()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: brian-team/brian2
Commit Name: 1a08386ee50a4798fb08eeaa02fb95f3b7ac6ea0
Time: 2013-07-03
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__
Project Name: AlexsLemonade/refinebio
Commit Name: 59345529cf7663dc4e2b491c483ca47dd50567a4
Time: 2019-11-06
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/create_compendia.py
Class Name: Command
Method Name: handle
Project Name: AlexsLemonade/refinebio
Commit Name: 39474c5cf747f9eae1f06b23d8b89e80510dfed3
Time: 2019-11-18
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/create_compendia.py
Class Name: Command
Method Name: handle