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
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( ) lib\site- packages\ openfovea\ openfovea_ gui.py" , line 869, in experiment_ activate force_volume = self.experiment .get_file( 0) lib\site- packages\ openfovea\ classes. py", line 1775, in get_f update_ switch( ) lib\site- packages\ openfovea\ classes. py", line 2150, in updat 'list'] [self.file[ 'current' ]].get_ switch( 'mask') lib\threading. py", line 552, in __bootstrap_inner lib\threading. py", line 505, in run __target( *self._ _args, **self.__kwargs) lib\site- packages\ openfovea\ classes. py", line 1872, in load_ load_file( os.path. join(fv_ folder, files)) lib\site- packages\ openfovea\ classes. py", line 1853, in load_ file['list' ].append( ForceVolume( fv_file) ) lib\site- packages\ openfovea\ classes. py", line 162, in __init load(fv_ file) lib\site- packages\ openfovea\ fovea_toolbox\ file_util\ afm_file load(file_ name)
Traceback (most recent call last):
File "C:\Python27\
on_new_
self.
File "C:\Python27\
ile
self.
File "C:\Python27\
e_switch
mask = self.file[
IndexError: list index out of range
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Python27\
self.run()
File "C:\Python27\
self.
File "C:\Python27\
folder
self.
File "C:\Python27\
file
self.
File "C:\Python27\
__
_data = afm_file.
File "C:\Python27\
.py", line 122, in load
[trace, retrace, value['piezo'], header] = asylum.
ValueError: too many values to unpack
Traceback (most recent call last): lib\site- packages\ openfovea\ openfovea_ gui.py" , line 869, in experiment_ activate force_volume = self.experiment .get_file( 0) lib\site- packages\ openfovea\ classes. py", line 1775, in get_f update_ switch( ) lib\site- packages\ openfovea\ classes. py", line 2150, in updat 'list'] [self.file[ 'current' ]].get_ switch( 'mask')
File "C:\Python27\
on_new_
self.
File "C:\Python27\
ile
self.
File "C:\Python27\
e_switch
mask = self.file[
IndexError: list index out of range