mesa
mesa copied to clipboard
Fix inaccurate docstring wording in HexSpaceDrawer._get_hexmesh
Describe the bug
Several docstrings and comments in mesa/visualization/space_drawers.py have inaccurate wording, missing sections, or inconsistent formatting:
HexSpaceDrawer._get_hexmesh(): Uses"Yields list of list..."instead of"Returns a list of lists..."even though it is not a generator.OrthogonalSpaceDrawer: References legacySingleGridandMultiGridclasses instead ofOrthogonalMooreGridandOrthogonalVonNeumannGrid.NetworkSpaceDrawer.draw_matplotlib(): Implieszordercan be passed at the top level instead of insidenode_kwargsandedge_kwargs.VoronoiSpaceDrawer: Mixes"Voronoi diagram"and"Voronoi grid"wording, and has inaccurate horizontal/vertical line comments in_clip_line().- Missing & Inconsistent Sections: Missing
Attributes:onBaseSpaceDrawer, missingArgs:/Returns:onContinuousSpaceDrawer.project()andVoronoiSpaceDrawer._clip_line(), and malformedExamples:blocks across methods.
Expected behavior
Docstrings and comments should accurately describe the code, follow consistent Google-style formatting, and include complete Attributes:, Args:, Returns:, and valid Examples: sections.
To Reproduce
- Open
mesa/visualization/space_drawers.py. - Inspect the docstrings and comments across the space drawer classes.
Additional context
This is a documentation-only change. No functional behavior is altered.