hatzakislab / DeepFRET-GUI

GNU General Public License v3.0
8 stars 5 forks source link

Non-ALEX traces from iSMS fail to load #5

Closed eembees closed 4 years ago

eembees commented 4 years ago

So @simonbonano received some problem emails while I was on vacation, the most crucial of which is this: Non-ALEX iSMS traces have the following shape:

Exported by iSMS
Date: 17-Jul-2020
Movie filename: Stack-Stream532 50ms1.tif
FRET pair #1
Dem-Dexc   Aem-Dexc       E      
7283.7500   329.2500    0.0432
6983.0000   281.2500    0.0387
...

When loading, the following error occurs:

Traceback (most recent call last):
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/lib/container.py", line 270, in load_from_txt
    df.columns = colnames
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/generic.py", line 5080, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/_libs/properties.pyx", line 69, in pandas._libs.properties.AxisProperty.__set__
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/generic.py", line 638, in _set_axis
    self._data.set_axis(axis, labels)
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 155, in set_axis
    'values have {new} elements'.format(old=old_len, new=new_len))
ValueError: Length mismatch: Expected axis has 3 elements, new values have 8 elements

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/main.py", line 175, in <module>
    exit_code = _ctxt.run()
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/main.py", line 149, in run
    return self.app.exec_()
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/widgets/trace_window.py", line 172, in openFile
    filename=full_filename, loaded_from_ascii=True
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/lib/container.py", line 208, in __init__
    self.load_from_txt()
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/src/main/python/lib/container.py", line 273, in load_from_txt
    df.columns = colnames
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/generic.py", line 5080, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/_libs/properties.pyx", line 69, in pandas._libs.properties.AxisProperty.__set__
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/generic.py", line 638, in _set_axis
    self._data.set_axis(axis, labels)
  File "/Users/mag/PycharmProjects/DeepFRET-GUI-hlab/venv/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 155, in set_axis
    'values have {new} elements'.format(old=old_len, new=new_len))
ValueError: Length mismatch: Expected axis has 3 elements, new values have 5 elements