[formatting]
This commit is contained in:
parent
9ed6d44c4e
commit
efcae6339e
@ -69,9 +69,7 @@ fig.show()
|
|||||||
print(f"Duration of the dataset {repro_d.duration}")
|
print(f"Duration of the dataset {repro_d.duration}")
|
||||||
print(f"Duration of the relacs {repro_r.duration}")
|
print(f"Duration of the relacs {repro_r.duration}")
|
||||||
# Resample the open-ephys data
|
# Resample the open-ephys data
|
||||||
|
|
||||||
sinus_resampled = signal.resample(sinus, len(sinus_r))
|
sinus_resampled = signal.resample(sinus, len(sinus_r))
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
@ -99,6 +97,8 @@ for oephys_lane, relacs_lane, names_lane in zip(oephys_lanes, relacs_lanes, name
|
|||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
#| echo: False
|
#| echo: False
|
||||||
fig = plot_line_comparision(t_r, t_r, np.roll(sinus_r, lags_lanes[0]), sinus_resampled, ["rolled sinus-relacs", "sinus-resampled-open-ephys"])
|
fig = plot_line_comparision(t_r, t, np.roll(stimulus_re, lags_lanes[-1]), stimulus_oe-np.mean(stimulus_oe), ["rolled sinus-relacs", "sinus-resampled-open-ephys"])
|
||||||
fig.show()
|
fig.show()
|
||||||
|
|
||||||
|
print(f"The lag of the whitenoise is {lags_lanes[-1] * (1/20_000) * 1000} milli seconds")
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user