gemd.demo.cake module
Bake a cake.
- gemd.demo.cake.change_scope(data, *, templates=None)
Change scope(s) of internal uids.
- Parameters
data (str) – Scope for the Run and Spec objects
templates (str, optional) – Scope for the Attribute Templates and Object Templates. If None, will be set to data + ‘-template’
- gemd.demo.cake.get_demo_scope()
Return the value of the DEMO_SCOPE variable.
- gemd.demo.cake.get_template_scope()
Return the value of the DEMO_SCOPE variable.
- gemd.demo.cake.import_toothpick_picture() BytesIO
Return the stream of the toothpick picture.
- gemd.demo.cake.make_cake(seed=None, tmpl=None, cake_spec=None, toothpick_img=None)
Define all objects that go into making a demo cake.
- gemd.demo.cake.make_cake_spec(tmpl=None)
Define a recipe for making a cake.
- gemd.demo.cake.make_cake_templates()
Define all templates independently, as in the wild this will be an independent operation.