From 056c91cc715ac172c9cd6e1d363c410340046eaa Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Fri, 7 Jun 2019 10:05:42 +0100 Subject: [PATCH] updated map_from_numpy_array --- docs/guide/data_types/maps.rst | 4 ++-- examples/map/map_from_numpy_array.py | 4 ++-- tox.ini | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guide/data_types/maps.rst b/docs/guide/data_types/maps.rst index 8a4143b1573..ee50a786303 100644 --- a/docs/guide/data_types/maps.rst +++ b/docs/guide/data_types/maps.rst @@ -146,8 +146,8 @@ An example of creating a header with these additional keywords:: >>> header = sunpy.map.header_helper.make_fitswcs_header(data, coord, ... reference_pixel = u.Quantity([5, 5]*u.pixel), ... scale = u.Quantity([2, 2] *u.arcsec/u.pixel), - ... instrument = 'Test case', detector = 'UV detector', - ... wavelength = 1000, waveunit = 'angstrom') + ... telescope = 'Test case', instrument = 'UV detector', + ... wavelength = 1000*u.angstrom) >>> header # doctest: +SKIP MetaDict([('wcsaxes', 2), ('crpix1', 5.0), diff --git a/examples/map/map_from_numpy_array.py b/examples/map/map_from_numpy_array.py index a2af520dd58..37febbebdd8 100644 --- a/examples/map/map_from_numpy_array.py +++ b/examples/map/map_from_numpy_array.py @@ -34,8 +34,8 @@ header = sunpy.map.header_helper.make_fitswcs_header(data, coord, reference_pixel=u.Quantity([0, 0]*u.pixel), scale=u.Quantity([2, 2]*u.arcsec/u.pixel), - instrument='Test case', detector='UV detector', - wavelength=1000, waveunit='angstrom') + telescope='Fake Telescope', instrument='UV detector', + wavelength=1000*u.angstrom) ############################################################################## # Let's now create our map. diff --git a/tox.ini b/tox.ini index e0faecacfa3..eaf84a45e58 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ changedir = tmp setenv = MPLBACKEND = agg COLUMNS = 180 - PYTEST_COMMAND = pytest --pyargs sunpy --cov=sunpy --cov-config={toxinidir}/setup.cfg --verbose -m "not figure" --durations=25 + PYTEST_COMMAND = pytest --pyargs sunpy --cov=sunpy --cov-config={toxinidir}/setup.cfg --verbose -m "not figure" --durations=25 {toxinidir}/docs extras = all,tests deps = astropydev,numpydev: cython @@ -20,7 +20,7 @@ deps = online: astroquery commands = offline,astropydev,numpydev: {env:PYTEST_COMMAND} {posargs} - online: {env:PYTEST_COMMAND} --reruns 2 --timeout=180 --remote-data=any {posargs} {toxinidir}/docs + online: {env:PYTEST_COMMAND} --reruns 2 --timeout=180 --remote-data=any {posargs} [testenv:build_docs] basepython = python3.7