-
Notifications
You must be signed in to change notification settings - Fork 97
numcodecs.zfpy is ready #229
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
Conversation
I can add 3.9 wheels. Someone recently requested this, but at the time I wasn't sure if we require MB_ML_VER=2010 on Linux as we do for 3.8. I can't seem to find the thread where this was discussed. Does anyone know? |
Honestly I think a new release of zfpy is probably more important than Python 3.9 support. I don’t know how much work that would be though |
I used zfpy==0.5.5; python_version <'3.9'
Looks like it worked, zfpy was ignored.
But I got error at Build Docs
autodoc: failed to import class 'ZFPY' from module 'numcodecs.zfpy'; the
following exception was raised:
93Traceback (most recent call last):
94 File
"/opt/hostedtoolcache/Python/3.9.2/x64/lib/python3.9/site-packages/sphinx/util/inspect.py",
line 393, in safe_getattr
95 return getattr(obj, name, *defargs)
96
AttributeError: module 'numcodecs.zfpy' has no attribute 'ZFPY'
How can I skip it?
…On Wed, Mar 17, 2021 at 5:37 PM jakirkham ***@***.***> wrote:
Honestly I think a new release of zfpy is probably more important than
Python 3.9 support. I don’t know how much work that would be though
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFCNNM5KOLN5CJDHRZDTEE4KLANCNFSM4MM553EQ>
.
|
We've essentially frozen new features and are working on tests and documentation for zfp 0.5.6. Shouldn't be too much longer. But once we do the release, it would make sense to include Python 3.9. |
Yep that makes sense. Knew that work towards a release was ongoing. So didn't want to ask for more things, but yeah agree that it makes sense to support Python 3.9 at the same time |
@jakirkham, I tried autodoc_mock_imports, it doesn't work. Can I remove
zfpy.rst temporarily?
…On Wed, Mar 17, 2021 at 7:07 PM jakirkham ***@***.***> wrote:
Yep that makes sense. Knew that work towards a release was ongoing. So
didn't want to ask for more things, but yeah agree that it makes sense to
support Python 3.9 at the same time
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFCB26ADWJJRXS2EC3TTEFG5HANCNFSM4MM553EQ>
.
|
Could we just skip building the docs on Python 3.9? Maybe build them on Python 3.8 instead? |
I cannot figure out how to skip building the docs on Python 3.9 only, I
added zfpy to
MOCK_MODULES = ['msgpack','zfpy']
in conf.py.
At least now, all tests passed.
…On Thu, Mar 18, 2021 at 10:51 AM jakirkham ***@***.***> wrote:
Could we just skip building the docs on Python 3.9?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFCLFDWSVZOXA5BTSVDTEIVSTANCNFSM4MM553EQ>
.
|
Thank you @halehawk! 😄 |
@rabernat and @halehawk What is the reason that the ZFPY Codec actually uses When I was playing around with this Codec for compression of weather model data, i.e. 2m temperature from ICON-EU, replacing Am I running in some problems if I replace |
@pjpetersik, do you mean ensure_contiguous_ndarray in zfpy.encode?
@pjpetersik if the zfp.compress_numpy which is called in zfpy.encode gets a
higher dimension of array, it can get a better compression ratio. From your
description, it looks like you got this situation.
@jakirkham is ensure_contiguous_ndarray supposed to keep the original shape
of the array? Or does it convert the original array to a flat array?
…On Thu, Sep 30, 2021 at 5:26 AM Paul Petersik ***@***.***> wrote:
@rabernat <https://github.com/rabernat> and @halehawk
<https://github.com/halehawk> What is the reason that the ZFPY Codec
actually uses ensure_contiguous_ndarray instead of ensure_ndarray?
When I was playing around with this Codec for compression of weather model
data, i.e. 2m temperature from ICON-EU, replacing
ensure_contiguous_ndarray with ensure_ndarray did not led to any errors
and led to higher compression ratios.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFCEIIPKYMBHCHDR7XTUERCQDANCNFSM4MM553EQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Many of the compressors we use don't know how to handle shape correctly hence why it does that We could add a flag to |
@jakirkham Will you add the flag? Then I can use the flag in the encode.
Thanks!
…On Thu, Sep 30, 2021 at 11:55 AM jakirkham ***@***.***> wrote:
Many of the compressors we use don't know how to handle shape correctly
hence why it does that
We could add a flag to ensure_contiguous_ndarray to skip the reshape
step. Then use that flag here
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFFOCRUFLHVD2HEZHKTUESQABANCNFSM4MM553EQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@halehawk it probably will be a while before I have time to do that. In the midst of doing several release atm. If you or @pjpetersik , would like to do a PR though would be happy to review :) |
I can try to do a PR, just hope all the build tests can be easily
passed. @jakirkham @pjpetersik
…On Thu, Sep 30, 2021 at 1:14 PM jakirkham ***@***.***> wrote:
@halehawk <https://github.com/halehawk> it probably will be a while
before I have time to do that. In the midst of doing several release atm.
If you or @pjpetersik <https://github.com/pjpetersik> , would like to do
a PR though would be happy to review :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPEFDOGZW4VOB5CMROP6DUESZJZANCNFSM4MM553EQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@jakirkham I tried to add a flag, then I failed the test on f-contiguous
array. Can I flat f-contiguous arrays but not c-contiguous arrays?
…On Thu, Sep 30, 2021 at 1:52 PM Haiying Xu ***@***.***> wrote:
I can try to do a PR, just hope all the build tests can be easily
passed. @jakirkham @pjpetersik
On Thu, Sep 30, 2021 at 1:14 PM jakirkham ***@***.***>
wrote:
> @halehawk <https://github.com/halehawk> it probably will be a while
> before I have time to do that. In the midst of doing several release atm.
> If you or @pjpetersik <https://github.com/pjpetersik> , would like to do
> a PR though would be happy to review :)
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#229 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACAPEFDOGZW4VOB5CMROP6DUESZJZANCNFSM4MM553EQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
Maybe it would be best to move this discussion to a new issue where it is easier to track |
numcodecs.zfpy is ready with pip install from https://test.pypi.org/simple/ zfpy==0.5.5rc1, this package has no py38 build and osx build.
TODO:
tox -e py38
passes locallytox -e docs
passes locally