reference.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. -----------------
  2. Library Reference
  3. -----------------
  4. .. currentmodule:: bcolz
  5. First level variables
  6. =====================
  7. .. py:attribute:: __version__
  8. The version of the bcolz package.
  9. .. py:attribute:: dask_here
  10. Whether the minimum version of dask has been detected.
  11. .. py:attribute:: min_dask_version
  12. The minimum version of dask needed (dask is optional).
  13. .. py:attribute:: min_numexpr_version
  14. The minimum version of numexpr needed (numexpr is optional).
  15. .. py:attribute:: ncores
  16. The number of cores detected.
  17. .. py:attribute:: numexpr_here
  18. Whether the minimum version of numexpr has been detected.
  19. Top level classes
  20. =================
  21. .. autoclass:: cparams
  22. :members: setdefaults
  23. .. autoclass:: bcolz.attrs.attrs
  24. Also, see the :py:class:`carray` and :py:class:`ctable` classes below.
  25. .. _top-level-constructors:
  26. Top level functions
  27. ===================
  28. .. autofunction:: arange
  29. .. autofunction:: eval
  30. .. autofunction:: fill
  31. .. autofunction:: fromiter
  32. .. autofunction:: iterblocks
  33. .. autofunction:: ones
  34. .. autofunction:: zeros
  35. .. autofunction:: open
  36. .. autofunction:: walk
  37. Top level printing functions
  38. ============================
  39. .. py:function:: array2string(a, max_line_width=None, precision=None, suppress_small=None, separator=' ', prefix="", style=repr, formatter=None)
  40. Return a string representation of a carray/ctable object.
  41. This is the same function than in NumPy. Please refer to NumPy
  42. documentation for more info.
  43. See Also:
  44. :py:func:`set_printoptions`, :py:func:`get_printoptions`
  45. .. py:function:: get_printoptions()
  46. Return the current print options.
  47. This is the same function than in NumPy. For more info, please
  48. refer to the NumPy documentation.
  49. See Also:
  50. :py:func:`array2string`, :py:func:`set_printoptions`
  51. .. py:function:: set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, suppress=None, nanstr=None, infstr=None, formatter=None)
  52. Set printing options.
  53. These options determine the way floating point numbers in carray
  54. objects are displayed. This is the same function than in NumPy.
  55. For more info, please refer to the NumPy documentation.
  56. See Also:
  57. :py:func:`array2string`, :py:func:`get_printoptions`
  58. Utility functions
  59. =================
  60. .. autofunction:: set_nthreads
  61. .. autofunction:: blosc_set_nthreads
  62. .. autofunction:: detect_number_of_cores
  63. .. autofunction:: blosc_version
  64. .. autofunction:: print_versions
  65. .. autofunction:: test
  66. The carray class
  67. ================
  68. .. autoclass:: carray
  69. :members:
  70. :special-members: __getitem__, __setitem__
  71. The ctable class
  72. ================
  73. .. this is needed because the ctable class resides in the ctable module
  74. .. currentmodule:: bcolz.ctable
  75. .. autoclass:: ctable
  76. :members: