From 7ac5fec448064bb33c4338ef72696cd3490e7011 Mon Sep 17 00:00:00 2001 From: Ravi <115461198+BM32ESRF@users.noreply.github.com> Date: Sun, 27 Nov 2022 22:30:48 +0100 Subject: [PATCH] Update lauetoolsneuralnetwork.py --- lauetoolsnn/lauetoolsneuralnetwork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lauetoolsnn/lauetoolsneuralnetwork.py b/lauetoolsnn/lauetoolsneuralnetwork.py index 7012ebb..c8a4fe3 100644 --- a/lauetoolsnn/lauetoolsneuralnetwork.py +++ b/lauetoolsnn/lauetoolsneuralnetwork.py @@ -2726,8 +2726,8 @@ def __init__(self, ix, iy, file, data, ccd_label, function_predict, image_no, de self.layout.addWidget(self.toolbar, 0) self.layout.addWidget(self.canvas, 100) - self.ImaxDisplayed = 2*np.average(data) - self.IminDisplayed = np.average(data) - 0.2*np.average(data) + self.ImaxDisplayed = np.int(2*np.average(data)) + self.IminDisplayed = np.int(np.average(data) - 0.2*np.average(data)) self.slider = QSlider(QtCore.Qt.Horizontal, self) self.slider.setRange(0, np.max(data))