how to persist and instantiate models?
Si Chen <sichen@...>
Hello, I'm looking at integrating OpenEEMeter with opentaps some more, and I have a couple of questions about how to save and re-use the models from OpenEEMeter. Are these the classes with the hourly and daily models? eemeter. CalTRACKHourlyModel eemeter. CalTRACKUsagePerDayCandidateModel They both have .json() methods to return the model as a JSON. Should we save those JSON strings in our database? Is there a method for bringing those models back from JSON string? Thanks. ----- Si Chen Open Source Strategies, Inc. opentaps and open source business models at the VOLTTRON conference: https://youtu.be/2jnyIOBHrkU |
|