d8ad0ae1d78981d8f725045cfb20bc1065d5a551,pysb/simulator/cupsoda.py,CupSodaSimulator,__init__,#CupSodaSimulator#Any#Any#Any#Any#Any#,149
Before Change
else:
raise SimulatorException(
"Integrator type "" + self.integrator + "" not recognized.")
options.update(kwargs.get("integrator_options", {})) // overwrite
// defaults
self.opts = options
After Change
self.integrator = kwargs.pop("integrator", "cupsoda")
integrator_options = kwargs.pop("integrator_options", {})
if kwargs:
raise ValueError("Unknown keyword argument(s): {}".format(
", ".join(kwargs.keys())
))
unknown_integrator_options = set(integrator_options.keys()).difference(
self._integrator_options_allowed
)
if unknown_integrator_options:
raise ValueError(
"Unknown integrator_options: {}. Allowed options: {}".format(
", ".join(unknown_integrator_options),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pysb/pysb
Commit Name: d8ad0ae1d78981d8f725045cfb20bc1065d5a551
Time: 2018-10-17
Author: code@alexlubbock.com
File Name: pysb/simulator/cupsoda.py
Class Name: CupSodaSimulator
Method Name: __init__
Project Name: ray-project/ray
Commit Name: b796de41049aa3b3696a6b7242799284c3f0c641
Time: 2021-01-20
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/util/metrics.py
Class Name: Metric
Method Name: record
Project Name: pantsbuild/pants
Commit Name: 7a073b02450ba20d8d931c38bb300a9f702e8f53
Time: 2014-03-10
Author: lhosken@twitter.com
File Name: src/python/twitter/pants/targets/jvm_binary.py
Class Name: Bundle
Method Name: add