Commit 89dd4664 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][rockingcurves] Easy fix to avoid error when no rocking curve is drawn

parent f6ea0bec
Pipeline #49514 passed with stage
in 2 minutes and 11 seconds
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "11/05/2021"
__date__ = "29/06/2021"
import numpy
import logging
......@@ -188,8 +188,11 @@ class RockingCurvesWidget(qt.QMainWindow):
self._plot.addCurve([self.x[i]], [self.y[i]], symbol='o', legend='dot_o', color='b')
i_gauss = i * int((len(self.y_gauss) - 1) / (len(self.x) - 1))
self._plot.addCurve([self.x_gauss[i_gauss]], [self.y_gauss[i_gauss]], symbol='o', legend='dot_fit', color='r')
# TODO
except ValueError:
pass
except TypeError:
pass
def plotRockingCurves(self, data, px, py):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment