Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to Spectral & TimeFrequency #145

Merged
merged 6 commits into from
Mar 16, 2019
Merged

Updates to Spectral & TimeFrequency #145

merged 6 commits into from
Mar 16, 2019

Conversation

TomDonoghue
Copy link
Member

@TomDonoghue TomDonoghue commented Feb 28, 2019

Non API breaking refactors and clean ups of the spectral & time frequency module. (Somewhat related to #140 - but nothing that breaks anything here).

Main changes:

  • Split up sub-function for settings checking, discarding outliers and sub-selecting from spectra
  • Split out the different compute spectrum methods
  • Get time frequency to borrow & use the utility functions that were split out in filter (get rid of duplicated code within timefrequency, and across the package. This includes moving & renaming a 'infer_passtype' from tf -> filt.

Notably, this fixes a bug in which the old version would fail out if you tried to discard outliers in compute_spectrum with a 1d signal.

@TomDonoghue TomDonoghue changed the title Spectral Updates to Spectral Feb 28, 2019
@TomDonoghue TomDonoghue changed the title Updates to Spectral Updates to Spectral & TimeFrequency Mar 3, 2019
@neurodsp-tools neurodsp-tools deleted a comment from codecov-io Mar 3, 2019
@neurodsp-tools neurodsp-tools deleted a comment from codecov-io Mar 4, 2019
@TomDonoghue TomDonoghue requested review from rdgao and voytek March 4, 2019 06:58
@TomDonoghue TomDonoghue requested review from rdgao and voytek and removed request for voytek and rdgao March 12, 2019 23:35
Copy link
Contributor

@rdgao rdgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment on _infer_passtype, but otherwise looks great!

neurodsp/filt.py Show resolved Hide resolved
@TomDonoghue
Copy link
Member Author

Alright - merging this one in!

@TomDonoghue TomDonoghue merged commit c01655a into master Mar 16, 2019
@TomDonoghue TomDonoghue deleted the spectral branch March 16, 2019 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants