Skip to content

Commit

Permalink
updated map_from_numpy_array
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jun 7, 2019
1 parent 589aa21 commit 056c91c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/guide/data_types/maps.rst
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions examples/map/map_from_numpy_array.py
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 056c91c

Please sign in to comment.