Skip to content

Commit

Permalink
Put docstring in imperitive mood
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Aug 8, 2024
1 parent 52c18dc commit 839f7e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion regions/_utils/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def wcs(self):
@lazyproperty
def image(self):
"""
Counts image (`~astropy.io.fits.ImageHDU`).
Return a "counts" image (`~astropy.io.fits.ImageHDU`).
"""
events = self.event_table
skycoord = SkyCoord(events['GLON'], events['GLAT'], unit='deg',
Expand Down
2 changes: 1 addition & 1 deletion regions/core/pixcoord.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __sub__(self, other):

def __eq__(self, other):
"""
Checks whether ``other`` is `PixCoord` object and whether their
Check whether ``other`` is `PixCoord` object and whether their
abscissa and ordinate values are equal using
`np.testing.assert_allclose` with its default tolerance values.
"""
Expand Down
5 changes: 5 additions & 0 deletions regions/io/ds9/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,12 @@ def _define_region_params(region_type, shape, shape_params, frame=None):

def _make_region(region_data):
"""
Make a region object from the region data.
Parameters
----------
region_data : `_RegionData` instance
A `_RegionData` instance.
"""
try:
# NOTE: returned shape can be different from region_data.shape
Expand Down
2 changes: 1 addition & 1 deletion regions/shapes/ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _update_from_mpl_selector(self, *args, **kwargs):
def as_mpl_selector(self, ax, active=True, sync=True, callback=None,
**kwargs):
"""
A matplotlib editable widget for this region
Return a matplotlib editable widget for this region
(`matplotlib.widgets.EllipseSelector`).
Parameters
Expand Down
2 changes: 1 addition & 1 deletion regions/shapes/rectangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def _update_from_mpl_selector(self, *args, **kwargs):
def as_mpl_selector(self, ax, active=True, sync=True, callback=None,
**kwargs):
"""
A matplotlib editable widget for the region
Return a matplotlib editable widget for the region
(`matplotlib.widgets.RectangleSelector`).
Parameters
Expand Down

0 comments on commit 839f7e5

Please sign in to comment.