DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
37 stars 4 forks source link

Text file import wizard: application crash when importing a multiple curve text file #61

Closed PierreRaybaut closed 5 months ago

PierreRaybaut commented 5 months ago

Describe the bug Application crashes when attempting to import example_import.csv.

To Reproduce Steps to reproduce the behavior:

  1. Click on 'File > Import text file'
  2. Select attached file
  3. Select ';' as delimiter
  4. Select "1" row to skip
  5. Click on 'Apply' button

Expected behavior Import data without error.

Screenshots Screenshot before the crash happens (before clicking on "Apply"): image

Installation information

Additional context Traceback:

[22/03/2024 - 11:11:41] {C:\Dev\Projets\DataLab\cdl\utils\qthelpers.py:123} CRITICAL - Unhandled exception
Traceback (most recent call last):
  File "C:\Dev\Projets\DataLab\cdl\widgets\textimport.py", line 265, in headerData
    return self.__horizontal_headers[section]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
IndexError: list index out of range