Skip to content

Commit

Permalink
Merge pull request #9510 from pllim/pr9182-follow-up
Browse files Browse the repository at this point in the history
MNT: Move change logs, fix test_earth.py AttributeError
  • Loading branch information
pllim committed Oct 30, 2019
2 parents 31a111c + b44139b commit ec95ff9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
38 changes: 20 additions & 18 deletions CHANGES.rst
Expand Up @@ -276,27 +276,14 @@ astropy.utils
session, using ``astropy.utils.iers.earth_rotation_table``. [#9244]

- Added ``export_cache`` and ``import_cache`` to permit transporting
downloaded data to machines with no Internet connection. Also
``check_download_cache`` to confirm that the persistent cache has not become
damaged. ``download_file`` and related functions now accept a list of fallback
sources, and they are able to update the cache at the user's request. Several new
functions are available to investigate the cache contents. [#9182]
downloaded data to machines with no Internet connection. Several new
functions are available to investigate the cache contents; e.g.,
``check_download_cache`` can be used to confirm that the persistent
cache has not become damaged. [#9182]

- A new ``astropy.utils.iers.LeapSeconds`` class has been added to track
leap seconds. [#9365]

- Allow ``astropy.utils.console.ProgressBarOrSpinner.map`` and
``.map_unordered`` to take an argument ``multiprocessing_start_method`` to
control how subprocesses are started; the different methods (``fork``,
``spawn``, and ``forkserver``) have different implications in terms of
security, efficiency, and behavioural anomalies. The option is useful in
particular for cross-platform testing because Windows supports only ``spawn``
while Linux defaults to ``fork``. [#9182]

- All operations that act on the astropy download cache now take an argument
``pkgname`` that allows one to specify which package's cache to use.
[#8237]

astropy.visualization
^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -351,7 +338,7 @@ astropy.wcs
- ``SlicedLowLevelWCS`` now raises ``IndexError`` rather than ``ValueError`` on
an invalid slice. [#9067]

- Added ``fit_wcs_from_points`` function to ``astropy.wcs.utils``. Fits a WCS
- Added ``fit_wcs_from_points`` function to ``astropy.wcs.utils``. Fits a WCS
object to set of matched detector/sky coordinates. [#9469]

API Changes
Expand Down Expand Up @@ -583,6 +570,21 @@ astropy.units
astropy.utils
^^^^^^^^^^^^^

- ``download_file`` and related functions now accept a list of fallback
sources, and they are able to update the cache at the user's request. [#9182]

- Allow ``astropy.utils.console.ProgressBarOrSpinner.map`` and
``.map_unordered`` to take an argument ``multiprocessing_start_method`` to
control how subprocesses are started; the different methods (``fork``,
``spawn``, and ``forkserver``) have different implications in terms of
security, efficiency, and behavioural anomalies. The option is useful in
particular for cross-platform testing because Windows supports only ``spawn``
while Linux defaults to ``fork``. [#9182]

- All operations that act on the astropy download cache now take an argument
``pkgname`` that allows one to specify which package's cache to use.
[#8237, #9182]

- Removed deprecated ``funcsigs`` and ``futures`` from
``astropy.utils.compat``. [#8909]

Expand Down
4 changes: 2 additions & 2 deletions astropy/coordinates/tests/test_earth.py
Expand Up @@ -303,8 +303,8 @@ def test_of_address(google_api_key):
loc = EarthLocation.of_address("New York, NY")
except NameResolveError as e:
# API limit might surface even here in Travis CI.
if 'unknown failure with' not in str(e.value):
pytest.xfail(str(e.value))
if 'unknown failure with' not in str(e):
pytest.xfail(str(e))
else:
assert quantity_allclose(loc.lat, NYC_lat, atol=NYC_tol)
assert quantity_allclose(loc.lon, NYC_lon, atol=NYC_tol)
Expand Down

0 comments on commit ec95ff9

Please sign in to comment.