Просмотр исходного кода

Added default value to correspondance in _build_recording_metadata (fixed failing tests)

William N. Havard 1 год назад
Родитель
Сommit
56cc31a7a2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      import_data/import_recordings.py

+ 1 - 1
import_data/import_recordings.py

@@ -91,7 +91,7 @@ def _get_correspondance(correspondance_path):
     return dict(data.values.tolist())
 
 
-def _build_recording_metadata(recordings_path, recording, experiment, recording_device_type, correspondance):
+def _build_recording_metadata(recordings_path, recording, experiment, recording_device_type, correspondance=dict()):
     """
     Return the metadata corresponding to a given file (date, time, duration, etc.)
     :param recordings_path: path to the directory storing the WAV files