SwatPhonLab / UltraTrace

A Free/Open-Source tool for manual annotation of Ultrasound Tongue Imaging data.
GNU General Public License v3.0
10 stars 5 forks source link

loading ULT doesn't work sometimes #150

Open jonorthwash opened 3 years ago

jonorthwash commented 3 years ago

I sometimes get errors like this when trying to load data using "read unannotated":

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 3943, in __call__
    self.__callback(self.__value, *args)
  File "/data/Documents/Research/PhonLab/UltraTrace/ultratrace/modules/dicom.py", line 107, in chooseMethod
    self.reader = cls(dcm)
  File "/data/Documents/Research/PhonLab/UltraTrace/ultratrace/util/framereader.py", line 103, in __init__
    arr = np.ndarray(shape=sh, buffer=dt, dtype='uint8')
TypeError: buffer is too small for requested array