ANP-Granular / ParticleTracking

Library and GUI for tracking (rod-like) particles on camera images in 2D and 3D
https://particletracking.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 2 forks source link

Problem loading the CSV files in the develop branch #45

Closed Prarthita11 closed 2 years ago

Prarthita11 commented 2 years ago

There is a problem with loading csv files in the develop branch. The branch rodmix2 works just fine. It gives the following error:

Python 3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.16.1 -- An enhanced Interactive Python.

runfile('C:/Users/Prarthita/Documents/GitHub/Python/RodTracker.py', wdir='C:/Users/Prarthita/Documents/GitHub/Python')
Traceback (most recent call last):

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 559, in open_rod_folder
    self.generate_tree()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 373, in generate_tree
    self.update_tree_folding()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 345, in update_tree_folding
    colors.index(self.get_selected_color()))

ValueError: 'black' is not in list

runfile('C:/Users/Prarthita/Documents/GitHub/Python/RodTracker.py', wdir='C:/Users/Prarthita/Documents/GitHub/Python')
Reloaded modules: Python.ui.rodnumberwidget, Python.backend.logger, Python.ui.rodimagewidget, Python.ui.dialogs, Python.backend.settings, Python.backend.data_operations, Python.backend.file_operations, Python.ui.loggerwidget, Python.ui.mainwindow_layout, Python.ui.mainwindow
Traceback (most recent call last):

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 559, in open_rod_folder
    self.generate_tree()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 373, in generate_tree
    self.update_tree_folding()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 345, in update_tree_folding
    colors.index(self.get_selected_color()))

ValueError: 'black' is not in list

Traceback (most recent call last):

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 559, in open_rod_folder
    self.generate_tree()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 373, in generate_tree
    self.update_tree_folding()

  File "C:\Users\Prarthita\Documents\GitHub\Python\ui\mainwindow.py", line 345, in update_tree_folding
    colors.index(self.get_selected_color()))

ValueError: 'black' is not in list
a-niem commented 2 years ago

The issue is fixed in 3993cde. @Prarthita11: Please verify that it is working for you and then close the issue.