2db605d4a44e33306af74892eecbfef75a1d44d8,brian2/equations/equations.py,Equations,_sort_static_equations,#Equations#,685
Before Change
dependent = [m for m, deps in static_deps.iteritems()
if n in deps]
for m in dependent:
static_deps[m].remove(n)
if len(static_deps[m]) == 0:
// no other dependencies
no_incoming.add(m)
After Change
dep in self._equations and
self._equations[dep].type == STATIC_EQUATION]
try:
sorted_eqs = topsort(static_deps)
except ValueError:
raise ValueError("Cannot resolve dependencies between static "
"equations, dependencies contain a cycle.")
// put the equations objects in the correct order
for order, static_variable in enumerate(sorted_eqs):
self._equations[static_variable].update_order = order
// Sort differential equations and parameters after static equations
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: brian-team/brian2
Commit Name: 2db605d4a44e33306af74892eecbfef75a1d44d8
Time: 2014-02-19
Author: dan.goodman@ens.fr
File Name: brian2/equations/equations.py
Class Name: Equations
Method Name: _sort_static_equations
Project Name: prody/ProDy
Commit Name: c5b11b7668df61c3a5c3f927625430c56413d5fb
Time: 2012-11-14
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: openFile
Project Name: ilastik/ilastik
Commit Name: 630a400af2bffc27a173acf876d72a1a10cd2dbf
Time: 2014-05-08
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/base/appletSerializer.py
Class Name: SerialClassifierSlot
Method Name: _deserialize