Skip to content

Commit

Permalink
Merge pull request #84 from mhvk/fix-docs-simple-example
Browse files Browse the repository at this point in the history
Fix docs simple example
  • Loading branch information
mhvk authored Sep 26, 2024
2 parents dc3c84b + 9a89a94 commit 041a578
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ build:
apt_packages:
- graphviz

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

python:
install:
- method: pip
Expand Down
9 changes: 3 additions & 6 deletions docs/background/example_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ def simple_figure(th_par, magnification,
dynspec = np.abs(dynwave)**2

# Create conjugate and then secondary spectrum
cs = ConjugateSpectrum.from_dynamic_spectrum(dynspec, f=f, t=t, noise=0.,
d_eff=d_eff, mu_eff=mu_eff,
theta=th_par,
magnification=magnification)
tau = cs.tau
fd = cs.fd
cs = ConjugateSpectrum.from_dynamic_spectrum(dynspec, f=f, t=t, noise=0.)
tau = cs.tau << u.us
fd = cs.fd << u.mHz
secspec = cs.secspec

# Create dynamic wavefield
Expand Down

0 comments on commit 041a578

Please sign in to comment.