Loading ivas_processing_scripts/audiotools/wrappers/bs1770.py +0 −17 Original line number Diff line number Diff line Loading @@ -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) Loading
ivas_processing_scripts/audiotools/wrappers/bs1770.py +0 −17 Original line number Diff line number Diff line Loading @@ -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)