-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Literal bit limit changed from 52 bits to 64 bits #894
Literal bit limit changed from 52 bits to 64 bits #894
Conversation
… but causes test failures.
…n ASDF tree, as well as removed all tests associated with that limit.
more than 64 bits can be used in the ASDF tree.
…es to the validation to use these new constants, as well as the tests validating number sizes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a minor comment and question below. 🚀
…e it doesn't apply anymore.
What should we do about uint64 arrays that are small enough to be auto inlined? For example this: import numpy as np
import asdf
arr = np.array([2**64 - 1], dtype=np.uint64)
with asdf.AsdfFile({"arr": arr}) as af:
af.write_to("test.asdf") results in the following error:
|
@@ -401,24 +401,6 @@ def test_auto_inline_masked_array(tmpdir): | |||
assert len(list(af.blocks.internal_blocks)) == 2 | |||
|
|||
|
|||
def test_auto_inline_large_value(tmpdir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep this test and rework it to cover the np.uint64 case?
Removal of the 52 bit limit for numbers in an ndarray (originally imposed for anticipated use with javascript), which allows usage for larger numbers. The
ndarray
is still limited by 64 bits by thedtype
. In addition to removing this validation check, thepytest
tests used to test the original limit have been removed as well.Resolves #891