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

[MNT] - Fix order of reporting values in bw limits warning #268

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Conversation

TomDonoghue
Copy link
Member

@TomDonoghue TomDonoghue commented Jun 29, 2023

It turns out in our bandwidth limits warning, the variables were flipped such that it printed out wrong.

For example, with a frequency resolution of 1, and a bandwidth limit of 0.5, the current code would print:
FOOOF WARNING: Lower-bound peak width limit is < or ~= the frequency resolution: 1.00 <= 0.50

Which is unhelpfully wrong...

This PR fixes this, by switching the variables to report properly. From my checks, I think it is just the warning that prints out wrong - the actual checks of the values seem correct.

This responds to this issue as reported in #244

@voytek
Copy link
Contributor

voytek commented Jun 29, 2023

Oops! Glad it's not a code issue, just a warning issue.

@TomDonoghue TomDonoghue added the 1.1 Targetted for a fooof 1.1 release. label Jun 29, 2023
@TomDonoghue TomDonoghue merged commit 3649bbe into main Jun 29, 2023
@TomDonoghue TomDonoghue deleted the bwwarn branch June 29, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1 Targetted for a fooof 1.1 release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants