Skip to content

Commit 4074535

Browse files
Merge branch 'ccrouzet/doc-remove-deprec-warnings' into 'main'
Address Deprecation Warnings When Building the Doc See merge request omniverse/warp!1844
2 parents ab25dea + 117a8b0 commit 4074535

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

docs/modules/functions.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,11 +1344,11 @@ Vector Math
13441344
while the corresponding eigenvalues are returned in ``d``.
13451345

13461346

1347-
.. autofunction:: warp.math.norm_l1
1348-
.. autofunction:: warp.math.norm_l2
1349-
.. autofunction:: warp.math.norm_huber
1350-
.. autofunction:: warp.math.norm_pseudo_huber
1351-
.. autofunction:: warp.math.smooth_normalize
1347+
.. autofunction:: warp.norm_l1
1348+
.. autofunction:: warp.norm_l2
1349+
.. autofunction:: warp.norm_huber
1350+
.. autofunction:: warp.norm_pseudo_huber
1351+
.. autofunction:: warp.smooth_normalize
13521352

13531353

13541354
Quaternion Math
@@ -1730,10 +1730,10 @@ Transformations
17301730
Compute the inverse of the transformation ``xform``.
17311731

17321732

1733-
.. autofunction:: warp.math.transform_from_matrix
1734-
.. autofunction:: warp.math.transform_to_matrix
1735-
.. autofunction:: warp.math.transform_compose
1736-
.. autofunction:: warp.math.transform_decompose
1733+
.. autofunction:: warp.transform_from_matrix
1734+
.. autofunction:: warp.transform_to_matrix
1735+
.. autofunction:: warp.transform_compose
1736+
.. autofunction:: warp.transform_decompose
17371737

17381738

17391739
Spatial Math

warp/_src/context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8232,7 +8232,9 @@ def export_functions_rst(file): # pragma: no cover
82328232
continue
82338233
if f.func:
82348234
# f is a Warp function written in Python, we can use autofunction
8235-
ns = f.func.__module__.replace("._src.", ".")
8235+
ns = f.func.__module__
8236+
ns = ns.replace("._src.", ".")
8237+
ns = ns.replace(".math", "")
82368238
print(f".. autofunction:: {ns}.{f.key}", file=file)
82378239
continue
82388240
for f_prefix, query_type in query_types:

warp/optim/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from warp._src.optim.adam import Adam as Adam
1919
from warp._src.optim.sgd import SGD as SGD
2020

21+
from . import linear as linear
22+
2123

2224
# TODO: Remove after cleaning up the public API.
2325

0 commit comments

Comments
 (0)