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

Missing Local Variable in DAPHNEUnpacker #53

Open
aeoranday opened this issue Mar 14, 2024 · 0 comments
Open

Missing Local Variable in DAPHNEUnpacker #53

aeoranday opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aeoranday
Copy link
Member

aeoranday commented Mar 14, 2024

wvfm_data = None

In the case that one wants to load only the waveforms and not the ana_data, the object isn't assigned as ana_data = None and an UnboundLocalError occurs when reaching the return statement.

A hack is to request ana_data anyway by doing DAPHNEUnpacker(ana_data_prescale=1, wvfm_data_prescale=1) (could be any integers) and toss the returned result, but this is not ideal.

@aeoranday aeoranday added the bug Something isn't working label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant