sonar/interfaces/base_interface.py
def write_sv(cls, packet):
        """
        Write one line of the SV data file

        Args:
            packet (dict): The command to write

        Returns:
            str: The command as a line for the data file
        """
        line = ""
        for word in packet["payload"]:
            count = 0
            line += packet["type"] + " " + packet["name"] + " $COUNT$"
            for arg, _ in cls.args["sv"].items():
                if arg in word:
                    count += 1
                    line += " " + str(word[arg])
            line = line.replace("$COUNT$", str(count))
            line += "\n"
        return line[:-1]

        Write one line of the SV data file

        Args:
            packet (dict): The command to write

        Returns:
            str: The command as a line for the data file
        
Write one line of the SV data file
Write one line of the SV data file
def write_sv(cls, packet):
        line = ""
        for word in packet["payload"]:
            count = 0
            line += packet["type"] + " " + packet["name"] + " $COUNT$"
            for arg, _ in cls.args["sv"].items():
                if arg in word:
                    count += 1
                    line += " " + str(word[arg])
            line = line.replace("$COUNT$", str(count))
            line += "\n"
        return line[:-1]
def write_sv ( cls , packet ) : line = "" for word in packet [ "payload" ] : count = 0 line += packet [ "type" ] + " " + packet [ "name" ] + " $COUNT$" for arg , _ in cls . args [ "sv" ] . items ( ) : if arg in word : count += 1 line += " " + str ( word [ arg ] ) line = line . replace ( "$COUNT$" , str ( count ) ) line += "\n" return line [ : - 1 ]
Write one line of the SV data file
Write one line of the SV data file
"""
        Write one line of the SV data file

        Args:
            packet (dict): The command to write

        Returns:
            str: The command as a line for the data file
        """
The command as a line for the data file
The command as a line for the data file
str
cls
packet
The command to write
The command to write