sonar/testbench.py
def asdict(self):
        """
        Converts the object to a dictionary

        Returns:
            dict: Dictionary representing the object
        """

        sonar_dict = {}
        sonar_dict["metadata"] = self.metadata
        modules = {}
        for _, module in self.modules.items():
            modules[module.name] = module.asdict()
        sonar_dict["modules"] = modules
        sonar_dict["wait_conditions"] = self.wait_conditions
        vectors = []
        for vector in self.vectors:
            vectors.append(vector.asdict())
        sonar_dict["vectors"] = vectors
        return sonar_dict

        Converts the object to a dictionary

        Returns:
            dict: Dictionary representing the object
        
Converts the object to a dictionary
Converts the object to a dictionary
def asdict(self):
        sonar_dict = {}
        sonar_dict["metadata"] = self.metadata
        modules = {}
        for _, module in self.modules.items():
            modules[module.name] = module.asdict()
        sonar_dict["modules"] = modules
        sonar_dict["wait_conditions"] = self.wait_conditions
        vectors = []
        for vector in self.vectors:
            vectors.append(vector.asdict())
        sonar_dict["vectors"] = vectors
        return sonar_dict
def asdict ( self ) : sonar_dict = { } sonar_dict [ "metadata" ] = self . metadata modules = { } for _ , module in self . modules . items ( ) : modules [ module . name ] = module . asdict ( ) sonar_dict [ "modules" ] = modules sonar_dict [ "wait_conditions" ] = self . wait_conditions vectors = [ ] for vector in self . vectors : vectors . append ( vector . asdict ( ) ) sonar_dict [ "vectors" ] = vectors return sonar_dict
Converts the object to a dictionary
Converts the object to a dictionary
"""
        Converts the object to a dictionary

        Returns:
            dict: Dictionary representing the object
        """
Dictionary representing the object
Dictionary representing the object
dict
self