Open mikofski opened 7 years ago
since the metadata are inferred, the new convention in carousel is to put them into a published attribute as a dictionary.
For example, currently metadata are dynamically created at runtime, which can be confusing
my_reg = <MyRegistry[dict]( reg_item_1: values ..., reg_item_2: values ..., ... meta_1: <dict( reg_item_1: values ..., reg_item_2: values ..., ...)> meta_2: <dict( reg_item_1: values ..., reg_item_2: values ..., ...)> ... )>
where the meta_n are created dynamically from the meta_names value of MyReg at runtime. Since these names are inferred, following the new convention they should be placed in a published attribute as a dictionary like this:
meta_n
meta_names
MyReg
my_reg = <MyRegistry[dict]( reg_item_1: values ..., reg_item_2: values ..., ... meta_data: <dict( meta_1: <dict( reg_item_1: values ..., reg_item_2: values ..., ...)> meta_2: <dict( reg_item_1: values ..., reg_item_2: values ..., ...)> ... )>
since the metadata are inferred, the new convention in carousel is to put them into a published attribute as a dictionary.
For example, currently metadata are dynamically created at runtime, which can be confusing
where the
meta_n
are created dynamically from themeta_names
value ofMyReg
at runtime. Since these names are inferred, following the new convention they should be placed in a published attribute as a dictionary like this: