You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importasdfimportnumpyasnp# Create separate arrays so that they use separate data blockszlib_data=np.array([xforxinrange(1000)])
bzp2_data=np.array([xforxinrange(1000)])
tree=dict(zlib_data=zlib_data, bzp2_data=bzp2_data)
withasdf.AsdfFile(tree) asaf:
af.set_array_compression(zlib_data, 'zlib')
af.set_array_compression(bzp2_data, 'bzp2')
af.write_to(outfile)
In this case, neither block ends up being compressed. Presumably, the compression algorithm ends up being overridden by the default value of the all_array_compression parameter to write_to.
The text was updated successfully, but these errors were encountered:
Consider the following example code:
In this case, neither block ends up being compressed. Presumably, the compression algorithm ends up being overridden by the default value of the
all_array_compression
parameter towrite_to
.The text was updated successfully, but these errors were encountered: