__init__.py 574 B

12345678910111213141516171819202122232425262728
  1. from __future__ import division, absolute_import, print_function
  2. import os
  3. ref_dir = os.path.join(os.path.dirname(__file__))
  4. __all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and
  5. not f.startswith('__'))
  6. for f in __all__:
  7. __import__(__name__ + '.' + f)
  8. del f, ref_dir
  9. __doc__ = """\
  10. Topical documentation
  11. =====================
  12. The following topics are available:
  13. %s
  14. You can view them by
  15. >>> help(np.doc.TOPIC) #doctest: +SKIP
  16. """ % '\n- '.join([''] + __all__)
  17. __all__.extend(['__doc__'])