Skip to content

Commit

Permalink
Merge 696b9a8 into cb8da72
Browse files Browse the repository at this point in the history
  • Loading branch information
robelgeda committed Oct 10, 2019
2 parents cb8da72 + 696b9a8 commit b5edeb2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
7 changes: 7 additions & 0 deletions docs/_static/specutils.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import url("bootstrap-astropy.css");

div.topbar a.brand {
background: transparent url("../img/logo_icon.png") no-repeat 8px 3px;
background-image: url("../img/logo_icon.png"), none;
background-size: 32px 32px;
}
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. To override the custom theme, set this to the
# name of a builtin theme or the name of a custom theme in html_theme_path.
#html_theme = None
html_static_path = ['_static']
html_style = 'specutils.css'

# Please update these texts to match the name of your package.
html_theme_options = {
Expand All @@ -133,12 +134,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 b5edeb2

Please sign in to comment.