mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[ui] CRF: minor core cleanup
This commit is contained in:
parent
2a564a8336
commit
cfd03016b2
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
from meshroom.common.qt import QObjectListModel
|
||||
|
||||
from PySide2.QtCore import QObject, Slot, Signal, Property, Qt
|
||||
from PySide2.QtCore import QObject, Slot, Signal, Property
|
||||
from PySide2.QtCharts import QtCharts
|
||||
|
||||
import csv
|
||||
|
@ -76,8 +76,8 @@ class CsvData(QObject):
|
|||
for elt in csvRows[1:]:
|
||||
for idx, value in enumerate(elt):
|
||||
dataList[idx].appendValue(value)
|
||||
except:
|
||||
logging.error("CsvData: Failed to load file: {}".format(self._filepath))
|
||||
except Exception as e:
|
||||
logging.error("CsvData: Failed to load file: {}\n{}".format(self._filepath, str(e)))
|
||||
|
||||
return dataList
|
||||
|
||||
|
@ -122,4 +122,4 @@ class CsvColumn(QObject):
|
|||
serie.append(float(index), float(value))
|
||||
|
||||
title = Property(str, lambda self: self._title, constant=True)
|
||||
content = Property("QStringList", lambda self: self._content, constant=True)
|
||||
content = Property("QStringList", lambda self: self._content, constant=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue