Comment 2 for bug 1033699

Revision history for this message
Andrew Wang (ayjwang) wrote :

Hi Charles,

I encountered a similar problem. I was trying to create a new experiment and selecte the main fold of a force map (which for Asylum's format contains subfolders for each line and each subfolder contains the force curves in the same line). Below is what I got from the command window. It seemed like I have too many force curves?

>>> openfovea_gui.main()
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\openfovea\openfovea_gui.py", line 869, in
on_new_experiment_activate
    self.force_volume = self.experiment.get_file(0)
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 1775, in get_f
ile
    self.update_switch()
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 2150, in updat
e_switch
    mask = self.file['list'][self.file['current']].get_switch('mask')
IndexError: list index out of range
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 552, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 1872, in load_
folder
    self.load_file(os.path.join(fv_folder, files))
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 1853, in load_
file
    self.file['list'].append(ForceVolume(fv_file))
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 162, in __init
__
    _data = afm_file.load(fv_file)
  File "C:\Python27\lib\site-packages\openfovea\fovea_toolbox\file_util\afm_file
.py", line 122, in load
    [trace, retrace, value['piezo'], header] = asylum.load(file_name)
ValueError: too many values to unpack

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\openfovea\openfovea_gui.py", line 869, in
on_new_experiment_activate
    self.force_volume = self.experiment.get_file(0)
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 1775, in get_f
ile
    self.update_switch()
  File "C:\Python27\lib\site-packages\openfovea\classes.py", line 2150, in updat
e_switch
    mask = self.file['list'][self.file['current']].get_switch('mask')
IndexError: list index out of range