Closed kartik4949 closed 1 month ago
A few things which don't work:
In [1]: t.encode() # compare to `t.dict().encode()`
In [2]: db[Variables['bla']].find().variables # gives empty
In [3]: ...
Also please add these useful things to superduperdb/__init__.py
(Variable
, Template
, Component
, etc.)
Another bug:
m = ObjectModel(Variable(identifier='test'), object=lambda x: x + 2)
t = Template(component=m, identifier='my_template', info={'test': {'type': 'str'}})
db.apply(t)
mm = db.load('template', t.identifier)
mm.init(db)
mm.object
# <EMPTY>
I think that you need to work on the .init
method of Template
. First you would load the template from the artifact store.
Then each artifact inside the template should be loaded.
Observation: print can crash program, if the contained Component.encode()
is big.
Description
fix #2115
Related Issues
Checklist
make unit_testing
andmake integration-testing
successfully?Additional Notes or Comments