Skip to content

Commit 730c579

Browse files
committed
DOC: adding changelog, as well as mention all modules that use regions
1 parent fda7de9 commit 730c579

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ alma
7676
- New DataLink API handling. [#2493]
7777
- Fixed bug #2489 in which blank URLs were being sent to the downloader [#2490]
7878
- Removed deprecated broken functions from ``alma.utils``. [#2331]
79+
- Fixed a bug in slicing of ALMA regions. [#2810]
7980

8081
astrometry_net
8182
^^^^^^^^^^^^^^

astroquery/alma/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ def footprint_to_reg(footprint):
5050
if footprint[:7] != 'Polygon' and footprint[:6] != 'Circle':
5151
raise ValueError("Unrecognized footprint type")
5252

53-
import regions
53+
try:
54+
import regions
55+
except ImportError:
56+
print('Could not import `regions`, which is required for the '
57+
'functionality of this function.')
58+
raise
5459

5560
reglist = []
5661

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ and for running the tests:
114114
* `pytest-rerunfailures <https://github.com/pytest-dev/pytest-rerunfailures>`__
115115

116116
The following packages are optional dependencies and are required for the
117-
full functionality of the `~astroquery.mocserver` module:
117+
full functionality of the `~astroquery.mocserver`, `~astroquery.alma`, and `~astroquery.xmatch` modules:
118118

119119
* `astropy-healpix <http://astropy-healpix.readthedocs.io/en/latest/>`_
120120
* `regions <https://astropy-regions.readthedocs.io/en/latest/>`_

0 commit comments

Comments
 (0)