efc54499191ead69f875877badd3578c60eba7a6,nussl/audio_signal.py,AudioSignal,__init__,#AudioSignal#Any#Any#Any#Any#Any#Any#Any#,37
Before Change
self._active_end = None
if (path_to_input_file is not None) and (audio_data_array is not None):
raise Exception("Cannot initialize AudioSignal object with a path AND an array!")
if path_to_input_file is not None:
self.load_audio_from_file(self.path_to_input_file, signal_starting_position, signal_length)
elif audio_data_array is not None:
After Change
got_stft = stft is not None
init_inputs = np.array([got_path, got_audio_array, got_stft])
if len(init_inputs[init_inputs == True]) > 1:
raise ValueError("Can only initialize AudioSignal object with one of [path, audio, stft]!")
if path_to_input_file is not None:
self.load_audio_from_file(self.path_to_input_file, offset, duration)
elif audio_data_array is not None:
self.load_audio_from_array(audio_data_array, sample_rate)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: interactiveaudiolab/nussl
Commit Name: efc54499191ead69f875877badd3578c60eba7a6
Time: 2017-02-08
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __init__
Project Name: interactiveaudiolab/nussl
Commit Name: d5f74cc30a8f0a192d5ef8818c6d72c3707c4a97
Time: 2017-02-04
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __init__
Project Name: keras-team/keras
Commit Name: 4fb3f1b3f384c3a05306b37ea9a736144ed6394a
Time: 2016-09-16
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: rnn