convexengineering / gpkit

Geometric programming for engineers
http://gpkit.readthedocs.org
MIT License
203 stars 40 forks source link

jsonsave function for sol #1554

Closed Alexander-Da-Great closed 2 years ago

Alexander-Da-Great commented 2 years ago

This branch implements json saving for solutions. This is just the implementation for solutions - excluding the diffs discussion for now. Json's produced via this method have a depth of two. It might be useful to have a hierarchical structure in the json sol that reflects the structure of the model a solution is formed from.

acdl-jenkins commented 2 years ago

Can one of the admins verify this patch?

bqpd commented 2 years ago

whitelist this

bqpd commented 2 years ago

@Alexander-Da-Great, I merged the recent changes to master so that the unit tests would run.

bqpd commented 2 years ago

test this please

bqpd commented 2 years ago

@Alexander-Da-Great sorry for the backseat driving with printjson :grimacing: I was thinking it'd be useful to have a "canonical" json representation that various streaming APIs could use, but realized that any early API will want to be idiosyncratic with its messaging (until a good standard is found).

bqpd commented 2 years ago

test this please