ml-stuttering-events-dataset icon indicating copy to clipboard operation
ml-stuttering-events-dataset copied to clipboard

fix: resolve TypeError in download_audio.py

Open namnothere opened this issue 1 year ago • 0 comments

Description

I encountered a TypeError while using the np.loadtxt function in the library. The error message stated: "Text reading control character must be a single unicode character or None; but got: ','". This issue arises due to a change in how np.loadtxt handles control characters in the text.

Solution

To resolve this issue, I replaced the usage of np.loadtxt with np.genfromtxt. Unlike np.loadtxt, np.genfromtxt can gracefully handle control characters in the text and prevents the TypeError.

namnothere avatar Oct 23 '23 15:10 namnothere