Commit e6cf7897 authored by Vinit Veera's avatar Vinit Veera
Browse files

Removed the unused check_inf_and_nan function.

parent 6270f6ee
Loading
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -321,20 +321,3 @@ def scale_files(

            # write into file
            write(file, scaled_audio, audio_obj.fs)


def check_for_nan_and_inf(input_string: str):
    """
    Checks the input string for nan and inf

    Parameters
    ----------
    input_string: str
        Input string
    """
    if "nan" in input_string.lower():
        raise ValueError("Too quiet.")
    elif "inf" in input_string.lower():
        raise ValueError("All zeros.")
    else:
        return float(input_string)