abf185095154a29c5cb4591512085f8e3c5920da,pysb/examples/run_tyson_oscillator.py,,find_slaves,#Any#Any#Any#,29

Before Change


    for i, eq in enumerate(model.odes): // i is equation number
        eq = eq.subs("s%d" % i, "s%dstar" % i)
        star = Symbol("s%dstar" % i)
        sol = solve(eq, star)
        max = 0 // Start with no distance
        for j in range(len(sol)):  // j is solution j for equation i
            for p in model.parameters: sol[j] = sol[j].subs(p.name, p.value) // Substitute parameters
            for tt in t:

After Change


    names = [n for n in filter(lambda n: n.startswith("__"), x.dtype.names)]
    x = x[names] // Only concrete species are considered
    names = [n.replace("__","") for n in names]
    x.dtype = [(n,"<f8") for n in names]

    for i, eq in enumerate(model.odes): // i is equation number
        eq   = eq.subs("s%d" % i, "s%dstar" % i)
        sol  = solve(eq, Symbol("s%dstar" % i)) // Find equation of imposed trace
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pysb/pysb
Commit Name: abf185095154a29c5cb4591512085f8e3c5920da
Time: 2013-06-12
Author: shawn@garbett.org
File Name: pysb/examples/run_tyson_oscillator.py
Class Name:
Method Name: find_slaves


Project Name: fgnt/pb_bss
Commit Name: 5e763403e0b1b195465aadcb6e86bc60db272729
Time: 2019-08-06
Author: mail@lukas-drude.de
File Name: paderbox/speech_enhancement/beamformer.py
Class Name:
Method Name: get_lcmv_vector


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 4db72839fafa752506b675298aef8ae1032aa0d1
Time: 2018-03-21
Author: davide.tateo90@gmail.com
File Name: mushroom/distributions/gaussian.py
Class Name: GaussianCholeskyDistribution
Method Name: diff_log