Skip to content

Commit

Permalink
Replace pformat_all() with pformat()
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Jan 4, 2025
1 parent 445e1c8 commit c003f24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions sparkles/tests/test_find_er_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def test_get_candidate_and_filter_stars(proseco_agasc_1p7, ATT, T_CCD, DATE):
def test_find_er_catalog_minus_2_pitch_bins(proseco_agasc_1p7, ACA, ATTS):
# Try it all for the bad field near PKS 0023-26
acar, att_opts = find_er_catalog(ACA, ATTS, alg="pitch_bins")
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat_all(), width=100)
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat(), width=100)
assert acar is att_opts["acar"][8]
assert att_opts[TEST_COLS].pformat_all() == [
assert att_opts[TEST_COLS].pformat() == [
"dpitch dyaw count_9th count_10th count_all count_ok n_critical att ",
"------ ----- --------- ---------- --------- -------- ---------- -----------------",
" -0.01 3.10 4.18 6.00 5.65 True 2 7.66 -25.21 29.3",
Expand All @@ -112,9 +112,9 @@ def test_find_er_catalog_minus_2_pitch_bins(proseco_agasc_1p7, ACA, ATTS):

def test_find_er_catalog_minus_2_count_all(proseco_agasc_1p7, ACA, ATTS):
acar, att_opts = find_er_catalog(ACA, ATTS, alg="count_all")
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat_all(), width=100)
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat(), width=100)
assert acar is att_opts["acar"][8]
assert att_opts[TEST_COLS].pformat_all() == [
assert att_opts[TEST_COLS].pformat() == [
"dpitch dyaw count_9th count_10th count_all count_ok n_critical att ",
"------ ----- --------- ---------- --------- -------- ---------- -----------------",
" -0.01 3.10 4.18 6.00 5.65 True -- 7.66 -25.21 29.3",
Expand All @@ -134,9 +134,9 @@ def test_find_er_catalog_minus_2_count_all(proseco_agasc_1p7, ACA, ATTS):

def test_find_er_catalog_minus_2_input_order(proseco_agasc_1p7, ACA, ATTS):
acar, att_opts = find_er_catalog(ACA, ATTS, alg="input_order")
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat_all(), width=100)
# import pprint; pprint.pprint(att_opts[TEST_COLS].pformat(), width=100)
assert acar is att_opts["acar"][8]
assert att_opts[TEST_COLS].pformat_all() == [
assert att_opts[TEST_COLS].pformat() == [
"dpitch dyaw count_9th count_10th count_all count_ok n_critical att ",
"------ ----- --------- ---------- --------- -------- ---------- -----------------",
" -0.01 3.10 4.18 6.00 5.65 True 2 7.66 -25.21 29.3",
Expand Down
2 changes: 1 addition & 1 deletion sparkles/tests/test_yoshi.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ def test_acar_from_ocat(proseco_agasc_1p7):
]

cols = ("idx", "slot", "id", "type", "mag", "yang", "zang")
assert acar[cols].pformat_all() == exp
assert acar[cols].pformat() == exp

0 comments on commit c003f24

Please sign in to comment.