Skip to content
Snippets Groups Projects
Commit 883143c6 authored by payno's avatar payno
Browse files

SpectrumViewer: fix backward compatibility with silx < 2.0

parent f5f61c48
Branches continue_spectrum_refactoring
No related tags found
1 merge request!84Continue spectrum refactoring
Pipeline #225073 passed
......@@ -436,6 +436,9 @@ class SpectrumViewer(qt.QMainWindow):
kwargs["baseline"] = (res.baseline,)
curve = self._plotWidget.addCurve(**kwargs)
if isinstance(curve, str):
# silx < 2.0
curve = self._plotWidget.getCurve(curve)
curve.setAlpha(res.alpha)
elif isinstance(res, _XMarkerOperation):
if res.x is None or res.x is numpy.nan:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment