Skip to content

Fix TypeError in wavelet level computation#64

Open
zamanzadeh98 wants to merge 2 commits intoneurotuning:megfrom
zamanzadeh98:meg
Open

Fix TypeError in wavelet level computation#64
zamanzadeh98 wants to merge 2 commits intoneurotuning:megfrom
zamanzadeh98:meg

Conversation

@zamanzadeh98
Copy link
Copy Markdown

Hi,
I renamed self.wavelelet_level to self.level_used to fix a TypeError that occurred when self.wavelelet_level was set to "auto".
In that case, assigning level = self.wavelelet_level and then computing divisor = 2 ** level would fail because you can't raise 2 to the power of a string.
self.level_used now holds the resolved integer value, avoiding this issue.

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.

1 participant