<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/polynomial/tests, branch main</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: Add fixture to avoid issue with randomizing test order.</title>
<updated>2023-01-05T05:00:54+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2023-01-05T05:00:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=068249d794de153bc98b69189944dcffdc85a162'/>
<id>068249d794de153bc98b69189944dcffdc85a162</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added pickle test for polynomials</title>
<updated>2022-11-26T21:14:09+00:00</updated>
<author>
<name>Matteo Raso</name>
<email>matteo_luigi_raso@protonmail.com</email>
</author>
<published>2022-11-26T21:14:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ab24072afa1beefd54e72377c500b61400e04a5c'/>
<id>ab24072afa1beefd54e72377c500b61400e04a5c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Polynomials now copy properly (#22669)</title>
<updated>2022-11-25T05:28:35+00:00</updated>
<author>
<name>Matteo Raso</name>
<email>matteo_luigi_raso@protonmail.com</email>
</author>
<published>2022-11-25T05:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=3b9c49e5bb47a979fedb151e36f4e3a00724b096'/>
<id>3b9c49e5bb47a979fedb151e36f4e3a00724b096</id>
<content type='text'>
On line 502, self.symbol.copy() was called, which
causes an AttributeError, since self.symbol is a
string, so it doesn't have a copy() method. To fix
it, I simply removed the copy() and directly assigned
the string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On line 502, self.symbol.copy() was called, which
causes an AttributeError, since self.symbol is a
string, so it doesn't have a copy() method. To fix
it, I simply removed the copy() and directly assigned
the string.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: limit the number of decimals in Polynomial representation (#21654)</title>
<updated>2022-06-14T16:58:32+00:00</updated>
<author>
<name>Lev Maximov</name>
<email>axil.github@gmail.com</email>
</author>
<published>2022-06-14T16:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=a5535dc6242b0decae1e65a3d4feb220fefedc49'/>
<id>a5535dc6242b0decae1e65a3d4feb220fefedc49</id>
<content type='text'>
* limit the number of decimals in Polynomial representation

* tests pass

* parenthesize exponential notation in polynomials

* fixed a long line warning

* added polynomial printoptions tests

* polynomial printoptions typo fixed

* made switch to exp notation in polynomial display more natural

* added a test on switching polynomials to exp notation

* fixed linter errors/warnings

* support for nanstr and infstr printoptions in polynomials

* 10^8 threshold for switching to exp notation when displaying polynomials

* merged in PR #21696 fixing issue #21695

* made linter happy

* made some docstring tests pass

* fixed the docs

Co-authored-by: Lev Maximov &lt;lev.maximov@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* limit the number of decimals in Polynomial representation

* tests pass

* parenthesize exponential notation in polynomials

* fixed a long line warning

* added polynomial printoptions tests

* polynomial printoptions typo fixed

* made switch to exp notation in polynomial display more natural

* added a test on switching polynomials to exp notation

* fixed linter errors/warnings

* support for nanstr and infstr printoptions in polynomials

* 10^8 threshold for switching to exp notation when displaying polynomials

* merged in PR #21696 fixing issue #21695

* made linter happy

* made some docstring tests pass

* fixed the docs

Co-authored-by: Lev Maximov &lt;lev.maximov@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Add support for symbol to polynomial package (#16154)</title>
<updated>2022-06-01T22:02:43+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2022-06-01T22:02:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=b84a53df9346a73fe8f6df0aaad8727f9bf56076'/>
<id>b84a53df9346a73fe8f6df0aaad8727f9bf56076</id>
<content type='text'>
Adds a symbol attribute to the polynomials from the np.polynomial package to allow the user to control/modify the symbol used to represent the independent variable for a polynomial expression. This attribute corresponds to the variable attribute of the poly1d class from the old np.lib.polynomial module.

Marked as draft for now as it depends on #15666 - all _str* and _repr* methods of ABCPolyBase and derived classes would need to be modified (and tested) to support this change.

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds a symbol attribute to the polynomials from the np.polynomial package to allow the user to control/modify the symbol used to represent the independent variable for a polynomial expression. This attribute corresponds to the variable attribute of the poly1d class from the old np.lib.polynomial module.

Marked as draft for now as it depends on #15666 - all _str* and _repr* methods of ABCPolyBase and derived classes would need to be modified (and tested) to support this change.

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>TST: increase error tol from 12 to 11 decimal places for test_approximation</title>
<updated>2021-08-24T15:54:52+00:00</updated>
<author>
<name>Raghuveer Devulapalli</name>
<email>raghuveer.devulapalli@intel.com</email>
</author>
<published>2021-07-15T21:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=84ced527f53a0a2e0b937ece69c56fd57fd391d1'/>
<id>84ced527f53a0a2e0b937ece69c56fd57fd391d1</id>
<content type='text'>
SVML library is accurate upto 4ULP and hence reduces the accuracy
slightly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVML library is accurate upto 4ULP and hence reduces the accuracy
slightly
</pre>
</div>
</content>
</entry>
<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>
</feed>
