Skip to content

Commit

Permalink
Fixes to text
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Ginsburg <keflavich@gmail.com>
  • Loading branch information
astrofrog and keflavich committed May 13, 2020
1 parent 7ce8d2a commit bff648d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/dask.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ take functions that apply to individual spectra or images, but this can be quite
spectral cubes. If possible, you should consider supplying a function that can accept 3-d cubes
and operate on all spectra or image slices in a vectorized way.

To demonstrate this, we will read in a large CASA dataset with 623 channels and 768x768 pixels in
To demonstrate this, we will read in a mid-sized CASA dataset with 623 channels and 768x768 pixels in
the image plane::

>>> large = SpectralCube.read('large_spectral_cube.image', format='casa_image', use_dask=True) # doctest: +SKIP
Expand All @@ -161,7 +161,7 @@ demonstration, we will set up the function ourselves and apply it with

By default, this function returns masked arrays, but to apply this to our
spectral cube, we need it to return a plain Numpy array with NaNs for the masked
values. In addition, the original function tends to return warnings which we want to
values. In addition, the original function tends to return warnings we want to
silence, so we can do this here too::

>>> import warnings
Expand Down
2 changes: 1 addition & 1 deletion spectral_cube/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ def test_save_to_tmp_dir(data_adv):
cube = DaskSpectralCube.read(data_adv)
cube_new = cube.sigma_clip_spectrally(3, save_to_tmp_dir=True)
# The following test won't necessarily always work in future since the name
# is not really guaranteed, but this is pragrmatic enough for now
# is not really guaranteed, but this is pragmatic enough for now
assert cube_new._data.name.startswith('from-zarr')

0 comments on commit bff648d

Please sign in to comment.