5c22a1ea6050364434dfb97b932a15082801d00b,pysb/export/python.py,PythonExporter,export,#PythonExporter#,87
Before Change
ydot = self.ydot
%s
return ydot
, 8) % pad("\n" + code_eqs, 12).replace("","").strip())
// note the simulate method is fixed, i.e. it doesn"t require any templating
output.write(pad(r
After Change
import itertools
import distutils.errors
))
output.write(pad(r
_use_cython = False
// try to inline a C statement to see if Cython is functional
try:
import Cython
except ImportError:
Cython = None
if Cython:
from Cython.Compiler.Errors import CompileError
try:
Cython.inline("x = 1", force=True, quiet=True)
_use_cython = True
except (CompileError,
distutils.errors.CompileError,
ValueError):
pass
Parameter = collections.namedtuple("Parameter", "name value")
Observable = collections.namedtuple("Observable", "name species coefficients")
Initial = collections.namedtuple("Initial", "param_index species_index")
))
output.write("\n")
output.write("class Model(object):\n")
init_data = {
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: pysb/pysb
Commit Name: 5c22a1ea6050364434dfb97b932a15082801d00b
Time: 2020-01-30
Author: alex.lubbock@vanderbilt.edu
File Name: pysb/export/python.py
Class Name: PythonExporter
Method Name: export
Project Name: sobhe/hazm
Commit Name: 44d3cc8e594304051b8fd20b9723a0c978068fe7
Time: 2013-12-26
Author: alireza.nournia@gmail.com
File Name: hazm/DependencyParser.py
Class Name: DependencyParser
Method Name: tagged_batch_parse
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: bbcee10084379853ef074311b4f61880b268f7bc
Time: 2014-12-09
Author: connormccoy@google.com
File Name: perfkitbenchmarker/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: _Create