Skip to content

Commit 2742a97

Browse files
committed
Fix imports and names in tomo subpackage
1 parent 521d7cf commit 2742a97

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

odl/tomo/__init__.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,29 @@
88

99
"""Tomography related operators and geometries."""
1010

11-
1211
from __future__ import absolute_import
1312

14-
__all__ = ()
15-
13+
from .analytic import *
14+
from .backends import (
15+
ASTRA_AVAILABLE, ASTRA_CUDA_AVAILABLE, SKIMAGE_AVAILABLE,
16+
cone_2d_geom_to_astra_vecs, cone_3d_geom_to_astra_vecs,
17+
parallel_2d_geom_to_astra_vecs, parallel_3d_geom_to_astra_vecs,
18+
vecs_astra_to_odl_coords, vecs_odl_to_astra_coords)
1619
from .geometry import *
17-
__all__ += geometry.__all__
18-
1920
from .operators import *
20-
__all__ += operators.__all__
2121

22-
from .analytic import *
22+
__all__ = ()
23+
__all__ += geometry.__all__
24+
__all__ += operators.__all__
2325
__all__ += analytic.__all__
24-
25-
from .backends import (
26-
ASTRA_AVAILABLE, ASTRA_CUDA_AVAILABLE, SKIMAGE_AVAILABLE,
27-
astra_conebeam_2d_geom_to_vec, astra_conebeam_3d_geom_to_vec)
2826
__all__ += (
2927
'ASTRA_AVAILABLE',
3028
'ASTRA_CUDA_AVAILABLE',
3129
'SKIMAGE_AVAILABLE',
32-
'astra_conebeam_2d_geom_to_vec',
33-
'astra_conebeam_3d_geom_to_vec',
30+
'vecs_astra_to_odl_coords',
31+
'vecs_odl_to_astra_coords',
32+
'parallel_2d_geom_to_astra_vecs',
33+
'parallel_3d_geom_to_astra_vecs',
34+
'cone_2d_geom_to_astra_vecs',
35+
'cone_3d_geom_to_astra_vecs',
3436
)

0 commit comments

Comments
 (0)