Whole corpus

Instructions to update sparse_code csv files

Before

  1. Backup everything! See First, backup everything!

  2. Make sure you have blabpy installed and upgraded.

  3. Make sure you have Fas-Phyc-PEB-Lab mounted.

  4. Change to an empty folder.

  5. In the terminal, run python/IPython and then the line below. Keep the python console open afterwards.

from blabpy.seedlings.pipeline import make_updated_basic_level_files, scatter_updated_basic_level_files

Create updated sparse_code.csv's

  1. Run make_updated_basic_level_files().

  2. Once it finishes, examine the output. If everything ran as expected, there will be a message starting with

    The annotations have been exported and merged with existing basic level data.

Edit basic_level column (where necessary) and move files to pn_opus

  1. Run scatter_updated_basic_level_files()The output will tell you whether there are any files that need their basic_level column to be updated. If there are, go to the next step.

  2. Update the annotations in individual files under with_basic_level_audio_annotations and with_basic_level_audio_annotations, not in the csvs with just the missing ones using the instructions in Fixing FIXMEs.

  3. GOTO 1.

After

Backup sparse_code csv, see instructions in Last, backup sparse_code.csv's

Last updated