Comments (8)
Today in new ways to fail writing a bug report: not actually listing the failure.
The failing test cases raise ValueError: invalid digits
from gmpy.
I believe I've fixed this in the upcoming 2.1.3 release. Can you test the appropriate binary wheel contained in https://github.com/aleaxit/gmpy/suites/8231102535/artifacts/359235281 ?
from gmpy.
Ill be honest I have no Idea how to install a wheel directly. My bugs were fixed by installing gmpy2 master. I couldn't find a 2.1.3 tag or branch to install.
I do have a new bug though that is probably related.
Passing tests:
with gmpy2.local_context(subnormalize=False):
assert gmpy2.is_signed(gmpy2.mpfr('-0'))
with gmpy2.local_context(subnormalize=False):
assert gmpy2.is_signed(gmpy2.mpfr(float('-0')))
with gmpy2.local_context(subnormalize=True):
assert gmpy2.is_signed(gmpy2.mpfr(float('-0')))
Failing test:
with gmpy2.local_context(subnormalize=True):
assert gmpy2.is_signed(gmpy2.mpfr('-0'))
If it is helpful in the passing test repr(negative_zero) == "mpfr('-0.0')"
.
Where in the failing test repr(negative_zero) == "mpfr('0.0')"
.
from gmpy.
@casevh Would you expect the above to be solved in the 2.1.3 release
from gmpy.
from gmpy.
It was fixed in 2.1.3. I did an updated 2.1.4 release that solved multiple issues with building wheels. The normal pip install process should work.
from gmpy.
@casevh, probably this can be closed.
from gmpy.
Thanks for finding and reporting the bug.
Case
from gmpy.
Related Issues (20)
- Dead paper link in comments
- 2.2.0: change in tagging convention? 🤔 HOT 8
- Abnormal situation of converting "mpz" to "str" HOT 4
- gmpy2 Sieve Example Code Problem HOT 10
- Add .bit_count() to xmpz type
- Type declarations to allow integration with type checking and linting tools HOT 2
- Probably incorrect error message. HOT 17
- Invalid mpq.__float__? HOT 5
- Intentional fallthroughs?
- Intentional fallthroughs? HOT 2
- format() should take into account rounding mode of the context?
- Incorrect signature for gmpy2.digits() in docs
- "Invalid conversion specification" error for align '=' value in format spec HOT 1
- Change defaults for format-style printing? HOT 1
- Conversion from mpz to numpy longdouble is incorrect HOT 10
- support in using gmpy2 HOT 6
- gmpy2 does not support trillion-digit Pi calculations. HOT 6
- Memory leak in gmpy2_cache HOT 9
- Memory leak when using gmpy2.ieee context manager HOT 3
- Access to abs() from C interface HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmpy.