You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following things need to be manually fixed before working with files generated from the s.peters_algorithm repo (develop branch) and this one (dev branch):
An AttributeError gets raised:
".../MuJoCo_Gym/mujoco_rl.py", line 77, in __instantiateJson
self.info_name_list = [key for key in self.info_json["environment"]["objects"].keys()] #ToDo: is this not a df? looks like a list or sth
AttributeError: 'list' object has no attribute 'keys'
This is because the dictionary is inside a list, looking into self.info_json["environment"]["objects"][0].keys()] instead works.
Similarly, a Type error occurs:
".../MuJoCo_Gym/mujoco_rl.py", line 283, in filter_by_tag
if "tags" in self.info_json["environment"]["objects"][object].keys():
TypeError: list indices must be integers or slices, not dict
which can be resolved by iterating over the range of the amount of objects, instead of the objects themselves.
The following things need to be manually fixed before working with files generated from the s.peters_algorithm repo (develop branch) and this one (dev branch):
This is because the dictionary is inside a list, looking into
self.info_json["environment"]["objects"][0].keys()]
instead works.which can be resolved by iterating over the range of the amount of objects, instead of the objects themselves.
The text was updated successfully, but these errors were encountered: