[5.0.2] test_sip_hst fails: additional parameter A_2_2
See original GitHub issueDescription
When trying to package 5.0.2 for Debian, I observed a failure for test_sip_hst()
in that str(sip)
returns one additional parameter.
Actual behavior
_____________________________________________ test_sip_hst ______________________________________________
def test_sip_hst():
"""Test SIP against astropy.wcs"""
[…]
# Test representations
assert repr(sip) ==\
"<SIP([<Shift(offset=-2048.)>, <Shift(offset=-1024.)>, " +\
"<_SIP1D(4, 'A', A_2_0=0.00000855, A_3_0=-0., A_4_0=0., A_0_2=0.00000217, " +\
"A_0_3=0., A_0_4=0., A_1_1=-0.0000052, A_1_2=-0., A_1_3=-0., " +\
"A_2_1=-0., A_2_2=0., A_3_1=0.)>, " +\
"<_SIP1D(4, 'B', B_2_0=-0.00000175, B_3_0=0., B_4_0=-0., B_0_2=-0.00000722, " +\
"B_0_3=-0., B_0_4=-0., B_1_1=0.00000618, B_1_2=-0., B_1_3=0., " +\
"B_2_1=-0., B_2_2=-0., B_3_1=-0.)>])>"
> assert str(sip) ==\
[…]
E AssertionError: assert 'Model: SIP\n...5487476e-15\n' == 'Model: SIP\n...5487476e-15\n'
E Skipping 487 identical leading characters in diff, use -v to show
E - A_3_1
E + A_2_2 A_3_1
E - --------------------- ---------------------- ... ---------------------
E + --------------------- ---------------------- ... --------------------- ---------------------
E ? ++++++++++++++++++++++
E - 8.551277582556502e-06 -4.730444829222791e-10 ... 1.971022971660309e-15...
E
E ...Full output truncated (20 lines hidden), use '-vv' to show
astropy/modeling/tests/test_polynomial.py:356: AssertionError
I don’t know whether this is similar to #12948 connected to a different line width or a real difference. Since the assert repr(sip)
passes, this is probably really a problem with the representation in __str__
.
System Details
Linux-5.16.0-3-amd64-x86_64-with-glibc2.33 Python 3.9.10 (main, Feb 22 2022, 13:54:07) (also with Python 3.10) Numpy 1.21.5 pyerfa 2.0.0.1 Scipy 1.7.3 Matplotlib 3.5.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see the same issue on 5.0.1.
The problem is really the width of the terminal: when I start it in a 80x24 terminal, it works fine while on a bigger one this (and #12948) fail (GNOME-Terminal 3.34.90, width=136 chars as an example).
@olebole try #12953 and see if that fixes your bugs. Please leave a review reflecting your findings.