Skip to content

Question about saving a loaded model to the database #338

@XaelZeph

Description

@XaelZeph

Hello, I am currently trying to save a loaded model (it has a few steps through it, I want to save the state) in a database, then return to it. See the python code (which load_model and runs model.do_step) is being called by another program, which closes the python code afterwards. I need to be able to save the state of that model so the next time the prgram called the python code and runs model.do_step, previous data is saved. I'm using db.sqlite3 as my backends database.

I heard that pickling or JSON-Encoding may allow a FMUModel to be saved in the data base as a Json string, but I'm not sure if that would work. Any thoughts/comments?

Metadata

Metadata

Labels

questionIssue only concerns a or multiple questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions