From c003f248f08cb135029992889b8d2836b932f0eb Mon Sep 17 00:00:00 2001 From: Tom Aldcroft Date: Sat, 4 Jan 2025 07:24:47 -0500 Subject: [PATCH] Replace pformat_all() with pformat() --- sparkles/tests/test_find_er_catalog.py | 12 ++++++------ sparkles/tests/test_yoshi.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sparkles/tests/test_find_er_catalog.py b/sparkles/tests/test_find_er_catalog.py index cf94499..fbdb547 100644 --- a/sparkles/tests/test_find_er_catalog.py +++ b/sparkles/tests/test_find_er_catalog.py @@ -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", @@ -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", @@ -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", diff --git a/sparkles/tests/test_yoshi.py b/sparkles/tests/test_yoshi.py index 83a5ee9..de750de 100644 --- a/sparkles/tests/test_yoshi.py +++ b/sparkles/tests/test_yoshi.py @@ -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