does not load asylum files

Bug #1093017 reported by mjb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenFovea
New
Undecided
Unassigned

Bug Description

OpenFovea version 164 does not open asylum force maps. I've tried single files and groups of files in directories. The error I get is:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/openfovea/classes.py", line 1872, in load_folder
    self.load_file(os.path.join(fv_folder, files))
  File "/usr/lib/python2.7/dist-packages/openfovea/classes.py", line 1853, in load_file
    self.file['list'].append(ForceVolume(fv_file))
  File "/usr/lib/python2.7/dist-packages/openfovea/classes.py", line 162, in __init__
    _data = afm_file.load(fv_file)
  File "/usr/lib/python2.7/dist-packages/openfovea/fovea_toolbox/file_util/afm_file.py", line 122, in load
    [trace, retrace, value['piezo'], header] = asylum.load(file_name)
  File "/usr/lib/python2.7/dist-packages/openfovea/fovea_toolbox/file_util/asylum.py", line 80, in load
    trace, retrace, header, piezo = get_file(file_name)
  File "/usr/lib/python2.7/dist-packages/openfovea/fovea_toolbox/file_util/asylum.py", line 309, in get_file
    header = parse_note(note[0])
  File "/usr/lib/python2.7/dist-packages/openfovea/fovea_toolbox/file_util/asylum.py", line 342, in parse_note
    _index = note.index(_text)
ValueError: substring not found

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openfovea/openfovea_gui.py", line 869, in on_new_experiment_activate
    self.force_volume = self.experiment.get_file(0)
  File "/usr/lib/python2.7/dist-packages/openfovea/classes.py", line 1775, in get_file
    self.update_switch()
  File "/usr/lib/python2.7/dist-packages/openfovea/classes.py", line 2150, in update_switch
    mask = self.file['list'][self.file['current']].get_switch('mask')
IndexError: list index out of range

Revision history for this message
mjb (mjbutte) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.