MarkGotham / When-in-Rome

meta-corpus of and code library for the functional harmonic analysis of music
58 stars 12 forks source link

Paths #70

Closed giamic closed 1 year ago

giamic commented 1 year ago

Fix two bugs with paths:

  1. In the first case, process_one_score was not checking if the score was present in the output folder but in an invalid path constructed by appending the output_name to the input_score_path. For example: /Corpus/.../score.mxl/slices_with_analysis.tsv. Also, the overwrite flag was not passed down from process_corpus so it was not possible to actually overwrite the files
  2. In the second case, clear_the_decks was always returning an empty list even if there were files that were kept. This was due to a wrong variable.

I also simplified a few things in the paths.

Also, the error messages when processing the corpus are now reported out.

MarkGotham commented 1 year ago

Thanks!