<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/polynomial/tests, branch master</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>TST: Branch coverage improvement for `np.polynomial` (#18499)</title>
<updated>2021-02-28T08:58:54+00:00</updated>
<author>
<name>jbCodeHub</name>
<email>besselingcodehub@gmail.com</email>
</author>
<published>2021-02-28T08:58:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=592b71c8cd10ef3cf9bccebb6c3ed0198f105484'/>
<id>592b71c8cd10ef3cf9bccebb6c3ed0198f105484</id>
<content type='text'>
* added tests for vander_nd in test_polyutils to cover some of the missed branches

* added tests to polyline and vander to improve branch coverage

* added tests to test_legendre.py to improve branch coverage</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* added tests for vander_nd in test_polyutils to cover some of the missed branches

* added tests to polyline and vander to improve branch coverage

* added tests to test_legendre.py to improve branch coverage</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Fix crosstalk issues with polynomial str tests.</title>
<updated>2020-12-07T23:39:54+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2020-12-07T23:39:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=9235016e44f306b61fcc7805956654f65183c785'/>
<id>9235016e44f306b61fcc7805956654f65183c785</id>
<content type='text'>
Polynomial printing tests implicitly depended on calling
order, causing the test suite to fail when the test ordering was
randomized with the pytest-random plugin (gh-17954).

Two factors contributed to this:
 * Improper setting of class-level test config and
 * Poorly designed test that overrode an inherited class
   variable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Polynomial printing tests implicitly depended on calling
order, causing the test suite to fail when the test ordering was
randomized with the pytest-random plugin (gh-17954).

Two factors contributed to this:
 * Improper setting of class-level test config and
 * Poorly designed test that overrode an inherited class
   variable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #15666 from rossbar/enh/poly_str</title>
<updated>2020-06-04T05:38:30+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-06-04T05:38:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=821a18e55916d0d40227c58ea75f589ea3d9f078'/>
<id>821a18e55916d0d40227c58ea75f589ea3d9f078</id>
<content type='text'>
ENH: Improved `__str__` for polynomials</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENH: Improved `__str__` for polynomials</pre>
</div>
</content>
</entry>
<entry>
<title>Handle TypeError in _generate_str for coefs.</title>
<updated>2020-05-13T22:01:36+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2020-05-07T21:04:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=66365a57ff9b68a191fd232dc823cc2cf69d267f'/>
<id>66365a57ff9b68a191fd232dc823cc2cf69d267f</id>
<content type='text'>
Add a fallback for TypeErrors that are raised when attempting
to compare arbitrary elements (e.g. strings or Python complex)
to 0 in _generate_str.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a fallback for TypeErrors that are raised when attempting
to compare arbitrary elements (e.g. strings or Python complex)
to 0 in _generate_str.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Improved __str__, __format__ for polynomials</title>
<updated>2020-05-07T17:26:32+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2020-02-28T00:30:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=9c83b13ce1b08aed8181d284566d002086393a89'/>
<id>9c83b13ce1b08aed8181d284566d002086393a89</id>
<content type='text'>
Changes the printing style of instances of the convenience classes in
the polynomial package to a more "human-readable" format.
__str__ has been modified and __format__ added to ABCPolyBase, modifying
the string representation of polynomial instances, e.g. when printed.
__repr__ and the _repr_latex method (which is used in the Jupyter
environment are unchanged.

Two print formats have been added: 'unicode' and 'ascii'. 'unicode' is
the default mode on *nix systems, and uses unicode values for numeric
subscripts and superscripts in the polynomial expression. The 'ascii'
format is the default on Windows (due to font considerations) and uses
Python-style syntax to represent powers, e.g. x**2. The default
printing style can be controlled at the package-level with the
set_default_printstyle function.

The ABCPolyBase.__str__ has also been made to respect the linewidth
printoption. Other parameters from the printoptions dictionary are not
used.

Co-Authored-By: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changes the printing style of instances of the convenience classes in
the polynomial package to a more "human-readable" format.
__str__ has been modified and __format__ added to ABCPolyBase, modifying
the string representation of polynomial instances, e.g. when printed.
__repr__ and the _repr_latex method (which is used in the Jupyter
environment are unchanged.

Two print formats have been added: 'unicode' and 'ascii'. 'unicode' is
the default mode on *nix systems, and uses unicode values for numeric
subscripts and superscripts in the polynomial expression. The 'ascii'
format is the default on Windows (due to font considerations) and uses
Python-style syntax to represent powers, e.g. x**2. The default
printing style can be controlled at the package-level with the
set_default_printstyle function.

The ABCPolyBase.__str__ has also been made to respect the linewidth
printoption. Other parameters from the printoptions dictionary are not
used.

Co-Authored-By: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT,TST: Move _repr_latex tests to test_printing.</title>
<updated>2020-04-21T23:52:57+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2020-04-21T23:52:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=95c14c271f69333ce3e405ddeae1fa99024d0060'/>
<id>95c14c271f69333ce3e405ddeae1fa99024d0060</id>
<content type='text'>
Organizational refactoring - the tests for the polynomial _repr_latex
method were originally defined in test_classes.py. Based on the
descriptions of the various test files, it is a better fit in
test_printing.py.

Updated docstring to reflect that _repr_latex is used in Jupyter
environments, not IPython terminals (by default).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Organizational refactoring - the tests for the polynomial _repr_latex
method were originally defined in test_classes.py. Based on the
descriptions of the various test files, it is a better fit in
test_printing.py.

Updated docstring to reflect that _repr_latex is used in Jupyter
environments, not IPython terminals (by default).
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: simplify code that assumes str/unicode and int/long are different types (#15816)</title>
<updated>2020-03-26T17:50:20+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2020-03-26T17:50:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=1c58504eec43f9ba18ac835131fed496fb59772d'/>
<id>1c58504eec43f9ba18ac835131fed496fb59772d</id>
<content type='text'>
Cleanup from the dropping of python 2</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleanup from the dropping of python 2</pre>
</div>
</content>
</entry>
<entry>
<title>Updated files in polynomial/ to use fstrings</title>
<updated>2020-01-26T22:20:55+00:00</updated>
<author>
<name>Anton Ritter-Gogerly</name>
<email>anton@antonviktor.com</email>
</author>
<published>2020-01-26T03:12:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=764c25bb8a9e5be60455ac7d6947318efbbb93aa'/>
<id>764c25bb8a9e5be60455ac7d6947318efbbb93aa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Ragged cleanup (#15085)</title>
<updated>2020-01-15T17:51:57+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-01-15T17:51:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=87c04cb35aa7eda9372a61cf65939f13d32fa141'/>
<id>87c04cb35aa7eda9372a61cf65939f13d32fa141</id>
<content type='text'>
* TST: refactor sorter tests, use proper ragged array creation syntax

* MAINT: code never hit the exception, but would error when iterating

* MAINT: pytest.mark.parametrize did not add much, removing (from review)

* MAINT: use asanyarray and generalize (from review)

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* TST: refactor sorter tests, use proper ragged array creation syntax

* MAINT: code never hit the exception, but would error when iterating

* MAINT: pytest.mark.parametrize did not add much, removing (from review)

* MAINT: use asanyarray and generalize (from review)

Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove implicit inheritance from object class (#15236)</title>
<updated>2020-01-05T05:53:30+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-01-05T05:53:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=c31cc36a8a814ed4844a2a553454185601914a5a'/>
<id>c31cc36a8a814ed4844a2a553454185601914a5a</id>
<content type='text'>
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.

Dropping the object is more idiomatic Python.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.

Dropping the object is more idiomatic Python.</pre>
</div>
</content>
</entry>
</feed>
