[ui] CRF: minor core cleanup

This commit is contained in:
Fabien Castan 2020-08-24 18:36:47 +02:00 committed by GitHub
parent 2a564a8336
commit cfd03016b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
from meshroom.common.qt import QObjectListModel 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 from PySide2.QtCharts import QtCharts
import csv import csv
@ -76,8 +76,8 @@ class CsvData(QObject):
for elt in csvRows[1:]: for elt in csvRows[1:]:
for idx, value in enumerate(elt): for idx, value in enumerate(elt):
dataList[idx].appendValue(value) dataList[idx].appendValue(value)
except: except Exception as e:
logging.error("CsvData: Failed to load file: {}".format(self._filepath)) logging.error("CsvData: Failed to load file: {}\n{}".format(self._filepath, str(e)))
return dataList return dataList
@ -122,4 +122,4 @@ class CsvColumn(QObject):
serie.append(float(index), float(value)) serie.append(float(index), float(value))
title = Property(str, lambda self: self._title, constant=True) 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)