brandontrabucco / design-bench

Benchmarks for Model-Based Optimization
MIT License
80 stars 19 forks source link

Avoid bug when importing oracles without Mujoco #12

Closed fedebotu closed 7 months ago

fedebotu commented 1 year ago

As per the PR, this avoids importing all oracles thus avoiding bugs as the following if we cannot install certain libraries (e.g. Mujoco)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/mnt/HDD/shared/Dev/design-baselines-private/design-bench/design_bench/oracles/exact/__init__.py", line 43, in <module>
    from .ant_morphology_oracle import AntMorphologyOracle
  File "/mnt/HDD/shared/Dev/design-baselines-private/design-bench/design_bench/oracles/exact/ant_morphology_oracle.py", line 1, in <module>
    from morphing_agents.mujoco.ant.env import MorphingAntEnv
ModuleNotFoundError: No module named 'morphing_agents'