Skip to content

Commit

Permalink
(Explicitly) document members of box_flags_enum
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 27, 2022
1 parent 972dcc0 commit 1423c46
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions boxtree/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
.. currentmodule:: boxtree
.. autoclass:: box_flags_enum
:members:
:undoc-members:
.. autoclass:: TreeOfBoxes
Expand Down Expand Up @@ -98,7 +96,19 @@
# {{{ box flags

class box_flags_enum(Enum): # noqa
"""Constants for box flags bit field."""
"""Constants for box flags bit field.
.. rubric:: Flags for particle-based trees
.. attribute:: dtype
.. attribute:: HAS_OWN_SOURCES
.. attribute:: HAS_OWN_TARGETS
.. attribute:: HAS_OWN_SRCNTGTS
.. attribute:: HAS_CHILD_SOURCES
.. attribute:: HAS_CHILD_TARGETS
.. attribute:: HAS_CHILD_PARTICLES
"""

c_name = "box_flags_t"
dtype = np.dtype(np.uint8)
Expand Down

0 comments on commit 1423c46

Please sign in to comment.