Add Metadata Function

add_metadata determines if the metadata attribute is the correct data type, then adds the metadata to the data log. If a metadata attribute with the same name already exists in the log, the metadata value will be overwritten.

Note The Logging Library does not support the following special characters in metadata names and values: [, ], and ,
with run.Metadata() as data:
    data.add_metadata(
        metadata_name=Fields.LotName,
        metadata_value="Lot_1"
    )
Table 11. Python Add Metadata Function Parameters
Parameter Required? Data Type Description
metadata_name Yes Fields Name of the metadata attribute to add.
metadata_value Yes String Value of the metadata attribute to add.