Skip to content

Commit 5c573f7

Browse files
committed
more explicit imports
1 parent 1b33302 commit 5c573f7

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

src/torchlensmaker/__init__.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@
2727
ComposeTransform,
2828
TranslateTransform,
2929
IdentityTransform,
30+
forward_kinematic,
31+
)
32+
from torchlensmaker.core.intersect import intersect
33+
from torchlensmaker.core.full_forward import forward_tree, full_forward
34+
35+
from torchlensmaker.core.parameter import parameter
36+
from torchlensmaker.core.geometry import (
37+
unit_vector,
38+
rotated_unit_vector,
39+
unit2d_rot,
40+
unit3d_rot,
3041
)
31-
from torchlensmaker.core.intersect import *
32-
from torchlensmaker.core.full_forward import *
33-
from torchlensmaker.core.collision_detection import *
34-
from torchlensmaker.core.parameter import *
35-
from torchlensmaker.core.geometry import *
3642
from torchlensmaker.core.sag_functions import (
3743
Spherical,
3844
Parabolic,
@@ -42,7 +48,6 @@
4248
SagSum,
4349
SagFunction,
4450
)
45-
# from torchlensmaker.core.outline import *
4651

4752
##########
4853
# Surfaces
@@ -107,7 +112,14 @@
107112
# Sampling
108113
##########
109114

110-
from torchlensmaker.sampling import *
115+
from torchlensmaker.sampling import (
116+
dense,
117+
random_uniform,
118+
random_normal,
119+
exact,
120+
init_sampling,
121+
Sampler,
122+
)
111123

112124
##############
113125
# Optimization
@@ -125,7 +137,13 @@
125137
########
126138

127139
import torchlensmaker.viewer.tlmviewer as viewer
128-
from torchlensmaker.viewer.render_sequence import *
140+
from torchlensmaker.viewer.render_sequence import (
141+
show,
142+
show2d,
143+
show3d,
144+
export_json,
145+
render_sequence,
146+
)
129147

130148
##########
131149
# Analysis

0 commit comments

Comments
 (0)