jaakkopasanen / Impulcifer

Measurement and processing of binaural impulse responses for personalized surround virtualization on headphones.
MIT License
211 stars 14 forks source link

(minor) Crash because plot folder is not created #64

Open SDX-LV opened 2 years ago

SDX-LV commented 2 years ago

This demo command crashes: python impulcifer.py --test_signal="data/sweep-6.15s-48000Hz-32bit-2.93Hz-24000Hz.pkl" --dir_path="data/demo" --no_headphone_compensation --no_room_correction

Because "plot" folder is not created, but the "results.png" plot is still being written.

Obvious workarounds are to modify code to check if folder exists before trying to save the plot. Or just manually creating "plot" folder in the right place. Or to use --plot argument (then it will be slow but will not crash)