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

ri_ind needs a catch #6

Closed
voytek opened this issue Aug 18, 2017 · 2 comments
Closed

ri_ind needs a catch #6

voytek opened this issue Aug 18, 2017 · 2 comments

Comments

@voytek
Copy link
Contributor

voytek commented Aug 18, 2017

435 
436             # This is in index values - convert to frequency

--> 437 shortest_side = min(abs(le_ind - max_index), abs(ri_ind - max_index))
438 guess_bw = shortest_side * 2 * self.freq_res
439

UnboundLocalError: local variable 'ri_ind' referenced before assignment

@TomDonoghue
Copy link
Member

Pushed. Needs running a bit to make sure it doesn't introduce any other oddities.

@TomDonoghue
Copy link
Member

Yes! Found the cleaner / more elegant way to code the index searches (using next), and cleaned up that section. Updated - though functionality shouldn't have changed. This should be good now.

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

No branches or pull requests

2 participants