1f6686d765052c874dcf28f8036acde742decd79,softlearning/environments/utils.py,,,#,12

Before Change


)


ENVIRONMENTS = {
    "gym": GYM_ENVIRONMENTS,
    "dm_control": DM_CONTROL_ENVIRONMENTS,
}

ADAPTERS = {
    "gym": GymAdapter,
    "dm_control": DmControlAdapter,

After Change


    "gym": GymAdapter,
}

try:
    from .adapters.dm_control_adapter import DmControlAdapter
    ADAPTERS["dm_control"] = DmControlAdapter
except ModuleNotFoundError as e:
    if "dm_control" not in e.msg:
        raise

    print("Warning: dm_control package not found. Run"
          " `pip install git+https://github.com/deepmind/dm_control.git`"
          " to use dm_control environments.")

try:
    from .adapters.robosuite_adapter import RobosuiteAdapter
    ADAPTERS["robosuite"] = RobosuiteAdapter
except ModuleNotFoundError as e:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: rail-berkeley/softlearning
Commit Name: 1f6686d765052c874dcf28f8036acde742decd79
Time: 2019-04-26
Author: 31363575+Alacarter@users.noreply.github.com
File Name: softlearning/environments/utils.py
Class Name:
Method Name:


Project Name: pytorch/fairseq
Commit Name: a0f75996b1e25c97149bcbc6aad7eed5601daab0
Time: 2019-11-02
Author: myleott@fb.com
File Name: setup.py
Class Name:
Method Name: