sm_bluesky.common.helper
#
Members
Decorator to add or update default metadata in the 'md' keyword argument. |
|
|
- sm_bluesky.common.helper.add_default_metadata(func: TCallable, extra_metadata: dict[str, Any] | None = None) TCallable [source]#
Decorator to add or update default metadata in the ‘md’ keyword argument.
If ‘md’ is not provided, it will be set to extra_metadata. If ‘md’ is provided and not None, it will be updated with extra_metadata. If ‘md’ is provided and is None, it will be set to extra_metadata.