zorzr / TSL

Supervised learning tool for interactive labelling of time series
https://zorzr.github.io/TSL/
GNU General Public License v3.0
6 stars 4 forks source link

Error on opening project #4

Open nicky508 opened 11 months ago

nicky508 commented 11 months ago

After creating a new project, TSL will open the project and throws an error:

...\TSL-master>python main.py Traceback (most recent call last): File "...\TSL-master\gui.py", line 114, in project_dialog self.controller.to_labeler(project=project) File "...\TSL-master\main.py", line 34, in to_labeler self.labeler.plot_canvas.init() File "...\TSL-master\core.py", line 195, in init self.core.plot() File "...\TSL-master\core.py", line 58, in plot plotter = Plotter(subplot, draw_set, self.timestamp, norm) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\TSL-master\plotter.py", line 39, in __init__ self.draw() File "...\TSL-master\plotter.py", line 75, in draw self.plot.lines.append(self.plot.lines.pop(0)) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ArtistList' object has no attribute 'append'

Launching the main.py again and opening the just created project, throws the same error. Any ideas, how to solve?

vladBaciu commented 9 months ago

Just try to do. For me it worked

self.plot.add_line(self.plot.get_lines()[0])