modelx icon indicating copy to clipboard operation
modelx copied to clipboard

Saving previously zipped model with embedded module

Open alexeybaran opened this issue 4 years ago • 1 comments

There is a problem, when saving previously zipped model with embedded module. The issue seems to be that the module code isn't available for saving function as the temporary folder is removed after opening of the model.

import modelx as mx
m = mx.new_model()
m.new_module('gf', 'generic_func.py', 'generic_func.py')
m.zip('m.zip')
m2 = mx.read_model('m.zip')
m2.zip('m2.zip')

alexeybaran avatar Apr 29 '21 11:04 alexeybaran

Just released v0.14.0 and this issue is fixed.

fumitoh avatar May 02 '21 16:05 fumitoh