d29c32aa292cf4cedb5477b69621f30a8b62bd9f,dm_control/mujoco/engine.py,Physics,check_invalid_state,#Physics#,244
Before Change
xrange(enums.mjtWarning.mjNWARNING)], warning_counts_before)
if np.any(warning_counts_increased):
warning_names = []
for i in np .where(warning_counts_increased)[0]:
warning_names.append(enums.mjtWarning._fields[i])
raise _control.PhysicsError(
"Physics state is invalid. Warning(s) raised: {}".format(
After Change
Raises a `base.PhysicsError` if the simulation state is invalid.
warning_counts_before = [warning.number for warning in self.data.warning]
yield
warnings_raised = []
for i, old_warning_count in enumerate(warning_counts_before):
if self.data.warning[i].number > old_warning_count:
warnings_raised.append(i)
if warnings_raised:
warning_names = [enums.mjtWarning._fields[i] for i in warnings_raised]
raise _control.PhysicsError(
_INVALID_PHYSICS_STATE.format(warning_names=", ".join(warning_names)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: deepmind/dm_control
Commit Name: d29c32aa292cf4cedb5477b69621f30a8b62bd9f
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/mujoco/engine.py
Class Name: Physics
Method Name: check_invalid_state
Project Name: deepchem/deepchem
Commit Name: a4ab24f33a57d0ea9a807cf5b5d9248aae1c04fe
Time: 2016-01-07
Author: bharath.ramsundar@gmail.com
File Name: deepchem/utils/dataset.py
Class Name:
Method Name: df_to_numpy
Project Name: dmlc/gluon-cv
Commit Name: 9f0b230e1f59cb399e36210483bc075760b02eaf
Time: 2018-04-11
Author: cheungchih@gmail.com
File Name: gluonvision/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: hybrid_forward