sm_bluesky.common.helper#

Members

add_default_metadata

Decorator to add or update default metadata in the 'md' keyword argument.

add_extra_names_to_meta

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.