<gh_stars>100-1000
#!/usr/bin/env python3

# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from habitat.core.embodied_task import EmbodiedTask
from habitat.core.registry import registry


def _try_register_eqa_task():
    try:
        from habitat.tasks.eqa.eqa import EQATask  # noqa: F401
    except ImportError as e:
        eqatask_import_error = e

        @registry.register_task(name="EQA-v0")
        class EQATaskImportError(EmbodiedTask):
            def __init__(self, *args, **kwargs):
                raise eqatask_import_error

#!/usr/bin/env python3

# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from habitat.core.embodied_task import EmbodiedTask
from habitat.core.registry import registry


def _try_register_eqa_task():
    try:
        from habitat.tasks.eqa.eqa import EQATask  # noqa: F401
    except ImportError as e:
        eqatask_import_error = e

        @registry.register_task(name="EQA-v0")
        class EQATaskImportError(EmbodiedTask):
            def __init__(self, *args, **kwargs):
                raise eqatask_import_error
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # noqa: F401