Skip to content

Commit

Permalink
Tests simplification, docs code tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Dec 18, 2018
1 parent dea0859 commit af3c15b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ matrix:
- os: linux
env: NUMPY_VERSION=1.14

# Do a PEP8 test with flake8
- os: linux
env: MAIN_CMD='flake8 shocksgo --count --show-source --statistics $FLAKE8_OPT' SETUP_CMD=''

install:

# We now use the ci-helpers package to set up our testing environment.
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ shocksgo: Simple Harmonic Oscillator celerite kernels for stellar granulation an
Generate light curves of the Sun and stars accounting for the effects of granulation, supergranulation and p-mode oscillations.


For more information, `read the docs <https://shocksgo.readthedocs.io/>`_.

License
-------

Expand Down
4 changes: 3 additions & 1 deletion docs/shocksgo/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ We can check that the power spectrum of the fluxes that we've generated
reproduce the solar power spectrum::

import matplotlib.pyplot as plt
import numpy as np
import astropy.units as u
from scipy.signal import periodogram

Expand All @@ -49,6 +50,7 @@ reproduce the solar power spectrum::
plt.loglog(freq * 1e6, 2*np.pi*kernel.get_psd(2*np.pi*freq), alpha=0.7, label='Kernel')
plt.ylim([1e-10, 1e0])
plt.xlim([1e-2, 1e4])
plt.gca().set(xlabel='Frequency [$\mu$Hz]', ylabel='Power')
plt.show()


Expand Down Expand Up @@ -110,7 +112,7 @@ following::

# Stellar properties
M = 0.9 * M_sun
T_eff = 5340
T_eff = 5340 * u.K
L = 0.56 * L_sun

fluxes, kernel = generate_stellar_fluxes(size=1e7, M=M, T_eff=T_eff, L=L, cadence=60*u.s)
Expand Down

0 comments on commit af3c15b

Please sign in to comment.