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

uvp_noise_error() needs more checking of inputs #349

Open
hughbg opened this issue Sep 16, 2021 · 0 comments
Open

uvp_noise_error() needs more checking of inputs #349

hughbg opened this issue Sep 16, 2021 · 0 comments

Comments

@hughbg
Copy link
Contributor

hughbg commented Sep 16, 2021

Related to #281 and #317.

I had an error in utils.py:uvp_noise_error. It is due to a certain combination of inputs. Here are the lines of code (at the top of the function) and the line where the error can occur:

# type checks
if isinstance(err_type, str):
    err_type = [err_type]

# get metadata if needed
if precomp_P_N is None:
    lsts = np.unique(auto_Tsys.lst_array)   <--- Crashes if auto_Tsys=None, which it could be if user didn’t supply it.
    freqs = auto_Tsys.freq_array[0]                      
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

1 participant