590e29dd3dca1f837ab70c67f3a628c7ee032ac9,pysb/simulator/cupsoda.py,CupSodaSimulator,_get_cmatrix,#CupSodaSimulator#,452

Before Change


            for j in range(self._len_rxns):
                rate = 1.0
                for r in rate_args[j]:
                    x = str(r)
                    if x in par_names:
                        rate *= par_vals[i][par_dict[x]]
                    else:
                        // FIXME: need to detect non-numbers and throw an error

After Change


            for j in range(self._len_rxns):
                rate = 1.0
                for r in rate_args[j]:
                    if isinstance(r, pysb.Parameter):
                        rate *= par_vals[i][par_names.index(r.name)]
                    elif isinstance(r, pysb.Expression):
                        raise ValueError("cupSODA does not currently support "
                                         "models with Expressions")
                    else:
                        rate *= r
                // volume correction
                if self.vol:
                    rate *= (N_A * self.vol) ** (rate_order[j] - 1)
                c_matrix[i][j] = rate
        self._logger.debug("100%")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: pysb/pysb
Commit Name: 590e29dd3dca1f837ab70c67f3a628c7ee032ac9
Time: 2017-05-01
Author: alubbock@users.noreply.github.com
File Name: pysb/simulator/cupsoda.py
Class Name: CupSodaSimulator
Method Name: _get_cmatrix


Project Name: Scitator/catalyst
Commit Name: 60dfcf812eca79017dced46e1189245c050a3fd6
Time: 2018-12-10
Author: scitator@gmail.com
File Name: utils/factory.py
Class Name: UtilsFactory
Method Name: unpack_checkpoint


Project Name: EpistasisLab/tpot
Commit Name: ef29cd9bde8695645d63ae7f568fb298809e7b19
Time: 2018-10-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit


Project Name: prody/ProDy
Commit Name: 63d8db941c87501296c0e8c73c7871541455571a
Time: 2020-06-09
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM


Project Name: scikit-optimize/scikit-optimize
Commit Name: dbc0f24b39c2e2725682485a68586b3f0fa6bafc
Time: 2017-07-02
Author: iaroslav.email@gmail.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: step