Skip to content

Commit

Permalink
Merge b80fdda into cb8da72
Browse files Browse the repository at this point in the history
  • Loading branch information
robelgeda committed Oct 10, 2019
2 parents cb8da72 + b80fdda commit f60f1af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = ''
# html_logo = ''

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = ''
html_favicon = 'img/logo_icon.svg'

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down
26 changes: 13 additions & 13 deletions docs/spectral_regions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ One can also delete a sub-region:
>>> del sr[1]
>>> sr #doctest:+SKIP
[(<Quantity 0.15 um>, <Quantity 0.2 um>),
(<Quantity 0.45 um>, <Quantity 0.6 um>),
(<Quantity 0.8 um>, <Quantity 0.9 um>),
(<Quantity 1. um>, <Quantity 1.2 um>),
(<Quantity 1.3 um>, <Quantity 1.5 um>)]
Spectral Region, 5 sub-regions:
(0.15 um, 0.2 um) (0.45 um, 0.6 um) (0.8 um, 0.9 um)
(1.0 um, 1.2 um) (1.3 um, 1.5 um)
There is also the ability to iterate:

Expand All @@ -118,12 +116,12 @@ There is also the ability to iterate:
>>> for s in sr:
... print(s.lower) #doctest:+SKIP
SpectralRegion: 0.15 um - 0.2 um
SpectralRegion: 0.3 um - 0.4 um
SpectralRegion: 0.45 um - 0.6 um
SpectralRegion: 0.8 um - 0.9 um
SpectralRegion: 1.0 um - 1.2 um
SpectralRegion: 1.3 um - 1.5 um
0.15 um
0.3 um
0.45 um
0.8 um
1.0 um
1.3 um
And, lastly, there is the ability to invert a `~specutils.SpectralRegion` given a
Expand All @@ -142,8 +140,10 @@ defines the baseline/noise regions:
>>> sr_inverted = sr.invert(0.05*u.um, 3*u.um)
>>> sr_inverted #doctest:+SKIP
SpectralRegion: 0.05 um - 0.15 um, 0.2 um - 0.3 um, 0.4 um - 0.45 um, 0.6 um - 0.8 um, 0.9 um - 1.0 um, 1.2 um - 1 .3 um, 1.5 um - 3.0 um
Spectral Region, 7 sub-regions:
(0.05 um, 0.15 um) (0.2 um, 0.3 um) (0.4 um, 0.45 um)
(0.6 um, 0.8 um) (0.9 um, 1.0 um) (1.2 um, 1.3 um)
(1.5 um, 3.0 um)
Region Extraction
-----------------
Expand Down
2 changes: 1 addition & 1 deletion docs/spectrum1d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ common spectral axis.
>>> spec = Spectrum1D(spectral_axis=np.arange(5000, 5010)*u.AA, flux=np.random.sample((5, 10))*u.Jy)
>>> spec_slice = spec[0] #doctest:+SKIP
>>> spec_slice.wavelength #doctest:+SKIP
<Quantity [0., 1., 2., 3., 4., 5., 6., 7., 8., 9.] Angstrom>
<Quantity [5000., 5001., 5002., 5003., 5004., 5005., 5006., 5007., 5008., 5009.] Angstrom>
>>> spec_slice.flux #doctest:+SKIP
<Quantity [0.72722821, 0.32147784, 0.70256482, 0.04445197, 0.03390352,
0.50835299, 0.87581725, 0.50270413, 0.08556376, 0.53713355] Jy>
Expand Down

0 comments on commit f60f1af

Please sign in to comment.