Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Commit

Permalink
Bug fix: audio path corresponds to archive path
Browse files Browse the repository at this point in the history
I found a bad copy/paste issue. It was storing the archive path instead
of the audio path. I corrected the variable naming and it's now working
properly.

Resolves: #51

Signed-off-by: Matthieu Berjon <matthieu@berjon.net>
  • Loading branch information
mattberjon committed Nov 13, 2017
1 parent 701450d commit 16ff16b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion asc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def main(ctx):
def processing(frame_size, filename, mel_bands, frequency_max, debug):
""" Set up the audio processing chain.
"""
audio_path = utils.read_config('path', 'audio')
print(audio_path)
sys.exit()
audio.process_audio(
filename,
frame_size,
Expand Down Expand Up @@ -170,7 +173,7 @@ def setup():
section = 'path'
utils.write_config(section, 'root', root_path)
utils.write_config(section, 'archive', archive_path)
utils.write_config(section, 'audio', archive_path)
utils.write_config(section, 'audio', audio_path)
utils.write_config(section, 'spectrograms', specs_path)

# Copy the URL file into the data folder
Expand Down

0 comments on commit 16ff16b

Please sign in to comment.