Skip to content

Commit

Permalink
fixed test in test_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed Jul 7, 2018
1 parent 283fde8 commit 084c1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hera_pspec/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def test_config_pspec_blpairs(self):
uv_template = os.path.join(DATA_PATH, "zen.{group}.{pol}.LST.1.28828.uvOCRSA")
groupings = utils.config_pspec_blpairs(uv_template, [('xx', 'xx')], [('even', 'odd')], verbose=False)
nt.assert_equal(len(groupings), 1)
nt.assert_equal(groupings.keys()[0], (('xx', 'even'), ('xx', 'odd')))
nt.assert_equal(groupings.keys()[0], (('even', 'odd'), ('xx', 'xx')))
nt.assert_equal(len(groupings.values()[0]), 11833)

# test multiple, some non-existant pairs
groupings = utils.config_pspec_blpairs(uv_template, [('xx', 'xx'), ('yy', 'yy')], [('even', 'odd'), ('even', 'odd')], verbose=False)
nt.assert_equal(len(groupings), 1)
nt.assert_equal(groupings.keys()[0], (('xx', 'even'), ('xx', 'odd')))
nt.assert_equal(groupings.keys()[0], (('even', 'odd'), ('xx', 'xx')))

# test xants
groupings = utils.config_pspec_blpairs(uv_template, [('xx', 'xx')], [('even', 'odd')], xants=[0, 1, 2], verbose=False)
Expand Down

0 comments on commit 084c1d8

Please sign in to comment.