Browse Source

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

William N. Havard 1 year ago
parent
commit
56cc31a7a2
1 changed files with 1 additions and 1 deletions
  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