Skip to content

Commit

Permalink
docs: fix cufinufft autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Aug 22, 2023
1 parent e283579 commit 56ace33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
sys.path.insert(0, os.path.abspath('../python/cufinufft'))

# quash sphinx's inevitable failure of C++ lib extension to import...
autodoc_mock_imports = ['finufft._finufft', 'numpy']
autodoc_mock_imports = ['finufft._finufft', 'numpy', 'pycuda']
# The above is not enough for nested import -- forcibly mock them out ahead of time:
#for name in autodoc_mock_imports:
# sys.modules[name] = sphinx.ext.autodoc._MockModule(name, None)
Expand Down
6 changes: 5 additions & 1 deletion python/cufinufft/cufinufft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
from cufinufft._simple import (nufft1d1, nufft1d2, nufft2d1, nufft2d2,
nufft3d1, nufft3d2)

__all__ = ['cufinufft']
__all__ = ["nufft1d1", "nufft1d2",
"nufft2d1", "nufft2d2",
"nufft3d1", "nufft3d2",
"Plan"]

__version__ = '2.2.0dev0'

0 comments on commit 56ace33

Please sign in to comment.