sonar/testbench.py
def add_metadata(self, key, value):
        """
        Adds metadata to the Sonar object

        Args:
            key (str): Key to store the value against
            value (str): Metadata to store

        Raises:
            KeyError: Raised if the requested key already exists
        """

        if key in self.metadata:
            raise KeyError("Key " + key + " already exists in metadata")
        self.metadata[key] = value

        Adds metadata to the Sonar object

        Args:
            key (str): Key to store the value against
            value (str): Metadata to store

        Raises:
            KeyError: Raised if the requested key already exists
        
Adds metadata to the Sonar object
Adds metadata to the Sonar object
def add_metadata(self, key, value):
        if key in self.metadata:
            raise KeyError("Key " + key + " already exists in metadata")
        self.metadata[key] = value
def add_metadata ( self , key , value ) : if key in self . metadata : raise KeyError ( "Key " + key + " already exists in metadata" ) self . metadata [ key ] = value
Adds metadata to the Sonar object
Adds metadata to the Sonar object
"""
        Adds metadata to the Sonar object

        Args:
            key (str): Key to store the value against
            value (str): Metadata to store

        Raises:
            KeyError: Raised if the requested key already exists
        """
Raised if the requested key already exists
Raised if the requested key already exists
KeyError
self
key
Key to store the value against
Key to store the value against
value
Metadata to store
Metadata to store