-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import logging | ||
from .dataset_builder import DatasetBuilder | ||
from pan3d.dataset_builder import DatasetBuilder | ||
from contextlib import suppress | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
logger.setLevel(logging.INFO) | ||
|
||
__version__ = "0.9.1" | ||
|
||
try: | ||
from .dataset_viewer import DatasetViewer | ||
from .explorers.slice_explorer import SliceExplorer | ||
__all__ = ["DatasetBuilder"] | ||
|
||
__all__ = [DatasetBuilder, DatasetViewer, SliceExplorer] | ||
except Exception: | ||
# Trame is not installed, DatasetViewer will not be accessible | ||
__all__ = [DatasetBuilder] | ||
with suppress(ImportError): | ||
from pan3d.dataset_viewer import DatasetViewer # noqa | ||
|
||
__all__.append("DatasetViewer") | ||
|
||
|
||
with suppress(ImportError): | ||
from pan3d.explorers.slice_explorer import SliceExplorer # noqa | ||
|
||
__all__.append("SliceExplorer") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters