-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
setting compression on individual columns of astropy table #156
Comments
@braingram or @eslavich what are your opinions? |
Thanks for opening this issue! Unfortunately this looks to be unsupported without using the legacy extension api (specifically the 'reserve_blocks' hook). The call to set_array_compression uses the We (the asdf developers) are currently working on flushing out the new style extensions to support all the features of the legacy extension api/type system. This is a good example case that we should strive to support. |
Is there a syntax to set compression on individual columns of an astropy table? In the following example, using
all_array_compression
compresses the columns, but usingAsdfFile.set_array_compression()
does not.Comparing
test.asdf
withtest_compressed_col.asdf
, we see that they have identical checksums (and there's no zlib tag at the beginning of the binary block). So theset_array_compression
had no effect.I've tried variants of this like
but I couldn't get it to work.
I did dig around in the source code a bit, and it looked to me like it's trying to compare the ultimate ndarray
base
to check if two arrays are the same, but maybe a copy is being made somewhere that's thwarting this detection.The text was updated successfully, but these errors were encountered: