bmcfee / muda

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

Force jam.sandbox.muda as jams.Sandbox #44

Closed bmcfee closed 7 years ago

bmcfee commented 7 years ago

This resolves #42, where mudabox gets deserialized as dict instead of jams.Sandbox.

The solution here is to coerce the type within muda.jam_pack.

An alternate solution would be to relax the mudabox type to support dict. However, this would complicate the logic of serialization, since we use jams's underscore-prefix suppression to omit _audio objects on save.

For now, I think this hack is sufficient.


This change is Reviewable