question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing times of interest to time-frequency functions

See original GitHub issue

What do you think about adding the ability to specify timepoints of interest in high-level time-frequency functions (like tfr_morlet)? Currently one would have to use for example epochs.time_as_index(times_of_interest) and then create a slice to pass to decim. It’s works ok for me but is not very intuitive for newcomers. If you are 👍 then the API could be:

  • passing a slice constructed from floats to decim would be interpreted as time in seconds and translated to relevant integer slice
  • a separate parameter, for example times or toi (after fieldtrip from times of interest) that would take an array-like of floats (or float slice)

I prefer option 2 because it is more intuitive to use times than decim to select relevant timepoints.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
mmagnuskicommented, Aug 30, 2016

Farewell my dear issue then… ⛄

0reactions
kingjrcommented, Aug 30, 2016

you can close the issue 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time–frequency analysis - Wikipedia
The practical motivation for time–frequency analysis is that classical Fourier analysis assumes that signals are infinite in time or periodic, while many ...
Read more >
Time-frequency decomposition - SEG Wiki
We can now call this function, passing it a frequency f = 261.63 Hz. We'll ask for 0.25 s, with a sample rate...
Read more >
Time-Frequency Analysis of Time-Varying Signals and Non ...
We return to the signal example presented in Figure 4.4, two complex-valued Gaus- sian functions, centered at times t1 = 20 and t2...
Read more >
Tutorial 24: Time-frequency - Biomedical Imaging Group
This tutorial introduces how to compute time-frequency decomposition ... A lot of the information of interest is carried by oscillations at ...
Read more >
Time Frequency Analysis & Fourier Transforms - YouTube
COURSE WEBPAGE: Inferring Structure of Complex Systemshttps://faculty.washington.edu/kutz/am563/am563.htmlThis lecture gives an introduction ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found