bmcfee / muda

A library for augmenting annotated audio data
ISC License
230 stars 33 forks source link

Cannot save jams with random seeds #74

Closed bmcfee closed 4 years ago

bmcfee commented 4 years ago

This is a regression introduced by #70 -- randomized deformers now have a random state field (deformer.rng) which is of type RandomState. This type is not JSON-serializable. When we go to save the output of a deformation (via JAMS), the encoder fails.

The easiest fix here is probably something like the following:

Since this breaks the object model a little bit, we'll need to bump the version number.