piranha-0.6
Pre-release
Pre-release
This release introduces a new serialization API which is incompatible with earlier versions of piranha.
Data saved with earlier piranha versions can be ported to the new API as follows:
- check out the
s11n_legacy
branch: https://github.com/bluescarni/piranha/tree/s11n_legacy - configure and install piranha with msgpack support
- load the old data with the old API, save it with the new API using the msgpack format. E.g., from python:
pt = polynomial(rational,monomial(rational))()
foo = pt.load('myfile.bz2',pyranha.file_compression.bzip2)
pyranha.save_file(foo,'newfile.mpackp.bz2')
This will save the foo
polynomial, loaded via the old API, to the file newfile.mpackp.bz2
using the compressed msgpack portable format.