Attach File Function

attach_file attaches an auxiliary file to the data log folder and adds a relative path for the attachment file to a column within the data log during the corresponding LogMeasurement call. This function also copies the specified file from the source location to folder selected during test run initialization.

Note This function generates an error if you enter an invalid source file path.
with run.AttachableMeasurement() as meas:
    meas.attach_file(
        source_file_path="./bode_plot.png",
    )
Table 18. Python Attach File Function Parameter
Parameter Required? Data Type Description
source_file_path Yes String Path to the source file to attach.