Skip to content

Commit

Permalink
feat: tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
AJDERS committed Nov 14, 2023
1 parent 5d4eeae commit be6f683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coral_models/prepare_raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def make_recording_metadata(
# Load speaker information from read aloud data
recording_metadata_list = [recording_metadata]
read_aloud_paths = raw_path.glob("*_oplæst_*")
for read_aloud_path in read_aloud_paths:
for read_aloud_path in tqdm(list(read_aloud_paths)):
read_aloud_data = get_data_from_db(read_aloud_path)

# Format filenames
Expand Down Expand Up @@ -255,6 +255,10 @@ def make_recording_metadata(

# Remove rows with no recording id. Sometimes recorders did not submit their
# all their recordings.

#### IDS ARE STILL WRONG!=!=!==!?!??!?!?!
# MYBE BECAUSE RESET INDEX; GO THROUGH ALL LINES BELOW

all_recording_metadata = all_recording_metadata[
all_recording_metadata["recording_id"].notna()
].reset_index(drop=True)
Expand Down

0 comments on commit be6f683

Please sign in to comment.