Comment 5 for bug 1033699

Revision history for this message
mjb (mjbutte) wrote :

I'd like to help get the code working for Asylum files. Has your software ever successfully worked with Asylum force maps? Your Nature Methods paper says Asylum files are supported. Did something change in the code or in their file format between the time of the publication and now?

I've tried the latest build of OpenFovea on Ubuntu and get this error on Asylum files, even with small directories:

  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