Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Nov 2, 2023
1 parent 4896984 commit 19af36a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions benchmarl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

import importlib

import benchmarl.algorithms
import benchmarl.benchmark
import benchmarl.environments
import benchmarl.eval_results
import benchmarl.experiment
import benchmarl.models
import benchmarl.utils


_has_hydra = importlib.util.find_spec("hydra") is not None

Expand Down
6 changes: 5 additions & 1 deletion benchmarl/hydra_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import importlib

from omegaconf import DictConfig, OmegaConf
_has_hydra = importlib.util.find_spec("hydra") is not None

if _has_hydra:
from omegaconf import DictConfig, OmegaConf

from benchmarl.algorithms.common import AlgorithmConfig
from benchmarl.environments import Task, task_config_registry
Expand Down
5 changes: 1 addition & 4 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ API
.. autosummary::
:toctree: generated

benchmarl.algorithms
benchmarl.models
benchmarl.experiment
benchmarl.environments
benchmarl

0 comments on commit 19af36a

Please sign in to comment.