spectrum_functions.py
def trim_triangle(col,index=1):
    
    """trim healthy data such that plot can be seen.

    Parameters
    ----------
    col : a collection of healthy data

    Returns
    -------
    list of str
        List of data can has been trim by threshold 0.03.

    """
   

    try1=copy.deepcopy(col)

    for md in try1:
        if md[0]==0.0:
            if md[int(index)]<0.95:
                md[0]=0.03

                md[2]-=0.03
 
    return try1
trim healthy data such that plot can be seen.

    Parameters
    ----------
    col : a collection of healthy data

    Returns
    -------
    list of str
        List of data can has been trim by threshold 0.03.

    
trim healthy data such that plot can be seen.
Parameters

col : a collection of healthy data

Returns

list of str
List of data can has been trim by threshold 0.03.
trim healthy data such that plot can be seen . Parameters col : a collection of healthy data Returns list of str List of data can has been trim by threshold 0 . 03 .
def trim_triangle(col,index=1):
    try1=copy.deepcopy(col)
    for md in try1:
        if md[0]==0.0:
            if md[int(index)]<0.95:
                md[0]=0.03
                md[2]-=0.03
    return try1
def trim_triangle ( col , index = 1 ) : try1 = copy . deepcopy ( col ) for md in try1 : if md [ 0 ] == 0.0 : if md [ int ( index ) ] < 0.95 : md [ 0 ] = 0.03 md [ 2 ] -= 0.03 return try1
trim healthy data such that plot can be seen.
trim healthy data such that plot can be seen .
"""trim healthy data such that plot can be seen.

    Parameters
    ----------
    col : a collection of healthy data

    Returns
    -------
    list of str
        List of data can has been trim by threshold 0.03.

    """
col
index