mattberjon / asc-cnn

Acoustic Scene Auditory (ASC) using Convolutional Neural Network (CNN)
https://asc-cnn.readthedocs.io/en/latest/
GNU General Public License v2.0
3 stars 1 forks source link

Unzip error when I download the data #43

Closed mattberjon closed 7 years ago

mattberjon commented 7 years ago

There is an error to unzip the data once downloaded.

Traceback (most recent call last):
  File "/home/mattberjon/repo/asc-cnn/venv/bin/asc", line 11, in <module>
    load_entry_point('asc', 'console_scripts', 'asc')()
  File "/home/mattberjon/repo/asc-cnn/venv/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/mattberjon/repo/asc-cnn/venv/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/mattberjon/repo/asc-cnn/venv/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mattberjon/repo/asc-cnn/venv/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mattberjon/repo/asc-cnn/venv/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/mattberjon/repo/asc-cnn/asc/cli.py", line 159, in getdata
    get_data.unzip(file_list, tmp_path, dest_path)
AttributeError: 'Data' object has no attribute 'unzip'

The traceback shows that the unzip() method doesn't exist. I had a look in the code and in fact the unzip() method has been renamed unzip_data(). It needs to be updated.