diff --git a/.gitignore b/.gitignore index 5f2c3f600..3434c580e 100644 --- a/.gitignore +++ b/.gitignore @@ -248,6 +248,7 @@ docs/_build docs/generated docs/api docs/whatsnew/latest_changelog.txt +docs/sg_execution_times.rst examples/**/*.asdf examples/**/*.csv figure_test_images* diff --git a/ndcube/ndcube.py b/ndcube/ndcube.py index 1ce16333a..93a1866fa 100644 --- a/ndcube/ndcube.py +++ b/ndcube/ndcube.py @@ -218,11 +218,10 @@ def crop(self, Examples -------- - An example of cropping a region of interest on the Sun from a 3-D image-time cube: + >>> # An example of cropping a region of interest on the Sun from a 3-D image-time cube >>> point1 = [SkyCoord(-50*u.deg, -40*u.deg, frame=frames.HeliographicStonyhurst), None] # doctest: +SKIP >>> point2 = [SkyCoord(0*u.deg, -6*u.deg, frame=frames.HeliographicStonyhurst), None] # doctest: +SKIP >>> NDCube.crop(point1, point2) # doctest: +SKIP - """ @abc.abstractmethod @@ -268,7 +267,7 @@ def crop_by_values(self, Examples -------- - An example of cropping a region of interest on the Sun from a 3-D image-time cube: + >>> # An example of cropping a region of interest on the Sun from a 3-D image-time cube >>> NDCube.crop_by_values((-600, -600, 0), (0, 0, 0), units=(u.arcsec, u.arcsec, u.s)) # doctest: +SKIP """