opengridcc / opengrid

Open-source algorithms for building monitoring analysis
Apache License 2.0
9 stars 11 forks source link

save and load of multivariable analysis models #35

Open saroele opened 6 years ago

saroele commented 6 years ago

Patsy object cannot be pickled (https://github.com/pydata/patsy/issues/26) and this is a problem for saving our multivariable objects.

A solution consists of disassembling the patsy ModelDesc object before saving and rebuilding it after loading.