Skip to content

MRG: Deprecate frequencies -> freqs - #4561

Merged
agramfort merged 6 commits into
mne-tools:masterfrom
larsoner:dep
Sep 19, 2017
Merged

agramfort merged 6 commits into
mne-tools:masterfrom
larsoner:dep

Conversation

@larsoner

@larsoner larsoner commented Sep 14, 2017 •

Copy link
Copy Markdown
Member

I actually hit this case today, so I figured I'd start a PR to fix #4116.

WIP because I've only fixed one, and haven't updated any tests.

Closes #4116.

@larsoner larsoner changed the title WIP: Deprecate frequencies -> freqs MRG: Deprecate frequencies -> freqs Sep 14, 2017
@larsoner

Copy link
Copy Markdown
Member Author

Okay this one should be good to go now

@larsoner larsoner added this to the 0.15 milestone Sep 14, 2017
@codecov-io

codecov-io commented Sep 15, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #4561 into master will decrease coverage by 0.01%.
The diff coverage is 92.17%.

@@            Coverage Diff             @@
##           master    #4561      +/-   ##
==========================================
- Coverage   87.05%   87.04%   -0.02%     
==========================================
  Files         349      349              
  Lines       65692    65709      +17     
  Branches    10191    10195       +4     
==========================================
+ Hits        57188    57196       +8     
- Misses       5626     5633       +7     
- Partials     2878     2880       +2


@property
def frequencies(self):
"""Deprecated and will be removed in 0.16. use freqs."""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you don't warn

Comment thread mne/time_frequency/csd.py

@property
def frequencies(self):
"""Deprecated and will be removed in 0.16. Use freqs."""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

Comment thread mne/time_frequency/csd.py Outdated
@@ -150,8 +156,8 @@ def csd_epochs(epochs, mode='multitaper', fmin=0, fmax=np.inf,
sfreq = epochs.info['sfreq']
orig_frequencies = fftfreq(n_fft, 1. / sfreq)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

orig_frequencies -> orig_freqs

@larsoner

Copy link
Copy Markdown
Member Author

Rebased, comments, addressed, and fixed a couple unnecessary general FFT -> RFFT uses

@agramfort

Copy link
Copy Markdown
Member

appveyor is not happy

@larsoner

Copy link
Copy Markdown
Member Author

Latest commit should make CIs happy, and it fixes a bug in our multitaper PSD computations having to do with DC and Nyquist terms.

@agramfort
agramfort merged commit f944396 into mne-tools:master Sep 19, 2017
@agramfort

Copy link
Copy Markdown
Member

thx @larsoner

@larsoner
larsoner deleted the dep branch September 19, 2017 14:28
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.

Consistency in naming freqs vs. frequencies

3 participants