|
2 | 2 | from warnings import warn |
3 | 3 |
|
4 | 4 | from .config import ( |
5 | | - VitessceConfig, |
| 5 | + CoordinationLevel, |
6 | 6 | VitessceChainableConfig, |
| 7 | + VitessceConfig, |
7 | 8 | VitessceConfigDatasetFile, |
8 | 9 | hconcat, |
9 | 10 | vconcat, |
10 | | - CoordinationLevel, |
11 | 11 | ) |
12 | | - |
13 | | -from .utils import ( |
14 | | - get_initial_coordination_scope_prefix, |
15 | | - get_initial_coordination_scope_name, |
| 12 | +from .config_converter import ( |
| 13 | + CellBrowserToAnndataZarrConverter, # only exported for testing. |
| 14 | + convert_cell_browser_project_to_anndata, |
16 | 15 | ) |
17 | | - |
18 | | -from .repr import make_repr |
19 | | - |
20 | 16 | from .constants import ( |
| 17 | + BASE_URL_PLACEHOLDER, |
21 | 18 | CoordinationType, |
22 | | - ViewType, |
23 | 19 | DataType, |
24 | 20 | FileType, |
| 21 | + ViewType, |
| 22 | +) |
| 23 | +from .constants import ( |
25 | 24 | # For backwards compatibility, also export ViewType as Component |
26 | 25 | ViewType as Component, |
27 | | - BASE_URL_PLACEHOLDER, |
28 | 26 | ) |
29 | | - |
30 | | -from .config_converter import ( |
31 | | - CellBrowserToAnndataZarrConverter, # only exported for testing. |
32 | | - convert_cell_browser_project_to_anndata, |
| 27 | +from .repr import make_repr |
| 28 | +from .utils import ( |
| 29 | + get_initial_coordination_scope_name, |
| 30 | + get_initial_coordination_scope_prefix, |
33 | 31 | ) |
34 | | - |
35 | 32 | from .wrappers import AbstractWrapper |
36 | 33 |
|
37 | 34 | # We allow installation without all of the dependencies that the widget requires. |
38 | 35 | # The imports below will fail in that case, and corresponding globals will be undefined. |
39 | 36 | try: |
40 | 37 | from .widget import VitessceWidget, data_server |
41 | 38 | except ModuleNotFoundError as e: # pragma: no cover |
42 | | - warn(f'Extra installs are necessary to use widgets: {e}') |
| 39 | + warn(f"Extra installs are necessary to use widgets: {e}") |
43 | 40 |
|
44 | 41 | try: |
45 | 42 | from .wrappers import ( |
46 | | - OmeTiffWrapper, |
47 | | - OmeZarrWrapper, |
48 | | - MultiImageWrapper, |
49 | | - CsvWrapper, |
50 | 43 | AnnDataWrapper, |
51 | | - MultivecZarrWrapper, |
| 44 | + CsvWrapper, |
52 | 45 | ImageOmeTiffWrapper, |
53 | | - ObsSegmentationsOmeTiffWrapper, |
54 | 46 | ImageOmeZarrWrapper, |
| 47 | + MultiImageWrapper, |
| 48 | + MultivecZarrWrapper, |
| 49 | + ObsSegmentationsOmeTiffWrapper, |
55 | 50 | ObsSegmentationsOmeZarrWrapper, |
| 51 | + OmeTiffWrapper, |
| 52 | + OmeZarrWrapper, |
56 | 53 | ) |
57 | 54 | except ModuleNotFoundError as e: # pragma: no cover |
58 | | - warn(f'Extra installs are necessary to use wrappers: {e}') |
| 55 | + warn(f"Extra installs are necessary to use wrappers: {e}") |
59 | 56 |
|
60 | 57 | try: |
61 | 58 | from .export import ( |
62 | | - export_to_s3, |
63 | 59 | export_to_files, |
| 60 | + export_to_s3, |
64 | 61 | ) |
65 | 62 | except ModuleNotFoundError as e: # pragma: no cover |
66 | | - warn(f'Extra installs are necessary to use exports: {e}') |
| 63 | + warn(f"Extra installs are necessary to use exports: {e}") |
0 commit comments