(from an email to devel list by jmoldes)
There is a problem when saving the models of a taurusplot in a configuration
dictionary.
If you use a model which device name includes capital letters then this model
is not saved.
Find below a possible patch (maybe it is better to make sure that both
"curvenames" and models are always lower case: I leave this to tauruslib core
developers)
Using "develop" branch 53a03392225d66364b4668713df63b94d6e60d8b
diff --git a/lib/taurus/qt/qtgui/plot/taurusplot.py b/lib/taurus/qt/qtgui/plot/taurusplot.py
index 7a17c09..c906cb4 100644
--- a/lib/taurus/qt/qtgui/plot/taurusplot.py
+++ b/lib/taurus/qt/qtgui/plot/taurusplot.py
@@ -2268,7 +2268,7 @@ class TaurusPlot(Qwt5.QwtPlot, TaurusBaseWidget):
self.error('Exception while gathering curves configuration info'+str(e))
finally:
self.curves_lock.release()
- model = CaselessList([m for m in self.getModel() if m in curvenames])
+ model = CaselessList([m for m in self.getModel() if m.lower() in [curve.lower() for curve in curvenames]])
configdict={"Axes":axesdict, "Misc":miscdict, "RawData":rawdatadict,
"TangoCurves":tangodict, "CurveProp":propdict,
"ConfigVersion":self._supportedConfigVersions[-1],
Fixed using a slightly different approach (casting curvenames list to a CaselessList)