46003aa14454ea427547d34d70a657e0c290128e,brian2/stateupdaters/exact.py,LinearStateUpdater,__call__,#LinearStateUpdater#Any#Any#,214
Before Change
continue // not a function of time
symbol = str(symbol.func)
var = variables.get(symbol, None)
if (isinstance(var, Function) and
not var.is_locally_constant(dt_var.get_value())):
raise ValueError(("Function %s is not locally constant "
"over time, cannot use linear "
"integration.") % symbol)
symbols = [Symbol(variable, real=True) for variable in varnames]
solution = sp.solve_linear_system(matrix.row_join(constants), *symbols)
b = sp.ImmutableMatrix([solution[symbol] for symbol in symbols]).transpose()
After Change
if dt_var is not None:
// This will raise an error if we meet the symbol "t" anywhere
// except as an argument of a locally constant function
for entry in itertools.chain(matrix, constants) :
_check_for_t(entry, variables, dt_var.get_value(), t)
symbols = [Symbol(variable, real=True) for variable in varnames]
solution = sp.solve_linear_system(matrix.row_join(constants), *symbols)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: brian-team/brian2
Commit Name: 46003aa14454ea427547d34d70a657e0c290128e
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__
Project Name: dnouri/skorch
Commit Name: 53ef00376510ee9ba4506918db06b25dad4a7ea4
Time: 2017-07-31
Author: benjamin.bossan@ottogroup.com
File Name: inferno/callbacks.py
Class Name: BestLoss
Method Name: initialize
Project Name: pgmpy/pgmpy
Commit Name: 97b2ccec94583a7876566a340f06e84a63340272
Time: 2015-03-26
Author: pratyaksh@me.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: induced_graph