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

problem with pwr_spec #1068

Open
jameswilburlewis opened this issue Dec 17, 2024 · 0 comments
Open

problem with pwr_spec #1068

jameswilburlewis opened this issue Dec 17, 2024 · 0 comments
Labels
analysis Issues pertaining to general purpose analysis tools bug Something isn't working pytplot Issues involving the pytplot package

Comments

@jameswilburlewis
Copy link
Contributor

See MAVENSDC/PyTplot#231

It looks like the "name" keyword was updated to "newname", but the references to "name" in the function weren't updated:

https://github.com/MAVENSDC/PyTplot/blob/matplotlib-backend/pytplot/tplot_math/pwr_spec.py

Also, there isn't a check for whether the tplot variable actually exists in this function, so it crashes when you give it a variable name that doesn't exist:

x, y = d[0], d[1]
       ~^^^
TypeError: 'NoneType' object is not subscriptable
@jameswilburlewis jameswilburlewis added bug Something isn't working pytplot Issues involving the pytplot package analysis Issues pertaining to general purpose analysis tools labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Issues pertaining to general purpose analysis tools bug Something isn't working pytplot Issues involving the pytplot package
Projects
None yet
Development

No branches or pull requests

1 participant