1
0
forked from IPKM/nmreval

add logging to fit exception to retain more info and find problem with #56; all references to current graph are either None or id, should close #57

This commit is contained in:
Dominik Demuth
2023-05-03 19:04:25 +02:00
parent adcd98fc31
commit 75ec462efd
5 changed files with 14 additions and 21 deletions

View File

@ -58,7 +58,7 @@ class RdBuCMap:
elif val < self.min:
col = QtGui.QColor.fromRgb(*RdBuCMap._rdbu[-1])
else:
col = QtGui.QColor.fromRgb(*(int(self.spline[i](val)) for i in range(3)))
col = QtGui.QColor.fromRgbF(*(float(self.spline[i](val)) for i in range(3)))
return col