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

parse_ants behavior does not conform with documentation #20

Open
AaronParsons opened this issue Jul 24, 2017 · 0 comments
Open

parse_ants behavior does not conform with documentation #20

AaronParsons opened this issue Jul 24, 2017 · 0 comments

Comments

@AaronParsons
Copy link
Collaborator

The help message for the ant option in scripting.py says it would include 1_2 for "(-0,1)_(2,-3)":

Select ant_pol/baselines to include. Examples: all (all baselines) auto (of active baselines, only i=j) cross (only i!=j) 0,1,2 (any baseline involving listed ants) 0_2,0_3 (only listed baselines) "(0,1)(2,3)" (same as 0_2,0_3,1_2,2_3. Quotes help bash deal with parentheses) "(-0,1)(2,-3)" (exclude 0_2,0_3,1_3 include 1_2). Default is "cross". Select pol by adding appropriate x or y eg 5x_6y.

But function parse_ant gives the wrong result (515, 0, -1):

import aipy as ap
ap.scripting.parse_ants("(-0,1)_(2,-3)", 4)
[(259, 0, -1), (260, 0, -1), (515, 0, -1), (516, 0, -1)]
ap.miriad.bl2ij(259)
(0, 2)
ap.miriad.bl2ij(260)
(0, 3)
ap.miriad.bl2ij(515)
(1, 2)
ap.miriad.bl2ij(516)
(1, 3)

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