Skip to content

Commit

Permalink
modify __init__.py (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyosek authored Jul 29, 2023
1 parent 3bf2c38 commit b5d6ef6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions cfxplorer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
from cfxplorer.focus import Focus

# Let users know if they're missing any of our hard dependencies
_hard_dependencies = ("tensorflow", "numpy")
_missing_dependencies = []

for _dependency in _hard_dependencies:
try:
__import__(_dependency)
except ImportError as _e: # pragma: no cover
_missing_dependencies.append(f"{_dependency}: {_e}")

if _missing_dependencies: # pragma: no cover
raise ImportError(
"Unable to import required dependencies:\n" + "\n".join(_missing_dependencies)
)
del _hard_dependencies, _dependency, _missing_dependencies
from .focus import Focus

__all__ = ["Focus"]

0 comments on commit b5d6ef6

Please sign in to comment.