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 antennas error message #1291

Open
mkolopanis opened this issue May 19, 2023 · 0 comments
Open

Missing antennas error message #1291

mkolopanis opened this issue May 19, 2023 · 0 comments

Comments

@mkolopanis
Copy link
Member

I've been running into this error in a script lately, and without having a REPL to attach to it's basically impossible to diagnose for me. I was thinking maybe we should list the antennas which are not in the antenna_numbers array

if not set(np.unique(self.ant_1_array)).issubset(self.antenna_numbers):
raise ValueError("All antennas in ant_1_array must be in antenna_numbers.")
if not set(np.unique(self.ant_2_array)).issubset(self.antenna_numbers):
raise ValueError("All antennas in ant_2_array must be in antenna_numbers.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants