Skip to content

Commit 1480813

Browse files
authored
Merge pull request #183 from ryanhammonds/sphinx
[DOC] Intersphinx link to neurodsp
2 parents 7a520c4 + 887263f commit 1480813

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,7 @@
138138
'reference_url': {'fooof': None},
139139
'remove_config_comments': True,
140140
}
141+
142+
intersphinx_mapping = {
143+
'neurodsp': ('https://neurodsp-tools.github.io/neurodsp/', None),
144+
}

motivations/concepts/plot_DoYouEvenOscillate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646

4747
# Use NeuroDSP for time series simulations & analyses
4848
from neurodsp import sim
49-
from neurodsp.utils import create_times, set_random_seed
49+
from neurodsp.utils import create_times
5050
from neurodsp.spectral import compute_spectrum_welch
5151
from neurodsp.plts import plot_time_series, plot_power_spectra
5252

5353
###################################################################################################
5454

5555
# Set random seed, for consistency generating simulated data
56-
set_random_seed(21)
56+
sim.set_random_seed(21)
5757

5858
# Simulation Settings
5959
n_seconds = 2

motivations/concepts/plot_IfYouFilterTheyWillCome.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
from fooof.bands import Bands
3434

3535
# Imports from NeuroDSP to simulate & plot time series
36-
from neurodsp.sim import sim_powerlaw
36+
from neurodsp.sim import sim_powerlaw, set_random_seed
3737
from neurodsp.filt import filter_signal
3838
from neurodsp.plts import plot_time_series
39-
from neurodsp.utils import create_times, set_random_seed
39+
from neurodsp.utils import create_times
4040

4141
###################################################################################################
4242

@@ -96,8 +96,8 @@
9696
band_sig = filter_signal(sig, s_rate, 'bandpass', f_range)
9797

9898
# Plot the time series of the current band, and adjust plot aesthetics
99-
plot_time_series(times, band_sig, title=label + ' ' + str(f_range), ax=ax)
100-
ax.set_xlim(0, n_seconds); ax.set_ylim(-1, 1); ax.set_xlabel('');
99+
plot_time_series(times, band_sig, title=label + ' ' + str(f_range), ax=ax,
100+
xlim=(0, n_seconds), ylim=(-1, 1), xlabel='')
101101

102102
###################################################################################################
103103
#
@@ -159,8 +159,7 @@
159159
band_sig = filter_signal(sig_delta_ap, s_rate, 'bandpass', bands.beta)
160160

161161
# Plot the filtered time series
162-
plot_time_series(times, band_sig)
163-
plt.xlim(0, n_seconds); plt.ylim(-1, 1);
162+
plot_time_series(times, band_sig, xlim=(0, n_seconds), ylim=(-1, 1))
164163

165164
###################################################################################################
166165
#
@@ -177,8 +176,7 @@
177176
band_sig = filter_signal(sig_delta_ap, s_rate, 'bandpass', bands.high_gamma)
178177

179178
# Plot the filtered time series
180-
plot_time_series(times, band_sig)
181-
plt.xlim(0, n_seconds); plt.ylim(-1, 1);
179+
plot_time_series(times, band_sig, xlim=(0, n_seconds), ylim=(-1, 1))
182180

183181
###################################################################################################
184182
#

0 commit comments

Comments
 (0)