Skip to content

Commit f2d94a8

Browse files
authored
Merge pull request #404 from sot/pformat
replace uses of pformat_all with pformat
2 parents 23db6ec + 54d4c19 commit f2d94a8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

proseco/diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_catalog_lines(
147147

148148
# Text representation of table with separator lines between GUI, MON, and
149149
# ACQ sections.
150-
lines = out.pformat_all()
150+
lines = out.pformat()
151151

152152
# Optionally divide the fid, guide, mon, and acq sections
153153
if section_lines:

proseco/tests/test_catalog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def test_monitors_and_target_offset_args():
748748
"-1700.0 1900.0 2 7.5 3",
749749
" 500.0 -500.0 2 7.5 2",
750750
]
751-
assert aca.monitors.pformat_all() == exp
751+
assert aca.monitors.pformat() == exp
752752
assert aca.target_offset is target_offset
753753

754754

proseco/tests/test_mon_full_cat.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_monitor_mon_fixed_auto(proseco_agasc_1p7, disable_overlap_penalty):
8888
" 6 13 134680 ACQ 8x8 1314.00 1085.73 28 1 160",
8989
]
9090

91-
assert aca[TEST_COLS].pformat_all() == exp
91+
assert aca[TEST_COLS].pformat() == exp
9292
assert aca.n_guide == 4 # Two of 6 guide slots become MON slots
9393

9494
mon = aca.get_id(1000, mon=True)
@@ -153,7 +153,7 @@ def test_full_catalog():
153153
" 5 11 100008 ACQ 8x8 400.00 400.00 8 1 60 10.50",
154154
]
155155

156-
assert aca[TEST_COLS + ["mag"]].pformat_all() == exp
156+
assert aca[TEST_COLS + ["mag"]].pformat() == exp
157157
assert aca.n_guide == 6 # One of 7 available guide slots becomes a MON
158158

159159

@@ -191,5 +191,5 @@ def test_mon_takes_guide():
191191
" 4 6 100000 ACQ 8x8 1500.00 0.00 28 1 160 6.50",
192192
]
193193

194-
assert aca[TEST_COLS + ["mag"]].pformat_all() == exp
194+
assert aca[TEST_COLS + ["mag"]].pformat() == exp
195195
assert aca.n_guide == 4 # One of 5 available guide slots becomes a MON

0 commit comments

Comments
 (0)