Skip to content

How to ask for/query data in dataset with arrays as parameters. #5683

Discussion options

You must be logged in to vote

I have solve this myself. I will attach the piece of code just in case anyone need it:

baseline_id = da.argmax((baseline_obj.dataset.ANTENNA1.data[None, :] == antenna1_ids[:, None]) & (baseline_obj.dataset.ANTENNA2.data[None, :] == antenna2_ids[:, None]), axis=1).astype(np.int32)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@miguelcarcamov
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by miguelcarcamov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants