Skip to content

Commit

Permalink
Merge pull request #1623 from larrybradley/urls
Browse files Browse the repository at this point in the history
MNT: Update URLs
  • Loading branch information
larrybradley authored Sep 13, 2023
2 parents b1d2d95 + 9c80c0a commit b9c9d35
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/background.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ The source detection and masking procedure can be iterated further. Even
with one iteration we are within 0.2% of the true background value and
1.5% of the true background RMS.

.. _scipy: https://www.scipy.org/
.. _scipy: https://scipy.org/


2D Background and Noise Estimation
Expand Down
6 changes: 3 additions & 3 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Photutils also optionally depends on other packages for some features:
* `tqdm <https://tqdm.github.io/>`_: Used to display optional progress
bars.

* `Rasterio <https://rasterio.readthedocs.io/>`_: Used for converting
* `Rasterio <https://rasterio.readthedocs.io/en/stable/>`_: Used for converting
source segments into polygon objects.

* `Shapely <https://shapely.readthedocs.io/>`_: Used for converting
* `Shapely <https://shapely.readthedocs.io/en/stable/>`_: Used for converting
source segments into polygon objects.

Photutils depends on `pytest-astropy
Expand Down Expand Up @@ -88,7 +88,7 @@ Using conda
-----------

Photutils can be installed with `conda`_ if you have installed
`Anaconda <https://www.anaconda.com/products/individual>`_ or
`Anaconda <https://www.anaconda.com/download>`_ or
`Miniconda <https://docs.conda.io/en/latest/miniconda.html>`_. To
install Photutils using the `conda-forge Anaconda channel
<https://anaconda.org/conda-forge/photutils>`_, run::
Expand Down
2 changes: 1 addition & 1 deletion docs/isophote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ position as a function of the semimajor axis length:
We can build an elliptical model image from the
`~photutils.isophote.IsophoteList` object using the
:func:`~photutils.isophote.build_ellipse_model` function (NOTE: this
function requires `scipy <https://www.scipy.org/>`_):
function requires `scipy <https://scipy.org/>`_):

.. doctest-requires:: scipy

Expand Down
14 changes: 8 additions & 6 deletions docs/whats_new/1.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ Converting ``SegmentationImage`` segments to polygons
=====================================================

The ``SegmentationImage`` class now has a ``polygons`` attribute, which
returns a list of `Shapely <https://shapely.readthedocs.io/>`_ polygons
representing each source segment. It also now has a ``to_patches`` and
a ``plot_patches`` method, which returns or plots, respectively, a list
of `matplotlib.patches.Polygon` objects. These features require that
both the `Rasterio <https://rasterio.readthedocs.io/>`_ and `Shapely
<https://shapely.readthedocs.io/>`_ optional dependencies are installed.
returns a list of `Shapely`_ polygons representing each source segment.
It also now has a ``to_patches`` and a ``plot_patches`` method, which
returns or plots, respectively, a list of `matplotlib.patches.Polygon`
objects. These features require that both the `Rasterio`_ and `Shapely`_
optional dependencies are installed.


``ApertureStats`` local background
Expand Down Expand Up @@ -57,3 +56,6 @@ Other changes
=============

Please see the :ref:`changelog` for the complete list of changes.

.. _Rasterio: https://rasterio.readthedocs.io/en/stable/
.. _Shapely: https://shapely.readthedocs.io/en/stable/
2 changes: 1 addition & 1 deletion photutils/segmentation/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,7 @@ def perimeter(self):
Implementation of a Perimeter Estimator". Proceedings of
the Irish Machine Vision and Image Processing Conference,
pp. 51-57 (2000).
https://www.maa.org/sites/default/files/images/upload_library/applets/CirclesRedistrict/perimeter.doc
https://maa.org/sites/default/files/images/upload_library/applets/CirclesRedistrict/perimeter.doc
"""
from scipy.ndimage import binary_erosion, convolve

Expand Down
6 changes: 3 additions & 3 deletions photutils/segmentation/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,8 @@ def _geo_polygons(self):
@lazyproperty
def polygons(self):
"""
A list of `Shapely <https://shapely.readthedocs.io/>`_ polygons
representing each source segment.
A list of `Shapely <https://shapely.readthedocs.io/en/stable/>`_
polygons representing each source segment.
"""
from shapely.geometry import shape

Expand Down Expand Up @@ -1386,7 +1386,7 @@ class Segment:
polygon : Shapely polygon, optional
The outline of the segment as a `Shapely
<https://shapely.readthedocs.io/>`_ polygon.
<https://shapely.readthedocs.io/en/stable/>`_ polygon.
"""

def __init__(self, segment_data, label, slices, bbox, area, *,
Expand Down

0 comments on commit b9c9d35

Please sign in to comment.